	.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	$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, %r13
	movq	16(%rax), %r12
	movl	(%rax), %r15d
	movq	%rax, %rdi
	callq	_qlcnic_get_diag_lock
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_2:
	movq	_QLCNIC_INTERRUPT_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_qlcnic_83xx_diag_alloc_res
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	movq	$0, (%r12)
	movq	_QLCNIC_CMD_INTRPT_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rdi
	movq	%r13, %rsi
	callq	_qlcnic_alloc_mbx_args
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13)
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	movq	8(%r12), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_5:
	movq	_QLCNIC_DEF_INT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_QLCRDX
LBB0_6:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdx
	movl	$1, 4(%rdx)
	movl	%eax, 8(%rdx)
	movq	_BIT_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rdx)
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %ebx
	movq	-64(%rbp), %rax
	movl	8(%rax), %r12d
	movl	%r12d, %edi
	callq	_LSW
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_MSW
	movl	%eax, %edi
	callq	_LSB
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	%rax, %r12
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%ecx, %edx
	je	LBB0_8
## %bb.7:
	movq	8(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
LBB0_8:
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movq	8(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	callq	_dev_err
LBB0_10:
	testl	%ebx, %ebx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_12
## %bb.11:
	movl	$20, %edi
	callq	_msleep
	xorl	%ebx, %ebx
	cmpq	$0, (%r12)
	sete	%bl
LBB0_12:
	leaq	-64(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_qlcnic_83xx_diag_free_res
LBB0_13:
	movl	%r15d, (%r13)
	movq	%r13, %rdi
	callq	_qlcnic_release_diag_lock
LBB0_14:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device in diagnostics mode\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.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.1:                               ## @.str.1
	.asciz	"Interrupt generated: 0x%x, requested:0x%x\n"

L_.str.2:                               ## @.str.2
	.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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x22, [x0, #16]
	ldr	w21, [x0]
	bl	_qlcnic_get_diag_lock
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_2:
Lloh5:
	adrp	x8, _QLCNIC_INTERRUPT_TEST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_INTERRUPT_TEST@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_qlcnic_83xx_diag_alloc_res
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.3:
	str	xzr, [x22]
Lloh8:
	adrp	x8, _QLCNIC_CMD_INTRPT_TEST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLCNIC_CMD_INTRPT_TEST@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	ldr	w8, [x19, #4]
Lloh11:
	adrp	x9, _QLCNIC_MSIX_ENABLED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _QLCNIC_MSIX_ENABLED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x22, #8]
	ldr	w24, [x8]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _QLCNIC_DEF_INT_ID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QLCNIC_DEF_INT_ID@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_QLCRDX
	mov	x24, x0
LBB0_6:
	ldr	x8, [sp, #8]
	mov	w9, #1
	stp	w9, w24, [x8, #4]
Lloh17:
	adrp	x9, _BIT_0@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BIT_0@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	str	w9, [x8, #12]
	mov	x1, sp
	mov	x0, x19
	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_8
; %bb.7:
	ldr	x0, [x19, #8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x26
	mov	x3, x24
	bl	_dev_info
LBB0_8:
	cbz	x25, LBB0_10
; %bb.9:
	ldr	x0, [x19, #8]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x25
	bl	_dev_err
LBB0_10:
	cbnz	w23, LBB0_12
; %bb.11:
	mov	w0, #20
	bl	_msleep
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w23, eq
LBB0_12:
	mov	x0, sp
	bl	_qlcnic_free_mbx_args
	mov	x0, x20
	mov	x1, x21
	bl	_qlcnic_83xx_diag_free_res
LBB0_13:
	str	w21, [x19]
	mov	x0, x19
	bl	_qlcnic_release_diag_lock
LBB0_14:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device in diagnostics mode\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.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.1:                               ; @.str.1
	.asciz	"Interrupt generated: 0x%x, requested:0x%x\n"

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

.subsections_via_symbols
