	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_prepare_rx_desc
_mlx4_en_prepare_rx_desc:               ## @mlx4_en_prepare_rx_desc
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movb	(%rsi), %cl
	movl	%edx, %eax
	shll	%cl, %eax
	movslq	%eax, %r14
	shlq	$3, %r14
	addq	32(%rsi), %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movb	(%rdi), %cl
	shll	%cl, %edx
	movq	24(%rsi), %r15
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %r12
	leaq	(%r15,%r12,8), %r13
	xorl	%edi, %edi
	cmpq	$0, 8(%rsi)
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpq	$0, 16(%r15,%r12,8)
	je	LBB0_3
## %bb.2:
	movq	(%r13), %rdi
	jmp	LBB0_4
LBB0_5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx4_en_alloc_frags            ## TAILCALL
LBB0_3:
	leaq	(%r15,%r12,8), %rax
	addq	$16, %rax
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	decq	%rcx
	movq	%rcx, 8(%rbx)
	shlq	$4, %rcx
	movq	8(%rdx,%rcx), %rsi
	movq	%rsi, (%rax)
	movq	(%rdx,%rcx), %rdi
	movq	%rdi, (%r13)
LBB0_4:
	movq	_XDP_PACKET_HEADROOM@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 8(%r15,%r12,8)
	addq	(%rax), %rdi
	callq	_cpu_to_be64
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XDP_PACKET_HEADROOM,8,3        ## @XDP_PACKET_HEADROOM
	.no_dead_strip	_mlx4_en_prepare_rx_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_prepare_rx_desc
_mlx4_en_prepare_rx_desc:               ; @mlx4_en_prepare_rx_desc
	.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	x22, x3
	mov	x20, x1
	mov	x23, x0
	ldr	w8, [x1]
	lsl	w8, w2, w8
	ldp	x24, x9, [x1, #24]
	add	x19, x9, w8, sxtw #3
	ldr	w8, [x0]
	lsl	w25, w2, w8
	mov	w8, #24
	smaddl	x21, w25, w8, x24
	ldr	x8, [x1, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_3
; %bb.1:
	sxtw	x8, w25
	mov	w9, #24
	madd	x10, x8, x9, x24
	ldr	x9, [x10, #16]!
	cbz	x9, LBB0_4
; %bb.2:
	ldr	x9, [x21]
	b	LBB0_5
LBB0_3:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	mov	x4, x22
	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
	b	_mlx4_en_alloc_frags
LBB0_4:
	ldp	x9, x11, [x20, #8]
	sub	x9, x9, #1
	str	x9, [x20, #8]
	add	x9, x11, x9, lsl #4
	ldp	x9, x11, [x9]
	str	x11, [x10]
	str	x9, [x21]
LBB0_5:
Lloh0:
	adrp	x10, _XDP_PACKET_HEADROOM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _XDP_PACKET_HEADROOM@GOTPAGEOFF]
	ldr	x11, [x10]
	mov	w12, #24
	madd	x8, x8, x12, x24
	str	x11, [x8, #8]
	ldr	x8, [x10]
	add	x0, x8, x9
	bl	_cpu_to_be64
	ldr	x8, [x19]
	str	w0, [x8]
	mov	w0, #0
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_XDP_PACKET_HEADROOM,8,3        ; @XDP_PACKET_HEADROOM
	.no_dead_strip	_mlx4_en_prepare_rx_desc
.subsections_via_symbols
