	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_rx_build_jumbo
_qede_rx_build_jumbo:                   ## @qede_rx_build_jumbo
	.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	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rcx), %edi
	callq	_le16_to_cpu
	movq	%rax, %r13
	subq	%r14, %r13
	movq	(%r15), %rbx
	cmpq	$2, %rbx
	jl	LBB0_1
## %bb.2:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %r14
	cmpq	%r14, %r13
	cmovlq	%r13, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_qede_alloc_rx_buffer
	movq	%rax, %rdi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_NUM_RX_BDS_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	andq	8(%r15), %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	movq	24(%r15), %r13
	movq	%r15, %rdi
	callq	_qede_rx_bd_ring_consume
	movl	20(%r15), %edi
	movl	4(%r13,%r12,8), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_page
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movl	(%rax), %esi
	leal	1(%rsi), %ecx
	movl	%ecx, (%rax)
	movl	(%r13,%r12,8), %edx
	movq	%rbx, %r13
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	16(%r15), %ecx
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %r8
	callq	_skb_fill_page_desc
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 8(%r12)
	addl	%r14d, 4(%r12)
	addl	%r14d, (%r12)
	subq	%r14, %r13
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_3
## %bb.7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	decq	%rbx
LBB0_8:
	movq	%r13, %rdi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_DP_ERR
	jmp	LBB0_11
LBB0_4:
	decq	%rbx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_DP_ERR
	jmp	LBB0_11
LBB0_10:
	decq	%rbx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Still got %d BDs for mapping jumbo, but length became 0\n"

	.comm	_NUM_RX_BDS_MAX,8,3             ## @NUM_RX_BDS_MAX
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"Mapped all BDs of jumbo, but still have %d bytes\n"

	.no_dead_strip	_qede_rx_build_jumbo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_rx_build_jumbo
_qede_rx_build_jumbo:                   ; @qede_rx_build_jumbo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x3, #8]
	bl	_le16_to_cpu
	sub	x20, x0, x20
	ldr	x24, [x23]
	cmp	x24, #2
	b.lt	LBB0_6
; %bb.1:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x25, _NUM_RX_BDS_MAX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NUM_RX_BDS_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x27, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cmp	x20, x8
	csel	x23, x20, x8, lt
	cmp	x23, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	w1, #1
	bl	_qede_alloc_rx_buffer
	bl	_unlikely
	cbnz	x0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [x25]
	and	x28, x9, x8
	ldr	x19, [x22, #24]
	mov	x0, x22
	bl	_qede_rx_bd_ring_consume
	ldr	w0, [x22, #20]
	add	x19, x19, x28, lsl #3
	ldr	w1, [x19, #4]
	ldr	x2, [x26]
	ldr	w3, [x27]
	bl	_dma_unmap_page
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w1, [x0]
	add	w8, w1, #1
	str	w8, [x0]
	ldr	w2, [x19]
	ldr	w3, [x22, #16]
	mov	x0, x21
	mov	x4, x23
	bl	_skb_fill_page_desc
	ldr	w8, [x26]
	ldr	w9, [x21, #8]
	add	w8, w9, w8
	str	w8, [x21, #8]
	dup.2s	v0, w23
	ldr	d1, [x21]
	add.2s	v0, v1, v0
	str	d0, [x21]
	sub	x20, x20, x23
	sub	x24, x24, #1
	cmp	x24, #1
	b.gt	LBB0_2
; %bb.5:
	mov	x21, #0
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_7
LBB0_6:
	sub	x21, x24, #1
LBB0_7:
	mov	x0, x20
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.8:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_DP_ERR
	b	LBB0_11
LBB0_9:
	sub	x21, x24, #1
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x21
	bl	_DP_ERR
	b	LBB0_11
LBB0_10:
	sub	x21, x24, #1
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Still got %d BDs for mapping jumbo, but length became 0\n"

	.comm	_NUM_RX_BDS_MAX,8,3             ; @NUM_RX_BDS_MAX
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"Mapped all BDs of jumbo, but still have %d bytes\n"

	.no_dead_strip	_qede_rx_build_jumbo
.subsections_via_symbols
