	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_napi_add           ## -- Begin function qlcnic_83xx_napi_add
	.p2align	4, 0x90
_qlcnic_83xx_napi_add:                  ## @qlcnic_83xx_napi_add
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	24(%rdi), %r15
	movl	(%rdi), %esi
	movq	%r15, %rdi
	callq	_qlcnic_alloc_sds_rings
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rcx), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_netif_napi_add
	incq	%r13
	movslq	(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edx
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	_qlcnic_83xx_msix_sriov_vf_poll@GOTPCREL(%rip), %rcx
	movq	_QLCNIC_TX_INTR_SHARED@GOTPCREL(%rip), %rsi
	andl	(%rsi), %edx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_qlcnic_83xx_rx_poll@GOTPCREL(%rip), %rcx
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_qlcnic_83xx_poll@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_qlcnic_alloc_tx_rings
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%r15, %rdi
	callq	_qlcnic_free_sds_rings
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	4(%r12), %eax
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.12:
	movq	_QLCNIC_TX_INTR_SHARED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_16
## %bb.13:
	cmpl	$0, 8(%r12)
	jle	LBB0_16
## %bb.14:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rsi
	addq	%r13, %rsi
	movq	_qlcnic_83xx_msix_tx_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_netif_tx_napi_add
	incq	%rbx
	movslq	8(%r12), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ## @QLCNIC_MSIX_ENABLED
	.comm	_QLCNIC_TX_INTR_SHARED,4,2      ## @QLCNIC_TX_INTR_SHARED
	.comm	_qlcnic_83xx_rx_poll,4,2        ## @qlcnic_83xx_rx_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ## @NAPI_POLL_WEIGHT
	.comm	_qlcnic_83xx_msix_sriov_vf_poll,4,2 ## @qlcnic_83xx_msix_sriov_vf_poll
	.comm	_qlcnic_83xx_poll,4,2           ## @qlcnic_83xx_poll
	.comm	_qlcnic_83xx_msix_tx_poll,4,2   ## @qlcnic_83xx_msix_tx_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_napi_add           ; -- Begin function qlcnic_83xx_napi_add
	.p2align	2
_qlcnic_83xx_napi_add:                  ; @qlcnic_83xx_napi_add
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #24]
	ldr	w1, [x0]
	mov	x0, x21
	bl	_qlcnic_alloc_sds_rings
	cbnz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x25, _QLCNIC_MSIX_ENABLED@GOTPAGE
Lloh1:
	ldr	x25, [x25, _QLCNIC_MSIX_ENABLED@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x23, #0
	mov	x24, #0
Lloh2:
	adrp	x26, _qlcnic_83xx_poll@GOTPAGE
Lloh3:
	ldr	x26, [x26, _qlcnic_83xx_poll@GOTPAGEOFF]
Lloh4:
	adrp	x27, _qlcnic_83xx_rx_poll@GOTPAGE
Lloh5:
	ldr	x27, [x27, _qlcnic_83xx_rx_poll@GOTPAGEOFF]
Lloh6:
	adrp	x28, _qlcnic_83xx_msix_sriov_vf_poll@GOTPAGE
Lloh7:
	ldr	x28, [x28, _qlcnic_83xx_msix_sriov_vf_poll@GOTPAGEOFF]
Lloh8:
	adrp	x22, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh9:
	ldr	x22, [x22, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w9, [x20, #4]
	ldr	w10, [x25]
	add	x1, x8, x23
Lloh10:
	adrp	x8, _QLCNIC_TX_INTR_SHARED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QLCNIC_TX_INTR_SHARED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w9
	csel	x8, x27, x28, eq
	tst	w10, w9
	csel	x8, x26, x8, eq
	ldr	w2, [x8]
	ldr	w3, [x22]
	mov	x0, x19
	bl	_netif_napi_add
	add	x24, x24, #1
	ldrsw	x8, [x20]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_qlcnic_alloc_tx_rings
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x21
	bl	_qlcnic_free_sds_rings
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w8, [x20, #4]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh16:
	adrp	x9, _QLCNIC_TX_INTR_SHARED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _QLCNIC_TX_INTR_SHARED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_10:
	mov	w0, #0
	b	LBB0_7
LBB0_11:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.12:
	mov	x21, #0
	mov	x22, #0
Lloh19:
	adrp	x23, _qlcnic_83xx_msix_tx_poll@GOTPAGE
Lloh20:
	ldr	x23, [x23, _qlcnic_83xx_msix_tx_poll@GOTPAGEOFF]
Lloh21:
	adrp	x24, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh22:
	ldr	x24, [x24, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x1, x8, x21
	ldr	w2, [x23]
	ldr	w3, [x24]
	mov	x0, x19
	bl	_netif_tx_napi_add
	mov	w0, #0
	add	x22, x22, #1
	ldrsw	x8, [x20, #8]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_13
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ; @QLCNIC_MSIX_ENABLED
	.comm	_QLCNIC_TX_INTR_SHARED,4,2      ; @QLCNIC_TX_INTR_SHARED
	.comm	_qlcnic_83xx_rx_poll,4,2        ; @qlcnic_83xx_rx_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ; @NAPI_POLL_WEIGHT
	.comm	_qlcnic_83xx_msix_sriov_vf_poll,4,2 ; @qlcnic_83xx_msix_sriov_vf_poll
	.comm	_qlcnic_83xx_poll,4,2           ; @qlcnic_83xx_poll
	.comm	_qlcnic_83xx_msix_tx_poll,4,2   ; @qlcnic_83xx_msix_tx_poll
.subsections_via_symbols
