	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alx_alloc_napis
_alx_alloc_napis:                       ## @alx_alloc_napis
	.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	%rdi, %r14
	movq	_ALX_ISR_ALL_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%rdi)
	cmpl	$0, (%rdi)
	jle	LBB0_4
## %bb.1:
	xorl	%r15d, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movq	_alx_poll@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%r14, 32(%rax)
	movl	8(%r14), %edi
	movq	%rax, %rsi
	addq	$24, %rsi
	movl	(%r13), %edx
	movl	$64, %ecx
	callq	_netif_napi_add
	movq	32(%r14), %rax
	movq	%rbx, (%rax,%r15,8)
	incq	%r15
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	jl	LBB0_2
LBB0_4:
	cmpl	$0, 4(%r14)
	jle	LBB0_8
## %bb.5:
	xorl	%ebx, %ebx
	movq	_tx_cidx_reg@GOTPCREL(%rip), %r13
	movq	_tx_vect_mask@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rax
	movq	(%rax,%rbx,8), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, 16(%r15)
	movq	_tx_pidx_reg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movl	%ecx, 28(%rax)
	movq	(%r13), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movl	%ecx, 24(%rax)
	movl	%ebx, (%rax)
	movl	40(%r14), %ecx
	movl	%ecx, 20(%rax)
	movl	8(%r14), %ecx
	movl	%ecx, 16(%rax)
	movq	16(%r14), %rcx
	movq	%rcx, 8(%rax)
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %ecx
	orl	%ecx, (%r15)
	movl	(%rax,%rbx,4), %eax
	orl	%eax, 12(%r14)
	incq	%rbx
	movslq	4(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_8:
	movq	32(%r14), %rax
	movq	(%rax), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, 8(%rbx)
	movq	32(%r14), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rax)
	movq	$0, 16(%rax)
	movl	24(%r14), %ecx
	movl	%ecx, 12(%rax)
	movl	8(%r14), %ecx
	movl	%ecx, 8(%rax)
	movq	16(%r14), %rcx
	movq	%rcx, (%rax)
	movq	_rx_vect_mask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	orl	%ecx, (%rbx)
	movl	(%rax), %eax
	orl	%eax, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_10:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	%r14, %rdi
	callq	_alx_free_napis
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALX_ISR_ALL_QUEUES,4,2         ## @ALX_ISR_ALL_QUEUES
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_alx_poll,4,2                   ## @alx_poll
	.comm	_tx_pidx_reg,8,3                ## @tx_pidx_reg
	.comm	_tx_cidx_reg,8,3                ## @tx_cidx_reg
	.comm	_tx_vect_mask,8,3               ## @tx_vect_mask
	.comm	_rx_vect_mask,8,3               ## @rx_vect_mask
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error allocating internal structures\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alx_alloc_napis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alx_alloc_napis
_alx_alloc_napis:                       ; @alx_alloc_napis
	.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	x19, x0
Lloh0:
	adrp	x8, _ALX_ISR_ALL_QUEUES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALX_ISR_ALL_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #12]
	bic	w8, w9, w8
	str	w8, [x0, #12]
	ldr	w8, [x0]
Lloh3:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
Lloh5:
	adrp	x23, _alx_poll@GOTPAGE
Lloh6:
	ldr	x23, [x23, _alx_poll@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x0
	str	x19, [x0, #32]
	ldr	w0, [x19, #8]
	add	x1, x20, #24
	ldr	w2, [x23]
	mov	w3, #64
	bl	_netif_napi_add
	ldr	x8, [x19, #32]
	str	x20, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_4:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x20, #0
Lloh7:
	adrp	x22, _tx_pidx_reg@GOTPAGE
Lloh8:
	ldr	x22, [x22, _tx_pidx_reg@GOTPAGEOFF]
Lloh9:
	adrp	x23, _tx_cidx_reg@GOTPAGE
Lloh10:
	ldr	x23, [x23, _tx_cidx_reg@GOTPAGEOFF]
Lloh11:
	adrp	x24, _tx_vect_mask@GOTPAGE
Lloh12:
	ldr	x24, [x24, _tx_vect_mask@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	x25, [x8, x20, lsl #3]
	ldr	w1, [x21]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	lsl	x9, x20, #2
	ldr	w8, [x8, x9]
	str	w8, [x0, #28]
	ldr	x8, [x23]
	ldr	w8, [x8, x9]
	str	w8, [x0, #24]
	str	w20, [x0]
	ldr	w8, [x19, #40]
	ldp	w11, w10, [x19, #4]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	stp	w10, w8, [x0, #16]
	ldr	x8, [x24]
	ldr	w10, [x8, x9]
	ldr	w12, [x25]
	orr	w10, w12, w10
	str	w10, [x25]
	str	x0, [x25, #16]
	ldr	x10, [x19, #16]
	ldr	w8, [x8, x9]
	str	x10, [x0, #8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
	add	x20, x20, #1
	cmp	x20, x11
	b.lt	LBB0_6
LBB0_8:
	ldr	x8, [x19, #32]
	ldr	x20, [x8]
	ldr	w1, [x21]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.9:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x20, #8]
	ldr	x9, [x19, #32]
	ldr	x9, [x9]
	ldr	w10, [x19, #24]
	ldp	w11, w12, [x19, #8]
	stp	w11, w10, [x8, #8]
	ldr	x10, [x19, #16]
	str	x10, [x8]
Lloh13:
	adrp	x10, _rx_vect_mask@GOTPAGE
Lloh14:
	ldr	x10, [x10, _rx_vect_mask@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	ldr	w11, [x10]
	ldr	w13, [x20]
	orr	w11, w13, w11
	str	w11, [x20]
	stp	xzr, x9, [x8, #16]
	ldr	w8, [x10]
	orr	w8, w12, w8
	str	w8, [x19, #12]
	b	LBB0_11
LBB0_10:
	ldr	w0, [x19, #8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	mov	x0, x19
	bl	_alx_free_napis
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ALX_ISR_ALL_QUEUES,4,2         ; @ALX_ISR_ALL_QUEUES
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_alx_poll,4,2                   ; @alx_poll
	.comm	_tx_pidx_reg,8,3                ; @tx_pidx_reg
	.comm	_tx_cidx_reg,8,3                ; @tx_cidx_reg
	.comm	_tx_vect_mask,8,3               ; @tx_vect_mask
	.comm	_rx_vect_mask,8,3               ; @rx_vect_mask
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error allocating internal structures\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alx_alloc_napis
.subsections_via_symbols
