	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function schedule_reset
_schedule_reset:                        ## @schedule_reset
	.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	%rdi, %rbx
	xorl	%eax, %eax
	callq	_ktime_get_boottime_seconds
	movl	(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movl	%eax, %ecx
	subl	4(%rbx), %ecx
	cmpl	%edx, %ecx
	jle	LBB0_4
## %bb.2:
	movl	$0, (%rbx)
LBB0_3:
	xorl	%edx, %edx
LBB0_4:
	movl	%eax, 4(%rbx)
	movq	_STATUS_RESET_PENDING@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	16(%rbx), %rcx
	movl	(%rcx), %esi
	testl	%eax, 8(%rbx)
	je	LBB0_5
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_IPW_DEBUG_INFO                 ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_INFO
	movq	16(%rbx), %rdi
	callq	_netif_carrier_off
	movq	16(%rbx), %rdi
	callq	_netif_stop_queue
	movl	(%r14), %eax
	orl	%eax, 8(%rbx)
	leaq	28(%rbx), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	(%rbx), %esi
	callq	_schedule_delayed_work
	movl	(%rbx), %eax
	movq	_MAX_RESET_BACKOFF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_7
## %bb.6:
	incl	%eax
	movl	%eax, (%rbx)
LBB0_7:
	addq	$24, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_RESET_PENDING,4,2       ## @STATUS_RESET_PENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Scheduling firmware restart (%llds).\n"

	.comm	_HZ,4,2                         ## @HZ
	.comm	_MAX_RESET_BACKOFF,4,2          ## @MAX_RESET_BACKOFF
L_.str.1:                               ## @.str.1
	.asciz	"%s: Firmware restart already in progress.\n"

	.no_dead_strip	_schedule_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function schedule_reset
_schedule_reset:                        ; @schedule_reset
	.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
	mov	x19, x0
	bl	_ktime_get_boottime_seconds
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w9, [x19, #4]
	sub	w9, w0, w9
	cmp	w9, w8
	b.le	LBB0_3
; %bb.2:
	mov	w8, #0
	str	wzr, [x19]
LBB0_3:
	str	w0, [x19, #4]
	ldr	w9, [x19, #8]
Lloh0:
	adrp	x20, _STATUS_RESET_PENDING@GOTPAGE
Lloh1:
	ldr	x20, [x20, _STATUS_RESET_PENDING@GOTPAGEOFF]
	ldr	w10, [x20]
	ldr	x11, [x19, #16]
	ldr	w1, [x11]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_IPW_DEBUG_INFO
LBB0_5:
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_INFO
	ldr	x0, [x19, #16]
	bl	_netif_carrier_off
	ldr	x0, [x19, #16]
	bl	_netif_stop_queue
	ldr	w8, [x20]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	w8, [x19]
	add	x0, x19, #28
Lloh6:
	adrp	x9, _HZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mul	w1, w9, w8
	bl	_schedule_delayed_work
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _MAX_RESET_BACKOFF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAX_RESET_BACKOFF@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.6:
	add	w8, w8, #1
	str	w8, [x19]
LBB0_7:
	add	x0, x19, #24
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_wake_up_interruptible
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_RESET_PENDING,4,2       ; @STATUS_RESET_PENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Scheduling firmware restart (%llds).\n"

	.comm	_HZ,4,2                         ; @HZ
	.comm	_MAX_RESET_BACKOFF,4,2          ; @MAX_RESET_BACKOFF
l_.str.1:                               ; @.str.1
	.asciz	"%s: Firmware restart already in progress.\n"

	.no_dead_strip	_schedule_reset
.subsections_via_symbols
