	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_setup_intr         ## -- Begin function qlcnic_83xx_setup_intr
	.p2align	4, 0x90
_qlcnic_83xx_setup_intr:                ## @qlcnic_83xx_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	_QLCNIC_TSS_RSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_qlcnic_setup_tss_rss_intr
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_21
LBB0_3:
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_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_21
## %bb.4:
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_17
LBB0_5:
	movl	(%r15), %r14d
LBB0_6:
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_array_size
	movl	%eax, %edi
	callq	_vzalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.8:
	testl	%r14d, %r14d
	jle	LBB0_16
LBB0_9:
	movl	(%rbx), %eax
	movq	16(%r15), %rcx
	movl	%r14d, %edx
	addq	$16, %rcx
	xorl	%esi, %esi
	movq	_QLCNIC_INTRPT_MSIX@GOTPCREL(%rip), %r9
	movq	_QLCNIC_INTRPT_INTX@GOTPCREL(%rip), %r8
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rdi), %edi
	movl	%edi, (%rcx)
	movl	%esi, -16(%rcx)
	movq	$0, -8(%rcx)
	incq	%rsi
	addq	$24, %rcx
	cmpq	%rsi, %rdx
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ebx
	movq	%r9, %rdi
	andl	%eax, %ebx
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r8, %rdi
	jmp	LBB0_10
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_14:
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	movq	_QLC_MAX_LEGACY_FUNC_SUPP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_19
## %bb.15:
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_enable_legacy
	testl	%r14d, %r14d
	jg	LBB0_9
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_17:
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_vf_check
	testq	%rax, %rax
	je	LBB0_22
## %bb.18:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_19:
	movq	8(%rbx), %rdi
	movq	8(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_20:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_QLCNIC_SINGLE_RING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	%rax, 24(%rbx)
	movl	$1, %r14d
	jmp	LBB0_6
	.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	_EINVAL,4,2                     ## @EINVAL
	.comm	_QLCNIC_SINGLE_RING,8,3         ## @QLCNIC_SINGLE_RING
	.comm	_QLC_MAX_LEGACY_FUNC_SUPP,8,3   ## @QLC_MAX_LEGACY_FUNC_SUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI function number 8 and higher are not supported with legacy interrupt, func 0x%x\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_QLCNIC_INTRPT_MSIX,4,2         ## @QLCNIC_INTRPT_MSIX
	.comm	_QLCNIC_INTRPT_INTX,4,2         ## @QLCNIC_INTRPT_INTX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_setup_intr         ; -- Begin function qlcnic_83xx_setup_intr
	.p2align	2
_qlcnic_83xx_setup_intr:                ; @qlcnic_83xx_setup_intr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x21, [x0, #16]
	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:
	bl	_qlcnic_setup_tss_rss_intr
	tbz	w0, #31, LBB0_4
	b	LBB0_18
LBB0_2:
	bl	_qlcnic_83xx_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_18
; %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.eq	LBB0_14
LBB0_4:
	ldr	w20, [x21]
LBB0_5:
	mov	x0, x20
	mov	w1, #4
	bl	_array_size
	bl	_vzalloc
	str	x0, [x21, #16]
	cbz	x0, LBB0_11
; %bb.6:
	ldr	w8, [x19]
Lloh9:
	adrp	x22, _QLCNIC_MSIX_ENABLED@GOTPAGE
Lloh10:
	ldr	x22, [x22, _QLCNIC_MSIX_ENABLED@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.7:
	cmp	w20, #1
	b.lt	LBB0_10
LBB0_8:
	mov	x8, #0
	ldr	w9, [x19]
	ldr	x11, [x21, #16]
	mov	w10, w20
	add	x11, x11, #16
Lloh11:
	adrp	x12, _QLCNIC_INTRPT_INTX@GOTPAGE
Lloh12:
	ldr	x12, [x12, _QLCNIC_INTRPT_INTX@GOTPAGEOFF]
Lloh13:
	adrp	x13, _QLCNIC_INTRPT_MSIX@GOTPAGE
Lloh14:
	ldr	x13, [x13, _QLCNIC_INTRPT_MSIX@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x22]
	tst	w14, w9
	csel	x14, x12, x13, eq
	ldr	w14, [x14]
	str	w14, [x11]
	stur	w8, [x11, #-16]
	stur	xzr, [x11, #-8]
	add	x8, x8, #1
	add	x11, x11, #24
	cmp	x10, x8
	b.ne	LBB0_9
LBB0_10:
	mov	w0, #0
	b	LBB0_18
LBB0_11:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
Lloh17:
	adrp	x9, _QLC_MAX_LEGACY_FUNC_SUPP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _QLC_MAX_LEGACY_FUNC_SUPP@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_16
; %bb.13:
	mov	x0, x19
	bl	_qlcnic_83xx_enable_legacy
	cmp	w20, #1
	b.ge	LBB0_8
	b	LBB0_10
LBB0_14:
	mov	x0, x19
	bl	_qlcnic_sriov_vf_check
	cbz	x0, LBB0_19
; %bb.15:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
	ldr	x0, [x19, #8]
	ldr	x2, [x21, #8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh24:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh26:
	adrp	x8, _QLCNIC_SINGLE_RING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _QLCNIC_SINGLE_RING@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #24]
	mov	w20, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.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	_EINVAL,4,2                     ; @EINVAL
	.comm	_QLCNIC_SINGLE_RING,8,3         ; @QLCNIC_SINGLE_RING
	.comm	_QLC_MAX_LEGACY_FUNC_SUPP,8,3   ; @QLC_MAX_LEGACY_FUNC_SUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI function number 8 and higher are not supported with legacy interrupt, func 0x%x\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_QLCNIC_INTRPT_MSIX,4,2         ; @QLCNIC_INTRPT_MSIX
	.comm	_QLCNIC_INTRPT_INTX,4,2         ; @QLCNIC_INTRPT_INTX
.subsections_via_symbols
