	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_queue_recovery_work     ## -- Begin function wl12xx_queue_recovery_work
	.p2align	4, 0x90
_wl12xx_queue_recovery_work:            ## @wl12xx_queue_recovery_work
	.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), %rax
	movq	_WLCORE_STATE_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_WL1271_FLAG_INTENDED_FW_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %r14
	movq	%r14, %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	_WLCORE_STATE_RESTARTING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_WL1271_FLAG_RECOVERY_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movl	12(%rbx), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ieee80211_queue_work           ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLCORE_STATE_ON,8,3            ## @WLCORE_STATE_ON
	.comm	_WL1271_FLAG_INTENDED_FW_RECOVERY,4,2 ## @WL1271_FLAG_INTENDED_FW_RECOVERY
	.comm	_WLCORE_STATE_RESTARTING,8,3    ## @WLCORE_STATE_RESTARTING
	.comm	_WL1271_FLAG_RECOVERY_IN_PROGRESS,4,2 ## @WL1271_FLAG_RECOVERY_IN_PROGRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_queue_recovery_work     ; -- Begin function wl12xx_queue_recovery_work
	.p2align	2
_wl12xx_queue_recovery_work:            ; @wl12xx_queue_recovery_work
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WLCORE_STATE_ON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLCORE_STATE_ON@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _WL1271_FLAG_INTENDED_FW_RECOVERY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WL1271_FLAG_INTENDED_FW_RECOVERY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x20, x19, #16
	mov	x1, x20
	bl	_test_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh6:
	adrp	x8, _WLCORE_STATE_RESTARTING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLCORE_STATE_RESTARTING@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh9:
	adrp	x8, _WL1271_FLAG_RECOVERY_IN_PROGRESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WL1271_FLAG_RECOVERY_IN_PROGRESS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	ldr	w0, [x19, #12]
	add	x1, x19, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ieee80211_queue_work
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WLCORE_STATE_ON,8,3            ; @WLCORE_STATE_ON
	.comm	_WL1271_FLAG_INTENDED_FW_RECOVERY,4,2 ; @WL1271_FLAG_INTENDED_FW_RECOVERY
	.comm	_WLCORE_STATE_RESTARTING,8,3    ; @WLCORE_STATE_RESTARTING
	.comm	_WL1271_FLAG_RECOVERY_IN_PROGRESS,4,2 ; @WL1271_FLAG_RECOVERY_IN_PROGRESS
.subsections_via_symbols
