	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_clear_legacy_intr  ## -- Begin function qlcnic_83xx_clear_legacy_intr
	.p2align	4, 0x90
_qlcnic_83xx_clear_legacy_intr:         ## @qlcnic_83xx_clear_legacy_intr
	.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	%rdi, %r15
	movq	16(%rdi), %r12
	movl	(%rdi), %edi
	callq	_readl
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_QLC_83XX_VALID_INTX_BIT31
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	%r14d, %edi
	callq	_QLC_83XX_INTX_FUNC
	movq	16(%r15), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	callq	_wmb
	movl	4(%r15), %esi
	xorl	%edi, %edi
	callq	_writel_relaxed
	movl	4(%r15), %edi
	callq	_readl
	movl	$1, %r14d
	movq	_QLC_83XX_LEGACY_INTX_MAX_RETRY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_readl
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_QLC_83XX_INTX_FUNC
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	callq	_QLC_83XX_VALID_INTX_BIT30
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%r14), %eax
	cmpl	(%r13), %r14d
	movl	%eax, %r14d
	jl	LBB0_4
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_2:
	incl	8(%r15)
LBB0_8:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_QLC_83XX_LEGACY_INTX_MAX_RETRY,4,2 ## @QLC_83XX_LEGACY_INTX_MAX_RETRY
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_clear_legacy_intr  ; -- Begin function qlcnic_83xx_clear_legacy_intr
	.p2align	2
_qlcnic_83xx_clear_legacy_intr:         ; @qlcnic_83xx_clear_legacy_intr
	.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	x19, x0
	ldr	x21, [x0, #16]
	ldr	w0, [x0]
	bl	_readl
	mov	x20, x0
	bl	_QLC_83XX_VALID_INTX_BIT31
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x20
	bl	_QLC_83XX_INTX_FUNC
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	bl	_wmb
	ldr	w1, [x19, #4]
	mov	w0, #0
	bl	_writel_relaxed
	ldr	w0, [x19, #4]
	bl	_readl
	mov	w23, #1
Lloh0:
	adrp	x22, _IRQ_HANDLED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IRQ_HANDLED@GOTPAGEOFF]
Lloh2:
	adrp	x24, _QLC_83XX_LEGACY_INTX_MAX_RETRY@GOTPAGE
Lloh3:
	ldr	x24, [x24, _QLC_83XX_LEGACY_INTX_MAX_RETRY@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_readl
	mov	x20, x0
	bl	_QLC_83XX_INTX_FUNC
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_QLC_83XX_VALID_INTX_BIT30
	ldr	w8, [x24]
	cmp	x0, #0
	ccmp	w23, w8, #0, ne
	add	w23, w23, #1
	b.lt	LBB0_3
	b	LBB0_7
LBB0_5:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_6:
Lloh4:
	adrp	x22, _IRQ_NONE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _IRQ_NONE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x22]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_QLC_83XX_LEGACY_INTX_MAX_RETRY,4,2 ; @QLC_83XX_LEGACY_INTX_MAX_RETRY
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
.subsections_via_symbols
