	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_setup_mbx_intr     ## -- Begin function qlcnic_83xx_setup_mbx_intr
	.p2align	4, 0x90
_qlcnic_83xx_setup_mbx_intr:            ## @qlcnic_83xx_setup_mbx_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_QLCNIC_MSI_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	orl	%eax, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	movq	_qlcnic_83xx_handle_aen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movslq	(%rcx), %rcx
	movl	-4(%rax,%rcx,4), %edi
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_10
LBB0_1:
	xorl	%edx, %edx
	testl	%eax, %eax
	jne	LBB0_4
LBB0_6:
	movq	_qlcnic_83xx_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_clear_legacy_intr_mask
LBB0_9:
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_enable_mbx_interrupt
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_MSI_ENABLED,4,2         ## @QLCNIC_MSI_ENABLED
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ## @QLCNIC_MSIX_ENABLED
	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
	.comm	_qlcnic_83xx_handle_aen,4,2     ## @qlcnic_83xx_handle_aen
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qlcnic-MB"

L_.str.1:                               ## @.str.1
	.asciz	"failed to register MBX interrupt\n"

	.comm	_qlcnic_83xx_intr,4,2           ## @qlcnic_83xx_intr
L_.str.2:                               ## @.str.2
	.asciz	"qlcnic"

L_.str.3:                               ## @.str.3
	.asciz	"failed to register INTx interrupt\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_setup_mbx_intr     ; -- Begin function qlcnic_83xx_setup_mbx_intr
	.p2align	2
_qlcnic_83xx_setup_mbx_intr:            ; @qlcnic_83xx_setup_mbx_intr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _QLCNIC_MSI_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_MSI_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh3:
	adrp	x10, _QLCNIC_MSIX_ENABLED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QLCNIC_MSIX_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w8, w10, w8
	orr	w9, w9, w8
Lloh6:
	adrp	x10, _IRQF_SHARED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IRQF_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	w9, #0
	csel	x2, x10, xzr, eq
	cbz	w8, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _qlcnic_83xx_handle_aen@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qlcnic_83xx_handle_aen@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldp	x8, x9, [x19, #16]
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
	ldur	w0, [x8, #-4]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_3:
Lloh16:
	adrp	x8, _qlcnic_83xx_intr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _qlcnic_83xx_intr@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh19:
	adrp	x3, l_.str.2@PAGE
Lloh20:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_qlcnic_83xx_clear_legacy_intr_mask
LBB0_6:
	mov	x0, x19
	bl	_qlcnic_83xx_enable_mbx_interrupt
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_MSI_ENABLED,4,2         ; @QLCNIC_MSI_ENABLED
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ; @QLCNIC_MSIX_ENABLED
	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
	.comm	_qlcnic_83xx_handle_aen,4,2     ; @qlcnic_83xx_handle_aen
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qlcnic-MB"

l_.str.1:                               ; @.str.1
	.asciz	"failed to register MBX interrupt\n"

	.comm	_qlcnic_83xx_intr,4,2           ; @qlcnic_83xx_intr
l_.str.2:                               ; @.str.2
	.asciz	"qlcnic"

l_.str.3:                               ; @.str.3
	.asciz	"failed to register INTx interrupt\n"

.subsections_via_symbols
