	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_interrupt_test     ## -- Begin function qlcnic_83xx_interrupt_test
	.p2align	4, 0x90
_qlcnic_83xx_interrupt_test:            ## @qlcnic_83xx_interrupt_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	$56, %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, %r13
	movq	40(%rax), %r15
	movups	8(%rax), %xmm0
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r13), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	%r13, %rdi
	callq	_qlcnic_get_diag_lock
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_netdev_info
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_QLCNIC_INTERRUPT_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movdqa	-96(%rbp), %xmm0                ## 16-byte Reload
	pextrq	$1, %xmm0, %r12
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_qlcnic_83xx_diag_alloc_res
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movq	$0, (%r15)
	movq	_QLCNIC_CMD_INTRPT_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rdi
	movq	%r13, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_9
## %bb.8:
	movq	8(%r15), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_9:
	movq	_QLCNIC_DEF_INT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_QLCRDX
LBB0_10:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rdx
	movl	$1, 4(%rdx)
	movl	%eax, 8(%rdx)
	movq	_BIT_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rdx)
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %ebx
	movq	-72(%rbp), %rax
	movl	8(%rax), %edi
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_LSW
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_MSW
	movl	%eax, %edi
	callq	_LSB
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %edx
	je	LBB0_12
## %bb.11:
	movq	24(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_dev_info
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_12:
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	24(%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdx
	callq	_dev_err
LBB0_14:
	testl	%ebx, %ebx
	jne	LBB0_16
## %bb.15:
	movl	$20, %edi
	callq	_msleep
	xorl	%ebx, %ebx
	cmpq	$0, (%r15)
	sete	%bl
LBB0_16:
	leaq	-72(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_qlcnic_83xx_diag_free_res
LBB0_17:
	movaps	-96(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 8(%r13)
	movq	%r13, %rdi
	callq	_qlcnic_release_diag_lock
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	___QLCNIC_RESETTING,4,2         ## @__QLCNIC_RESETTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device is resetting\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"Device in diagnostics mode\n"

	.comm	_QLCNIC_INTERRUPT_TEST,4,2      ## @QLCNIC_INTERRUPT_TEST
	.comm	_QLCNIC_CMD_INTRPT_TEST,4,2     ## @QLCNIC_CMD_INTRPT_TEST
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ## @QLCNIC_MSIX_ENABLED
	.comm	_QLCNIC_DEF_INT_ID,4,2          ## @QLCNIC_DEF_INT_ID
	.comm	_BIT_0,4,2                      ## @BIT_0
L_.str.2:                               ## @.str.2
	.asciz	"Interrupt generated: 0x%x, requested:0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Interrupt test error: 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_interrupt_test     ; -- Begin function qlcnic_83xx_interrupt_test
	.p2align	2
_qlcnic_83xx_interrupt_test:            ; @qlcnic_83xx_interrupt_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x22, [x0, #40]
	ldp	x27, x21, [x0, #8]
Lloh0:
	adrp	x8, ___QLCNIC_RESETTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___QLCNIC_RESETTING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #32
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_qlcnic_get_diag_lock
	cbz	x0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_netdev_info
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
Lloh10:
	adrp	x8, _QLCNIC_INTERRUPT_TEST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QLCNIC_INTERRUPT_TEST@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_qlcnic_83xx_diag_alloc_res
	mov	x23, x0
	cbnz	w0, LBB0_18
; %bb.7:
	str	xzr, [x22]
Lloh13:
	adrp	x8, _QLCNIC_CMD_INTRPT_TEST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QLCNIC_CMD_INTRPT_TEST@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x1, x20
	bl	_qlcnic_alloc_mbx_args
	mov	x23, x0
	cbnz	w0, LBB0_18
; %bb.8:
	ldr	w8, [x20]
Lloh16:
	adrp	x9, _QLCNIC_MSIX_ENABLED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _QLCNIC_MSIX_ENABLED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x22, #8]
	ldr	w24, [x8]
	b	LBB0_11
LBB0_10:
Lloh19:
	adrp	x8, _QLCNIC_DEF_INT_ID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _QLCNIC_DEF_INT_ID@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_QLCRDX
	mov	x24, x0
LBB0_11:
	ldr	x8, [sp, #8]
	mov	w9, #1
	stp	w9, w24, [x8, #4]
Lloh22:
	adrp	x9, _BIT_0@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BIT_0@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	str	w9, [x8, #12]
	mov	x1, sp
	mov	x0, x20
	bl	_qlcnic_issue_cmd
	mov	x23, x0
	ldr	x8, [sp]
	ldr	w25, [x8, #8]
	mov	x0, x25
	bl	_LSW
	mov	x26, x0
	mov	x0, x25
	bl	_MSW
	bl	_LSB
	mov	x25, x0
	cmp	w26, w24
	b.eq	LBB0_13
; %bb.12:
	ldr	x0, [x20, #24]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x26
	mov	x3, x24
	bl	_dev_info
LBB0_13:
	cbz	x25, LBB0_15
; %bb.14:
	ldr	x0, [x20, #24]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x25
	bl	_dev_err
LBB0_15:
	cbnz	w23, LBB0_17
; %bb.16:
	mov	w0, #20
	bl	_msleep
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w23, eq
LBB0_17:
	mov	x0, sp
	bl	_qlcnic_free_mbx_args
	mov	x0, x19
	mov	x1, x21
	bl	_qlcnic_83xx_diag_free_res
LBB0_18:
	stp	x27, x21, [x20, #8]
	mov	x0, x20
	bl	_qlcnic_release_diag_lock
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	___QLCNIC_RESETTING,4,2         ; @__QLCNIC_RESETTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device is resetting\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"Device in diagnostics mode\n"

	.comm	_QLCNIC_INTERRUPT_TEST,4,2      ; @QLCNIC_INTERRUPT_TEST
	.comm	_QLCNIC_CMD_INTRPT_TEST,4,2     ; @QLCNIC_CMD_INTRPT_TEST
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ; @QLCNIC_MSIX_ENABLED
	.comm	_QLCNIC_DEF_INT_ID,4,2          ; @QLCNIC_DEF_INT_ID
	.comm	_BIT_0,4,2                      ; @BIT_0
l_.str.2:                               ; @.str.2
	.asciz	"Interrupt generated: 0x%x, requested:0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Interrupt test error: 0x%x\n"

.subsections_via_symbols
