	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ionic_rx_copybreak
_ionic_rx_copybreak:                    ## @ionic_rx_copybreak
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	(%rdx), %rax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r12
	movq	(%rdi), %rcx
	movq	8(%rcx), %rdx
	movq	16(%rcx), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r15
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	%rax, %rbx
	movl	4(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, %r14
	movq	(%r13), %rax
	cmpq	(%rax), %rbx
	jle	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	callq	_le64_to_cpu
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	jmp	LBB0_4
LBB0_2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, %r14
	movl	(%r12), %edi
	callq	_le64_to_cpu
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	testq	%r14, %r14
	je	LBB0_3
## %bb.5:
	movq	%rbx, %rdx
	callq	_dma_sync_single_for_cpu
	movl	(%r14), %edi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	(%r12), %rdx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ionic_rx_recycle
	movq	%r14, (%r12)
	movl	$1, %eax
	jmp	LBB0_6
LBB0_3:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_4:
	callq	_dma_unmap_single
	xorl	%eax, %eax
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_ionic_rx_copybreak
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ionic_rx_copybreak
_ionic_rx_copybreak:                    ; @ionic_rx_copybreak
	.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	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x2]
	ldr	x26, [x1]
	ldr	x9, [x0]
	ldp	x9, x25, [x9, #8]
	ldr	x22, [x9]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	w0, [x26, #4]
	bl	_le16_to_cpu
	mov	x24, x0
	ldr	x8, [x21]
	ldr	x8, [x8]
	cmp	x23, x8
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x26]
	bl	_le64_to_cpu
	mov	x1, x0
Lloh0:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	b	LBB0_4
LBB0_2:
	mov	x0, x25
	mov	x1, x23
	bl	_netdev_alloc_skb_ip_align
	mov	x25, x0
	ldr	w0, [x26]
	bl	_le64_to_cpu
	mov	x1, x0
Lloh3:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	cbz	x25, LBB0_4
; %bb.3:
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x23
	bl	_dma_sync_single_for_cpu
	ldr	w0, [x25]
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x2, x23
	bl	_memcpy
	ldr	x2, [x19]
	mov	x0, x21
	mov	x1, x20
	bl	_ionic_rx_recycle
	str	x25, [x19]
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x24
	bl	_dma_unmap_single
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_ionic_rx_copybreak
.subsections_via_symbols
