	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_wdog_watchdog_fn
_aw_wdog_watchdog_fn:                   ## @aw_wdog_watchdog_fn
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r12
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	_WD_INTERVAL@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	jle	LBB0_9
## %bb.1:
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	cltq
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$50, %rax
	addl	%ecx, %eax
	movq	_wd_intervals@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$-1, %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rcx,%rdx,8), %esi
	incq	%rdx
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%esi, %eax
	jg	LBB0_2
LBB0_4:
	testl	%esi, %esi
	je	LBB0_8
## %bb.5:
	movl	%edx, %eax
	movl	4(%rcx,%rax,8), %edx
	movb	(%r12), %cl
	shll	%cl, %edx
	movq	24(%r12), %rsi
	orl	4(%r12), %edx
	movq	%r12, %rdi
	callq	_WRITE
	movq	48(%r12), %rsi
	movq	_WDOG_CTRL_RESTART@GOTPCREL(%rip), %rax
	movl	8(%r12), %edx
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_WRITE
	movq	40(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movl	12(%r12), %edx
	movq	%r12, %rdi
	callq	_WRITE
LBB0_7:
	movl	$0, (%r15)
	jmp	LBB0_10
LBB0_9:
	movq	24(%r12), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_WRITE
LBB0_10:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
LBB0_8:
	movl	32(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_device_printf
	movq	%r14, %rdi
	callq	_mtx_unlock
	movq	24(%r12), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WRITE                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WD_INTERVAL,4,2                ## @WD_INTERVAL
	.comm	_wd_intervals,8,3               ## @wd_intervals
	.comm	_WDOG_CTRL_RESTART,4,2          ## @WDOG_CTRL_RESTART
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't arm, timeout is more than 16 sec\n"

	.no_dead_strip	_aw_wdog_watchdog_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_wdog_watchdog_fn
_aw_wdog_watchdog_fn:                   ; @aw_wdog_watchdog_fn
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mtx_lock
Lloh0:
	adrp	x8, _WD_INTERVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WD_INTERVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w22
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w10, w8, w9
Lloh3:
	adrp	x8, _wd_intervals@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wd_intervals@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	x9, #-1
	mov	x11, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #8
	add	x9, x9, #1
	cmp	w12, #0
	ccmp	w10, w12, #4, ne
	b.gt	LBB0_2
; %bb.3:
	cbz	w12, LBB0_9
; %bb.4:
	ldr	x1, [x20, #24]
	add	x8, x8, w9, uxtw #3
	ldr	w8, [x8, #4]
	ldp	w9, w10, [x20]
	lsl	w8, w8, w9
	orr	w2, w8, w10
	mov	x0, x20
	bl	_WRITE
	ldr	x1, [x20, #48]
Lloh6:
	adrp	x8, _WDOG_CTRL_RESTART@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WDOG_CTRL_RESTART@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_WRITE
	ldr	x1, [x20, #40]
	cbz	x1, LBB0_6
; %bb.5:
	ldr	w2, [x20, #12]
	mov	x0, x20
	bl	_WRITE
LBB0_6:
	str	wzr, [x21]
	b	LBB0_8
LBB0_7:
	ldr	x1, [x20, #24]
	mov	x0, x20
	mov	w2, #0
	bl	_WRITE
LBB0_8:
	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
	b	_mtx_unlock
LBB0_9:
	ldr	w0, [x20, #32]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
	mov	x0, x19
	bl	_mtx_unlock
	ldr	x1, [x20, #24]
	mov	x0, x20
	mov	w2, #0
	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
	b	_WRITE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WD_INTERVAL,4,2                ; @WD_INTERVAL
	.comm	_wd_intervals,8,3               ; @wd_intervals
	.comm	_WDOG_CTRL_RESTART,4,2          ; @WDOG_CTRL_RESTART
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't arm, timeout is more than 16 sec\n"

	.no_dead_strip	_aw_wdog_watchdog_fn
.subsections_via_symbols
