	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wdt_enable
_wdt_enable:                            ## @wdt_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_heartbeat@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%esi, %esi
	movq	_wdt_counter@GOTPCREL(%rip), %rdi
	callq	_atomic_set
	movq	_IXP4XX_GPIO_GPCLKR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andl	$-257, (%rax)                   ## imm = 0xFEFF
	movq	_IXP4XX_GPIO_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$14, %edi
	callq	_gpio_line_config
	movq	_IXP4XX_GPIO_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$14, %edi
	callq	_gpio_line_set
	movq	_WDT_RUNNING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_wdt_status@GOTPCREL(%rip), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_wdt_refresh
LBB0_2:
	movl	(%rbx), %edi
	movq	_wdt_status@GOTPCREL(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_wdt_counter,4,2                ## @wdt_counter
	.comm	_heartbeat,4,2                  ## @heartbeat
	.comm	_IXP4XX_GPIO_GPCLKR,8,3         ## @IXP4XX_GPIO_GPCLKR
	.comm	_IXP4XX_GPIO_OUT,4,2            ## @IXP4XX_GPIO_OUT
	.comm	_IXP4XX_GPIO_LOW,4,2            ## @IXP4XX_GPIO_LOW
	.comm	_WDT_RUNNING,4,2                ## @WDT_RUNNING
	.comm	_wdt_status,4,2                 ## @wdt_status
	.no_dead_strip	_wdt_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wdt_enable
_wdt_enable:                            ; @wdt_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _heartbeat@GOTPAGE
Lloh1:
	ldr	x8, [x8, _heartbeat@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w1, w8, #1
Lloh3:
	adrp	x0, _wdt_counter@GOTPAGE
Lloh4:
	ldr	x0, [x0, _wdt_counter@GOTPAGEOFF]
	bl	_atomic_set
Lloh5:
	adrp	x8, _IXP4XX_GPIO_GPCLKR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IXP4XX_GPIO_GPCLKR@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w9, [x8]
	and	w9, w9, #0xfffffeff
	str	w9, [x8]
Lloh8:
	adrp	x8, _IXP4XX_GPIO_OUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IXP4XX_GPIO_OUT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #14
	bl	_gpio_line_config
Lloh11:
	adrp	x8, _IXP4XX_GPIO_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IXP4XX_GPIO_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #14
	bl	_gpio_line_set
Lloh14:
	adrp	x19, _WDT_RUNNING@GOTPAGE
Lloh15:
	ldr	x19, [x19, _WDT_RUNNING@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh16:
	adrp	x1, _wdt_status@GOTPAGE
Lloh17:
	ldr	x1, [x1, _wdt_status@GOTPAGEOFF]
	bl	_test_bit
	cbnz	w0, LBB0_2
; %bb.1:
	bl	_wdt_refresh
LBB0_2:
	ldr	w0, [x19]
Lloh18:
	adrp	x1, _wdt_status@GOTPAGE
Lloh19:
	ldr	x1, [x1, _wdt_status@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_set_bit
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_wdt_counter,4,2                ; @wdt_counter
	.comm	_heartbeat,4,2                  ; @heartbeat
	.comm	_IXP4XX_GPIO_GPCLKR,8,3         ; @IXP4XX_GPIO_GPCLKR
	.comm	_IXP4XX_GPIO_OUT,4,2            ; @IXP4XX_GPIO_OUT
	.comm	_IXP4XX_GPIO_LOW,4,2            ; @IXP4XX_GPIO_LOW
	.comm	_WDT_RUNNING,4,2                ; @WDT_RUNNING
	.comm	_wdt_status,4,2                 ; @wdt_status
	.no_dead_strip	_wdt_enable
.subsections_via_symbols
