	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_irq
_wlcore_irq:                            ## @wlcore_irq
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	leaq	4(%rsi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_WL1271_FLAG_IRQ_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %r15
	movq	%r15, %rsi
	callq	_set_bit
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_complete
	movq	$0, 32(%rbx)
LBB0_2:
	movq	_WL1271_FLAG_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_WL1271_FLAG_PENDING_WORK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	_DEBUG_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movl	24(%rbx), %edi
	callq	_disable_irq_nosync
	movl	20(%rbx), %edi
	xorl	%esi, %esi
	callq	_pm_wakeup_event
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_10
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_WL1271_FLAG_TX_PENDING@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_set_bit
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_cancel_work_sync
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_wlcore_irq_locked
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_wl12xx_queue_recovery_work
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	_WL1271_FLAG_FW_TX_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_wl1271_tx_total_queue_count
	testq	%rax, %rax
	jle	LBB0_9
## %bb.8:
	movl	12(%rbx), %edi
	movq	%r12, %rsi
	callq	_ieee80211_queue_work
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_10:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL1271_FLAG_IRQ_RUNNING,4,2    ## @WL1271_FLAG_IRQ_RUNNING
	.comm	_WL1271_FLAG_SUSPENDED,4,2      ## @WL1271_FLAG_SUSPENDED
	.comm	_WL1271_FLAG_PENDING_WORK,4,2   ## @WL1271_FLAG_PENDING_WORK
	.comm	_DEBUG_IRQ,4,2                  ## @DEBUG_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"should not enqueue work"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_WL1271_FLAG_TX_PENDING,4,2     ## @WL1271_FLAG_TX_PENDING
	.comm	_WL1271_FLAG_FW_TX_BUSY,4,2     ## @WL1271_FLAG_FW_TX_BUSY
	.no_dead_strip	_wlcore_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlcore_irq
_wlcore_irq:                            ; @wlcore_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	add	x19, x1, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _WL1271_FLAG_IRQ_RUNNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL1271_FLAG_IRQ_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x20, #16
	mov	x1, x21
	bl	_set_bit
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_complete
	str	xzr, [x20, #32]
LBB0_2:
Lloh3:
	adrp	x8, _WL1271_FLAG_SUSPENDED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WL1271_FLAG_SUSPENDED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _WL1271_FLAG_PENDING_WORK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WL1271_FLAG_PENDING_WORK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
Lloh9:
	adrp	x8, _DEBUG_IRQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEBUG_IRQ@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
	ldr	w0, [x20, #24]
	bl	_disable_irq_nosync
	ldr	w0, [x20, #20]
	mov	w1, #0
	bl	_pm_wakeup_event
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	b	LBB0_10
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh14:
	adrp	x23, _WL1271_FLAG_TX_PENDING@GOTPAGE
Lloh15:
	ldr	x23, [x23, _WL1271_FLAG_TX_PENDING@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_set_bit
	add	x22, x20, #8
	mov	x0, x22
	bl	_cancel_work_sync
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x20
	bl	_wlcore_irq_locked
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_wl12xx_queue_recovery_work
LBB0_6:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w0, [x23]
	mov	x1, x21
	bl	_clear_bit
Lloh16:
	adrp	x8, _WL1271_FLAG_FW_TX_BUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WL1271_FLAG_FW_TX_BUSY@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_wl1271_tx_total_queue_count
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.8:
	ldr	w0, [x20, #12]
	mov	x1, x22
	bl	_ieee80211_queue_work
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_mutex_unlock
LBB0_10:
Lloh19:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_WL1271_FLAG_IRQ_RUNNING,4,2    ; @WL1271_FLAG_IRQ_RUNNING
	.comm	_WL1271_FLAG_SUSPENDED,4,2      ; @WL1271_FLAG_SUSPENDED
	.comm	_WL1271_FLAG_PENDING_WORK,4,2   ; @WL1271_FLAG_PENDING_WORK
	.comm	_DEBUG_IRQ,4,2                  ; @DEBUG_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"should not enqueue work"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_WL1271_FLAG_TX_PENDING,4,2     ; @WL1271_FLAG_TX_PENDING
	.comm	_WL1271_FLAG_FW_TX_BUSY,4,2     ; @WL1271_FLAG_FW_TX_BUSY
	.no_dead_strip	_wlcore_irq
.subsections_via_symbols
