	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il_rx_queue_alloc              ## -- Begin function il_rx_queue_alloc
	.p2align	4, 0x90
_il_rx_queue_alloc:                     ## @il_rx_queue_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	%rdi, %r12
	movq	(%rdi), %r15
	leaq	8(%rdi), %rbx
	addq	$96, %rdi
	callq	_spin_lock_init
	leaq	92(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	64(%r12), %r14
	movq	%r14, %rdi
	callq	_INIT_LIST_HEAD
	movq	_RX_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_dma_alloc_coherent
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	leaq	88(%r12), %rdx
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 80(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_RX_FREE_BUFFERS@GOTPCREL(%rip), %r15
	movq	_RX_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%r15), %eax
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	72(%r12), %rdi
	addq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	incq	%r13
	movslq	(%r15), %rax
	movq	_RX_QUEUE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rax, %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r13
	jl	LBB0_4
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r12)
	movups	%xmm0, 24(%r12)
	movq	$0, 56(%r12)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	(%r12), %rdi
	movq	_RX_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movq	16(%r12), %rdx
	movl	8(%r12), %ecx
	callq	_dma_free_coherent
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_QUEUE_SIZE,4,2              ## @RX_QUEUE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RX_FREE_BUFFERS,4,2            ## @RX_FREE_BUFFERS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il_rx_queue_alloc              ; -- Begin function il_rx_queue_alloc
	.p2align	2
_il_rx_queue_alloc:                     ; @il_rx_queue_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x21, [x0]
	add	x22, x0, #8
	add	x0, x0, #96
	bl	_spin_lock_init
	add	x0, x19, #92
	bl	_INIT_LIST_HEAD
	add	x20, x19, #64
	mov	x0, x20
	bl	_INIT_LIST_HEAD
Lloh0:
	adrp	x23, _RX_QUEUE_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RX_QUEUE_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	w1, w8, #2
Lloh2:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x21
	mov	x2, x22
	bl	_dma_alloc_coherent
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.1:
	add	x2, x19, #88
	ldr	w3, [x24]
	mov	x0, x21
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	x0, [x19, #80]
	cbz	x0, LBB0_6
; %bb.2:
Lloh4:
	adrp	x21, _RX_FREE_BUFFERS@GOTPAGE
Lloh5:
	ldr	x21, [x21, _RX_FREE_BUFFERS@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x23]
	add	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
	mov	x24, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #72]
	add	x0, x8, x22
	mov	x1, x20
	bl	_list_add_tail
	add	x24, x24, #1
	ldrsw	x8, [x21]
	ldrsw	x9, [x23]
	add	x22, x22, #4
	add	x8, x9, x8
	cmp	x24, x8
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
	str	xzr, [x19, #56]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #40]
	stur	q0, [x19, #24]
	b	LBB0_8
LBB0_6:
	ldr	x0, [x19]
	ldr	w8, [x23]
	lsl	w1, w8, #2
	ldr	x2, [x19, #16]
	ldr	w3, [x19, #8]
	bl	_dma_free_coherent
LBB0_7:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_QUEUE_SIZE,4,2              ; @RX_QUEUE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RX_FREE_BUFFERS,4,2            ; @RX_FREE_BUFFERS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
