	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avila_wdt_open
_avila_wdt_open:                        ## @avila_wdt_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_WDT_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_wdt_status@GOTPCREL(%rip), %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_WDT_OK_TO_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_wdt_status@GOTPCREL(%rip), %rsi
	callq	_clear_bit
	xorl	%eax, %eax
	callq	_wdt_enable
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nonseekable_open               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WDT_IN_USE,4,2                 ## @WDT_IN_USE
	.comm	_wdt_status,4,2                 ## @wdt_status
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_WDT_OK_TO_CLOSE,4,2            ## @WDT_OK_TO_CLOSE
	.no_dead_strip	_avila_wdt_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avila_wdt_open
_avila_wdt_open:                        ; @avila_wdt_open
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _WDT_IN_USE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WDT_IN_USE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, _wdt_status@GOTPAGE
Lloh4:
	ldr	x1, [x1, _wdt_status@GOTPAGEOFF]
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh8:
	adrp	x8, _WDT_OK_TO_CLOSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WDT_OK_TO_CLOSE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, _wdt_status@GOTPAGE
Lloh12:
	ldr	x1, [x1, _wdt_status@GOTPAGEOFF]
	bl	_clear_bit
	bl	_wdt_enable
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nonseekable_open
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WDT_IN_USE,4,2                 ; @WDT_IN_USE
	.comm	_wdt_status,4,2                 ; @wdt_status
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_WDT_OK_TO_CLOSE,4,2            ; @WDT_OK_TO_CLOSE
	.no_dead_strip	_avila_wdt_open
.subsections_via_symbols
