	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_vec_alloc                   ## -- Begin function aq_vec_alloc
	.p2align	4, 0x90
_aq_vec_alloc:                          ## @aq_vec_alloc
	.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	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%r15, 48(%r12)
	movl	%ebx, 24(%r12)
	movl	%ebx, %edi
	addq	8(%r14), %rdi
	movq	%rdi, 32(%r12)
	leaq	28(%r12), %rsi
	callq	_cpumask_set_cpu
	movq	$0, 16(%r12)
	movq	$0, (%r12)
	movq	%r15, %rdi
	callq	_aq_nic_get_ndev
	movq	%r12, %rsi
	addq	$44, %rsi
	movq	_aq_vec_poll@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_AQ_CFG_NAPI_WEIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	callq	_netif_napi_add
	cmpl	$0, (%r14)
	je	LBB0_8
## %bb.2:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	40(%r12), %edi
	movq	16(%r12), %rsi
	movl	24(%r12), %edx
	callq	_AQ_NIC_TCVEC2RING
	movl	%eax, %ebx
	movq	8(%r12), %rax
	movq	_AQ_VEC_TX_ID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	shlq	$2, %rdi
	addq	(%rax,%r13,8), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_aq_ring_tx_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	16(%r12)
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_aq_nic_set_tx_ring
	movq	8(%r12), %rax
	movq	_AQ_VEC_RX_ID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	shlq	$2, %rdi
	addq	(%rax,%r13,8), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_aq_ring_rx_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	(%r12)
	incq	%r13
	movl	(%r14), %eax
	cmpq	%rax, %r13
	jb	LBB0_3
	jmp	LBB0_8
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_aq_vec_free
	xorl	%r12d, %r12d
LBB0_8:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_aq_vec_poll,4,2                ## @aq_vec_poll
	.comm	_AQ_CFG_NAPI_WEIGHT,4,2         ## @AQ_CFG_NAPI_WEIGHT
	.comm	_AQ_VEC_TX_ID,8,3               ## @AQ_VEC_TX_ID
	.comm	_AQ_VEC_RX_ID,8,3               ## @AQ_VEC_RX_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_vec_alloc                   ; -- Begin function aq_vec_alloc
	.p2align	2
_aq_vec_alloc:                          ; @aq_vec_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	str	x21, [x19, #48]
	str	w22, [x19, #24]
	ldr	x8, [x20, #8]
	add	x0, x8, w22, uxtw
	str	x0, [x19, #32]
	add	x1, x19, #28
	bl	_cpumask_set_cpu
	str	xzr, [x19, #16]
	str	xzr, [x19]
	mov	x0, x21
	bl	_aq_nic_get_ndev
	add	x1, x19, #44
Lloh3:
	adrp	x8, _aq_vec_poll@GOTPAGE
Lloh4:
	ldr	x8, [x8, _aq_vec_poll@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _AQ_CFG_NAPI_WEIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AQ_CFG_NAPI_WEIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_netif_napi_add
	ldr	w8, [x20]
	cbz	w8, LBB0_8
; %bb.2:
	mov	x23, #0
Lloh9:
	adrp	x24, _AQ_VEC_TX_ID@GOTPAGE
Lloh10:
	ldr	x24, [x24, _AQ_VEC_TX_ID@GOTPAGEOFF]
Lloh11:
	adrp	x25, _AQ_VEC_RX_ID@GOTPAGE
Lloh12:
	ldr	x25, [x25, _AQ_VEC_RX_ID@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #40]
	ldr	x1, [x19, #16]
	ldr	w2, [x19, #24]
	bl	_AQ_NIC_TCVEC2RING
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x24]
	add	x0, x8, x9, lsl #2
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	bl	_aq_ring_tx_alloc
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
	mov	x0, x21
	mov	x1, x22
	bl	_aq_nic_set_tx_ring
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x25]
	add	x0, x8, x9, lsl #2
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	bl	_aq_ring_rx_alloc
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	add	x23, x23, #1
	ldr	w8, [x20]
	cmp	x23, x8
	b.lo	LBB0_3
	b	LBB0_8
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_aq_vec_free
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_aq_vec_poll,4,2                ; @aq_vec_poll
	.comm	_AQ_CFG_NAPI_WEIGHT,4,2         ; @AQ_CFG_NAPI_WEIGHT
	.comm	_AQ_VEC_TX_ID,8,3               ; @AQ_VEC_TX_ID
	.comm	_AQ_VEC_RX_ID,8,3               ; @AQ_VEC_RX_ID
.subsections_via_symbols
