	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_tx_get_copy_buffer
_ef4_tx_get_copy_buffer:                ## @ef4_tx_get_copy_buffer
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_ef4_tx_queue_get_insert_index
	movl	%eax, %r13d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_EF4_TX_CB_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%eax, %ecx
	movl	%r13d, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %ebx
	movq	8(%r12), %r14
	shlq	$4, %rbx
	leaq	(%r14,%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %ecx
	shll	%cl, %r13d
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%edi, %edi
	cmpq	$0, (%r14,%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%r12), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ef4_nic_alloc_buffer
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	decl	%r15d
	andl	%r13d, %r15d
	movl	%r15d, %eax
	movq	8(%r14,%rbx), %rcx
	addq	%rax, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, 8(%rdx)
	movq	$0, (%rdx)
	shlq	$2, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx), %rax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_EF4_TX_CB_ORDER,4,2            ## @EF4_TX_CB_ORDER
	.comm	_NET_IP_ALIGN,4,2               ## @NET_IP_ALIGN
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_ef4_tx_get_copy_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ef4_tx_get_copy_buffer
_ef4_tx_get_copy_buffer:                ; @ef4_tx_get_copy_buffer
	.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	x22, x0
	bl	_ef4_tx_queue_get_insert_index
	mov	x21, x0
	ldr	x23, [x22, #8]
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EF4_TX_CB_ORDER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EF4_TX_CB_ORDER@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x9]
	sub	w8, w8, w25
	lsr	w24, w0, w8
	add	x20, x23, w24, uxtw #4
Lloh6:
	adrp	x8, _NET_IP_ALIGN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh8:
	ldr	w26, [x8]
Lloh9:
	adrp	x28, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w27, [x28]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x22]
	ldr	w2, [x28]
Lloh11:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_ef4_nic_alloc_buffer
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, #0
	b	LBB0_4
LBB0_3:
	lsl	w8, w21, w25
	sub	w9, w27, #1
	add	w8, w8, w26
	and	w8, w9, w8
	add	x9, x23, x24, lsl #4
	ldr	x9, [x9, #8]
	add	x9, x9, x8
	stp	xzr, x9, [x19]
	ldr	x9, [x20]
	add	x0, x9, w8, uxtw #2
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_EF4_TX_CB_ORDER,4,2            ; @EF4_TX_CB_ORDER
	.comm	_NET_IP_ALIGN,4,2               ; @NET_IP_ALIGN
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_ef4_tx_get_copy_buffer
.subsections_via_symbols
