	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx_wdog_init_last_reset       ## -- Begin function imx_wdog_init_last_reset
	.p2align	4, 0x90
_imx_wdog_init_last_reset:              ## @imx_wdog_init_last_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$4, %esi
	callq	_devmap_ptov
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	(%rax), %eax
	movq	_last_reset_status@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_WDOG_RSR_SFTW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_WDOG_RSR_TOUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_WDOG_RSR_POR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.6:
	leaq	L_.str.2(%rip), %rax
LBB0_7:
	movq	_sysctl___hw_imx_last_reset_reason@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_last_reset_status,4,2          ## @last_reset_status
	.comm	_WDOG_RSR_SFTW,4,2              ## @WDOG_RSR_SFTW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SoftwareReset"

	.comm	_sysctl___hw_imx_last_reset_reason,8,3 ## @sysctl___hw_imx_last_reset_reason
	.comm	_WDOG_RSR_TOUT,4,2              ## @WDOG_RSR_TOUT
L_.str.1:                               ## @.str.1
	.asciz	"WatchdogTimeout"

	.comm	_WDOG_RSR_POR,4,2               ## @WDOG_RSR_POR
L_.str.2:                               ## @.str.2
	.asciz	"PowerOnReset"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx_wdog_init_last_reset       ; -- Begin function imx_wdog_init_last_reset
	.p2align	2
_imx_wdog_init_last_reset:              ; @imx_wdog_init_last_reset
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w1, #4
	bl	_devmap_ptov
	cbz	x0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x9, _last_reset_status@GOTPAGE
Lloh1:
	ldr	x9, [x9, _last_reset_status@GOTPAGEOFF]
	ldr	w8, [x0]
Lloh2:
	str	w8, [x9]
Lloh3:
	adrp	x9, _WDOG_RSR_SFTW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WDOG_RSR_SFTW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_7
LBB0_3:
Lloh8:
	adrp	x9, _WDOG_RSR_TOUT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WDOG_RSR_TOUT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x9, _WDOG_RSR_POR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WDOG_RSR_POR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
Lloh16:
	adrp	x8, l_.str.2@PAGE
Lloh17:
	add	x8, x8, l_.str.2@PAGEOFF
LBB0_7:
Lloh18:
	adrp	x9, _sysctl___hw_imx_last_reset_reason@GOTPAGE
Lloh19:
	ldr	x9, [x9, _sysctl___hw_imx_last_reset_reason@GOTPAGEOFF]
Lloh20:
	str	x8, [x9]
LBB0_8:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_last_reset_status,4,2          ; @last_reset_status
	.comm	_WDOG_RSR_SFTW,4,2              ; @WDOG_RSR_SFTW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SoftwareReset"

	.comm	_sysctl___hw_imx_last_reset_reason,8,3 ; @sysctl___hw_imx_last_reset_reason
	.comm	_WDOG_RSR_TOUT,4,2              ; @WDOG_RSR_TOUT
l_.str.1:                               ; @.str.1
	.asciz	"WatchdogTimeout"

	.comm	_WDOG_RSR_POR,4,2               ; @WDOG_RSR_POR
l_.str.2:                               ; @.str.2
	.asciz	"PowerOnReset"

.subsections_via_symbols
