	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_irq_test
_qlcnic_irq_test:                       ## @qlcnic_irq_test
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %r15
	movl	(%rax), %r12d
	movl	4(%rax), %r13d
	movq	%rax, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qlcnic_83xx_interrupt_test     ## TAILCALL
LBB0_1:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_3:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	_QLCNIC_INTERRUPT_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qlcnic_diag_alloc_res
	movl	%eax, %r13d
	testl	%eax, %eax
	movl	%r12d, %r15d
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rcx
	jne	LBB0_9
## %bb.4:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	$0, (%r12)
	movq	_QLCNIC_CMD_INTRPT_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	8(%r12), %eax
	movq	-48(%rbp), %rcx
	movl	%eax, 4(%rcx)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$12000, %esi                    ## imm = 0x2EE0
	callq	_usleep_range
	xorl	%r13d, %r13d
	cmpq	$0, (%r12)
	sete	%r13b
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_8:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_qlcnic_diag_free_res
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	%r15d, (%rbx)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movl	(%rcx), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_clear_bit
LBB0_10:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___QLCNIC_RESETTING,4,2         ## @__QLCNIC_RESETTING
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_INTERRUPT_TEST,4,2      ## @QLCNIC_INTERRUPT_TEST
	.comm	_QLCNIC_CMD_INTRPT_TEST,4,2     ## @QLCNIC_CMD_INTRPT_TEST
	.no_dead_strip	_qlcnic_irq_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_irq_test
_qlcnic_irq_test:                       ; @qlcnic_irq_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x24, [x0, #16]
	ldr	d0, [x0]
	str	q0, [sp]                        ; 16-byte Folded Spill
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_qlcnic_83xx_interrupt_test
LBB0_2:
Lloh0:
	adrp	x23, ___QLCNIC_RESETTING@GOTPAGE
Lloh1:
	ldr	x23, [x23, ___QLCNIC_RESETTING@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x21, x19, #8
	mov	x1, x21
	bl	_test_and_set_bit
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_4:
Lloh5:
	adrp	x8, _QLCNIC_INTERRUPT_TEST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_INTERRUPT_TEST@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_qlcnic_diag_alloc_res
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.5:
	str	xzr, [x24]
Lloh8:
	adrp	x8, _QLCNIC_CMD_INTRPT_TEST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLCNIC_CMD_INTRPT_TEST@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x0, sp, #24
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	w8, [x24, #8]
	ldr	x9, [sp, #24]
	str	w8, [x9, #4]
	add	x1, sp, #24
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.7:
	mov	w0, #1000
	mov	w1, #12000
	bl	_usleep_range
	ldr	x8, [x24]
	cmp	x8, #0
	cset	w22, eq
LBB0_8:
	add	x0, sp, #24
	bl	_qlcnic_free_mbx_args
LBB0_9:
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	fmov	w1, s0
	mov	x0, x20
	bl	_qlcnic_diag_free_res
LBB0_10:
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	str	d0, [x19]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_clear_bit
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	___QLCNIC_RESETTING,4,2         ; @__QLCNIC_RESETTING
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_INTERRUPT_TEST,4,2      ; @QLCNIC_INTERRUPT_TEST
	.comm	_QLCNIC_CMD_INTRPT_TEST,4,2     ; @QLCNIC_CMD_INTRPT_TEST
	.no_dead_strip	_qlcnic_irq_test
.subsections_via_symbols
