	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_82xx_napi_add           ## -- Begin function qlcnic_82xx_napi_add
	.p2align	4, 0x90
_qlcnic_82xx_napi_add:                  ## @qlcnic_82xx_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	24(%rdi), %rbx
	movl	(%rdi), %esi
	movq	%rbx, %rdi
	callq	_qlcnic_alloc_sds_rings
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%r15, %r13
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_netif_napi_add
	incq	%r14
	movslq	(%r12), %rax
	addq	$4, %r15
	cmpq	%rax, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r13
	movq	%r12, %rdi
	callq	_qlcnic_check_multi_tx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r12), %rax
	cmpl	$0, (%rax)
	movq	_qlcnic_rx_poll@GOTPCREL(%rip), %rax
	je	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %ecx
	decl	%ecx
	movq	_qlcnic_rx_poll@GOTPCREL(%rip), %rax
	cmpq	%rcx, %r14
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_qlcnic_poll@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_qlcnic_alloc_tx_rings
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rbx, %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	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r12, %rdi
	callq	_qlcnic_check_multi_tx
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	16(%r12), %rax
	cmpl	$0, (%rax)
	jne	LBB0_16
## %bb.13:
	cmpl	$0, 4(%r12)
	jle	LBB0_16
## %bb.14:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rsi
	addq	%rbx, %rsi
	movq	_qlcnic_tx_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_netif_tx_napi_add
	incq	%r14
	movslq	4(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_qlcnic_rx_poll,4,2             ## @qlcnic_rx_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ## @NAPI_POLL_WEIGHT
	.comm	_qlcnic_poll,4,2                ## @qlcnic_poll
	.comm	_qlcnic_tx_poll,4,2             ## @qlcnic_tx_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_82xx_napi_add           ; -- Begin function qlcnic_82xx_napi_add
	.p2align	2
_qlcnic_82xx_napi_add:                  ; @qlcnic_82xx_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_10
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x22, #0
	mov	x23, #0
Lloh0:
	adrp	x24, _qlcnic_rx_poll@GOTPAGE
Lloh1:
	ldr	x24, [x24, _qlcnic_rx_poll@GOTPAGEOFF]
Lloh2:
	adrp	x25, _qlcnic_poll@GOTPAGE
Lloh3:
	ldr	x25, [x25, _qlcnic_poll@GOTPAGEOFF]
Lloh4:
	adrp	x26, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
	sub	w8, w8, #1
	cmp	x23, x8
	csel	x8, x25, x24, eq
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x27, x22
	ldr	w2, [x8]
	ldr	w3, [x26]
	mov	x0, x19
	bl	_netif_napi_add
	add	x23, x23, #1
	ldrsw	x8, [x20]
	add	x22, x22, #4
	cmp	x23, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x21]
	mov	x0, x20
	bl	_qlcnic_check_multi_tx
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x24
	b	LBB0_4
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_qlcnic_alloc_tx_rings
	cbz	x0, LBB0_12
; %bb.9:
	mov	x0, x21
	bl	_qlcnic_free_sds_rings
LBB0_10:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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_12:
	mov	x0, x20
	bl	_qlcnic_check_multi_tx
	cbz	x0, LBB0_11
; %bb.13:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_15
LBB0_14:
	mov	w0, #0
	b	LBB0_11
LBB0_15:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.16:
	mov	x21, #0
	mov	x22, #0
Lloh9:
	adrp	x23, _qlcnic_tx_poll@GOTPAGE
Lloh10:
	ldr	x23, [x23, _qlcnic_tx_poll@GOTPAGEOFF]
Lloh11:
	adrp	x24, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh12:
	ldr	x24, [x24, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	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, #4]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_17
	b	LBB0_11
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_qlcnic_rx_poll,4,2             ; @qlcnic_rx_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ; @NAPI_POLL_WEIGHT
	.comm	_qlcnic_poll,4,2                ; @qlcnic_poll
	.comm	_qlcnic_tx_poll,4,2             ; @qlcnic_tx_poll
.subsections_via_symbols
