	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avila_wdt_write
_avila_wdt_write:                       ## @avila_wdt_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	_nowayout@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.3:
	movq	%rsi, %r15
	movq	_WDT_OK_TO_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_wdt_status@GOTPCREL(%rip), %rsi
	callq	_clear_bit
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_get_user
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	decq	%rbx
	jne	LBB0_5
LBB0_7:
	xorl	%eax, %eax
	callq	_wdt_enable
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_6:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nowayout,4,2                   ## @nowayout
	.comm	_WDT_OK_TO_CLOSE,4,2            ## @WDT_OK_TO_CLOSE
	.comm	_wdt_status,4,2                 ## @wdt_status
	.comm	_EFAULT,8,3                     ## @EFAULT
	.no_dead_strip	_avila_wdt_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avila_wdt_write
_avila_wdt_write:                       ; @avila_wdt_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	cbz	x2, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _nowayout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nowayout@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_5
; %bb.2:
	mov	x20, x1
Lloh3:
	adrp	x8, _WDT_OK_TO_CLOSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WDT_OK_TO_CLOSE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, _wdt_status@GOTPAGE
Lloh7:
	ldr	x1, [x1, _wdt_status@GOTPAGEOFF]
	bl	_clear_bit
	mov	x21, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	mov	x1, x20
	bl	_get_user
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	subs	x21, x21, #1
	b.ne	LBB0_3
LBB0_5:
	bl	_wdt_enable
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _EFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_nowayout,4,2                   ; @nowayout
	.comm	_WDT_OK_TO_CLOSE,4,2            ; @WDT_OK_TO_CLOSE
	.comm	_wdt_status,4,2                 ; @wdt_status
	.comm	_EFAULT,8,3                     ; @EFAULT
	.no_dead_strip	_avila_wdt_write
.subsections_via_symbols
