	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auto_deepsleep_timer_fn
_auto_deepsleep_timer_fn:               ## @auto_deepsleep_timer_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_auto_deepsleep_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	cmpq	$0, 32(%rax)
	je	LBB0_2
## %bb.1:
	movq	$0, 32(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	addq	$12, %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	8(%rbx), %ecx
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	callq	_mod_timer
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.3:
	cmpl	$0, 16(%rbx)
	jne	LBB0_6
## %bb.4:
	movq	(%rbx), %rax
	movq	_LBS_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_lbs_deb_main
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$4, %edi
	callq	_cpu_to_le16
	movl	%eax, -24(%rbp)
	movq	_CMD_802_11_DEEP_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	$4, %ecx
	callq	_lbs_cmd_async
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_auto_deepsleep_timer,4,2       ## @auto_deepsleep_timer
	.comm	_LBS_CONNECTED,8,3              ## @LBS_CONNECTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entering auto deep sleep mode...\n"

	.comm	_CMD_802_11_DEEP_SLEEP,4,2      ## @CMD_802_11_DEEP_SLEEP
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_priv,8,3                       ## @priv
	.no_dead_strip	_auto_deepsleep_timer_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auto_deepsleep_timer_fn
_auto_deepsleep_timer_fn:               ; @auto_deepsleep_timer_fn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _auto_deepsleep_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _auto_deepsleep_timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_3
; %bb.1:
	str	xzr, [x19, #32]
LBB0_2:
	add	x0, x19, #12
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w9, [x19, #8]
Lloh6:
	adrp	x10, _HZ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	mul	w9, w10, w9
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
	bl	_mod_timer
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.4:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_2
; %bb.5:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _LBS_CONNECTED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LBS_CONNECTED@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.6:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lbs_deb_main
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #4
	bl	_cpu_to_le16
	str	w0, [sp, #8]
Lloh14:
	adrp	x8, _CMD_802_11_DEEP_SLEEP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMD_802_11_DEEP_SLEEP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #4
	bl	_lbs_cmd_async
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_auto_deepsleep_timer,4,2       ; @auto_deepsleep_timer
	.comm	_LBS_CONNECTED,8,3              ; @LBS_CONNECTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entering auto deep sleep mode...\n"

	.comm	_CMD_802_11_DEEP_SLEEP,4,2      ; @CMD_802_11_DEEP_SLEEP
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_priv,8,3                       ; @priv
	.no_dead_strip	_auto_deepsleep_timer_fn
.subsections_via_symbols
