	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_handle_aen
_qlcnic_83xx_handle_aen:                ## @qlcnic_83xx_handle_aen
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_QLC_83XX_MBX_RESPONSE_ARRIVED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%rsi), %rax
	movq	8(%rax), %r15
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rdi
	movq	_QLCNIC_FW_MBX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QLCRDX
	movq	_QLCNIC_SET_OWNER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_QLCNIC_MBX_FW
	movl	%eax, %edi
	callq	_readl
	movq	_QLCNIC_MBX_ASYNC_EVENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	___qlcnic_83xx_process_aen
	jmp	LBB0_6
LBB0_3:
	cmpl	%r12d, (%r15)
	jne	LBB0_4
## %bb.5:
	incl	8(%rbx)
	jmp	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_notify_mbx_response
LBB0_6:
	movq	(%rbx), %rdi
	movq	_QLCNIC_DEF_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QLCRDX
	movq	(%rbx), %rcx
	addl	(%rcx), %eax
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_writel
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_MBX_RESPONSE_ARRIVED,4,2 ## @QLC_83XX_MBX_RESPONSE_ARRIVED
	.comm	_QLCNIC_FW_MBX_CTRL,4,2         ## @QLCNIC_FW_MBX_CTRL
	.comm	_QLCNIC_SET_OWNER,4,2           ## @QLCNIC_SET_OWNER
	.comm	_QLCNIC_MBX_ASYNC_EVENT,4,2     ## @QLCNIC_MBX_ASYNC_EVENT
	.comm	_QLCNIC_DEF_INT_MASK,4,2        ## @QLCNIC_DEF_INT_MASK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_qlcnic_83xx_handle_aen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_handle_aen
_qlcnic_83xx_handle_aen:                ; @qlcnic_83xx_handle_aen
	.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	x20, x1
Lloh0:
	adrp	x8, _QLC_83XX_MBX_RESPONSE_ARRIVED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_MBX_RESPONSE_ARRIVED@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x8, [x1]
	ldr	x21, [x8, #8]
	add	x19, x21, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x0, [x20]
Lloh3:
	adrp	x8, _QLCNIC_FW_MBX_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_FW_MBX_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_QLCRDX
Lloh6:
	adrp	x8, _QLCNIC_SET_OWNER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLCNIC_SET_OWNER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
	ldr	x0, [x20]
	mov	w1, #0
	bl	_QLCNIC_MBX_FW
	bl	_readl
Lloh9:
	adrp	x8, _QLCNIC_MBX_ASYNC_EVENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLCNIC_MBX_ASYNC_EVENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	___qlcnic_83xx_process_aen
	b	LBB0_6
LBB0_3:
	ldr	w8, [x21]
	cmp	w8, w22
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	bl	_qlcnic_83xx_notify_mbx_response
LBB0_6:
	ldr	x0, [x20]
Lloh12:
	adrp	x8, _QLCNIC_DEF_INT_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QLCNIC_DEF_INT_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_QLCRDX
	ldr	x8, [x20]
	ldr	w8, [x8]
	add	w1, w8, w0
	mov	w0, #0
	bl	_writel
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_MBX_RESPONSE_ARRIVED,4,2 ; @QLC_83XX_MBX_RESPONSE_ARRIVED
	.comm	_QLCNIC_FW_MBX_CTRL,4,2         ; @QLCNIC_FW_MBX_CTRL
	.comm	_QLCNIC_SET_OWNER,4,2           ; @QLCNIC_SET_OWNER
	.comm	_QLCNIC_MBX_ASYNC_EVENT,4,2     ; @QLCNIC_MBX_ASYNC_EVENT
	.comm	_QLCNIC_DEF_INT_MASK,4,2        ; @QLCNIC_DEF_INT_MASK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_qlcnic_83xx_handle_aen
.subsections_via_symbols
