	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_82xx_setup_intr
_qlcnic_82xx_setup_intr:                ## @qlcnic_82xx_setup_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_QLCNIC_TSS_RSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_qlcnic_setup_tss_rss_intr
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_qlcnic_82xx_calculate_msix_vector
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_qlcnic_enable_msix
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	addl	(%rcx), %edx
	je	LBB0_6
## %bb.3:
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_qlcnic_disable_multi_tx
	movq	_QLCNIC_SINGLE_RING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_qlcnic_enable_msi_legacy
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_TSS_RSS,4,2             ## @QLCNIC_TSS_RSS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ## @QLCNIC_MSIX_ENABLED
	.comm	_QLCNIC_SINGLE_RING,4,2         ## @QLCNIC_SINGLE_RING
	.no_dead_strip	_qlcnic_82xx_setup_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_82xx_setup_intr
_qlcnic_82xx_setup_intr:                ; @qlcnic_82xx_setup_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_TSS_RSS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_TSS_RSS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_qlcnic_setup_tss_rss_intr
	tbz	w0, #31, LBB0_5
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_qlcnic_82xx_calculate_msix_vector
	mov	x1, x0
	mov	x0, x19
	bl	_qlcnic_enable_msix
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _QLCNIC_MSIX_ENABLED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QLCNIC_MSIX_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_qlcnic_disable_multi_tx
Lloh9:
	adrp	x8, _QLCNIC_SINGLE_RING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLCNIC_SINGLE_RING@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_qlcnic_enable_msi_legacy
	cbnz	w0, LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_TSS_RSS,4,2             ; @QLCNIC_TSS_RSS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ; @QLCNIC_MSIX_ENABLED
	.comm	_QLCNIC_SINGLE_RING,4,2         ; @QLCNIC_SINGLE_RING
	.no_dead_strip	_qlcnic_82xx_setup_intr
.subsections_via_symbols
