	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_resume_keep_radio_on
_wil_resume_keep_radio_on:              ## @wil_resume_keep_radio_on
	.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
	movq	%rdi, %rbx
	movq	_wil_status_resuming@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_set_bit
	movq	_wil_status_suspended@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	(%rbx), %esi
	callq	_clear_bit
	movq	_RGF_USER_CLKS_CTL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_USER_CLKS_RST_PWGD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_wil_c
	movq	%rbx, %rdi
	callq	_wil_unmask_irq
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_wil6210_bus_request
	movq	%rbx, %rdi
	callq	_wmi_resume
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_wil_err
	movq	_no_fw_recovery@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_wil_down
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
	callq	_wil_up
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_wil_err
LBB0_5:
	movl	(%r15), %edi
	movl	(%rbx), %esi
	callq	_set_bit
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_wil_pm_wake_connected_net_queues
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wil_status_resuming,4,2        ## @wil_status_resuming
	.comm	_wil_status_suspended,4,2       ## @wil_status_suspended
	.comm	_RGF_USER_CLKS_CTL_0,4,2        ## @RGF_USER_CLKS_CTL_0
	.comm	_BIT_USER_CLKS_RST_PWGD,4,2     ## @BIT_USER_CLKS_RST_PWGD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device failed to resume (%d)\n"

	.comm	_no_fw_recovery,8,3             ## @no_fw_recovery
L_.str.1:                               ## @.str.1
	.asciz	"wil_down failed (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"wil_up failed (%d)\n"

	.no_dead_strip	_wil_resume_keep_radio_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_resume_keep_radio_on
_wil_resume_keep_radio_on:              ; @wil_resume_keep_radio_on
	.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, x0
Lloh0:
	adrp	x8, _wil_status_resuming@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wil_status_resuming@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_set_bit
Lloh3:
	adrp	x21, _wil_status_suspended@GOTPAGE
Lloh4:
	ldr	x21, [x21, _wil_status_suspended@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x19]
	bl	_clear_bit
Lloh5:
	adrp	x8, _RGF_USER_CLKS_CTL_0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RGF_USER_CLKS_CTL_0@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _BIT_USER_CLKS_RST_PWGD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BIT_USER_CLKS_RST_PWGD@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wil_c
	mov	x0, x19
	bl	_wil_unmask_irq
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_wil6210_bus_request
	mov	x0, x19
	bl	_wmi_resume
	cbz	w0, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_wil_err
Lloh13:
	adrp	x8, _no_fw_recovery@GOTPAGE
Lloh14:
	ldr	x8, [x8, _no_fw_recovery@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_wil_down
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_wil_up
	cbz	w0, LBB0_8
; %bb.5:
	mov	x20, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x2, x20
	bl	_wil_err
LBB0_7:
	ldr	w0, [x21]
	ldr	w1, [x19]
	bl	_set_bit
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_wil_pm_wake_connected_net_queues
	mov	w20, #0
LBB0_9:
	mov	x0, x20
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_wil_status_resuming,4,2        ; @wil_status_resuming
	.comm	_wil_status_suspended,4,2       ; @wil_status_suspended
	.comm	_RGF_USER_CLKS_CTL_0,4,2        ; @RGF_USER_CLKS_CTL_0
	.comm	_BIT_USER_CLKS_RST_PWGD,4,2     ; @BIT_USER_CLKS_RST_PWGD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device failed to resume (%d)\n"

	.comm	_no_fw_recovery,8,3             ; @no_fw_recovery
l_.str.1:                               ; @.str.1
	.asciz	"wil_down failed (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"wil_up failed (%d)\n"

	.no_dead_strip	_wil_resume_keep_radio_on
.subsections_via_symbols
