	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il_tx_queue_alloc
_il_tx_queue_alloc:                     ## @il_tx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rax
	movq	16(%rdi), %r15
	movq	_TFD_QUEUE_SIZE_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	8(%rax), %rbx
	imulq	%rdi, %rbx
	cmpq	%rdx, (%rax)
	jne	LBB0_1
## %bb.4:
	movq	$0, (%r12)
	jmp	LBB0_5
LBB0_1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	leaq	16(%r12), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dma_alloc_coherent
	movl	%eax, 24(%r12)
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movq	%r14, 8(%r12)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_IL_ERR
LBB0_3:
	movq	(%r12), %rdi
	callq	_kfree
	movq	$0, (%r12)
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TFD_QUEUE_SIZE_MAX,8,3         ## @TFD_QUEUE_SIZE_MAX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fail to alloc skbs\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il_tx_queue_alloc
_il_tx_queue_alloc:                     ; @il_tx_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	x20, x2
	mov	x19, x1
	ldp	x24, x21, [x0, #8]
Lloh0:
	adrp	x8, _TFD_QUEUE_SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TFD_QUEUE_SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	x8, [x0]
Lloh3:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	cmp	x8, x2
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x19]
	b	LBB0_3
LBB0_2:
	ldr	w2, [x23]
	mov	x0, x22
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19]
	cbz	x0, LBB0_5
LBB0_3:
	mul	x1, x22, x24
	add	x2, x19, #16
	ldr	w3, [x23]
	mov	x0, x21
	bl	_dma_alloc_coherent
	str	w0, [x19, #24]
	cbz	w0, LBB0_6
; %bb.4:
	mov	w0, #0
	str	x20, [x19, #8]
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IL_ERR
LBB0_6:
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TFD_QUEUE_SIZE_MAX,8,3         ; @TFD_QUEUE_SIZE_MAX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fail to alloc skbs\n"

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