	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_rx_init_ring_element
_lan743x_rx_init_ring_element:          ## @lan743x_rx_init_ring_element
	.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	%rdi, %rbx
	movq	_LAN743X_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rdi
	movq	_RX_HEAD_PADDING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rdi), %eax
	movq	8(%rbx), %r13
	movq	16(%rbx), %rdi
	movslq	%esi, %r15
	leaq	(%r15,%r15,2), %r12
	movq	%rdx, 8(%r13,%r12,8)
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%rax), %r14d
	addl	$4, %r14d
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%rdx), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edx
	callq	_dma_map_single
	leaq	16(,%r12,8), %rcx
	addq	%r13, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 16(%r13,%r12,8)
	movq	(%rbx), %rcx
	movq	(%rcx), %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	leaq	8(,%r12,8), %r12
	addq	%r13, %r12
	shlq	$3, %r15
	leaq	(%r15,%r15,2), %rbx
	movl	%r14d, (%r13,%rbx)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rdi
	callq	_DMA_ADDR_LOW32
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, 20(%r15,%rbx)
	movq	(%r13), %rdi
	callq	_DMA_ADDR_HIGH32
	movl	%eax, 16(%r15,%rbx)
	movq	$0, 8(%r15,%rbx)
	movq	_RX_DESC_DATA0_OWN_@GOTPCREL(%rip), %rax
	movq	_RX_DESC_DATA0_BUF_LENGTH_MASK_@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r14d
	orl	(%rax), %r14d
	movl	%r14d, (%r15,%rbx)
	movq	(%r12), %rdi
	movq	_RX_HEAD_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_skb_reserve
	xorl	%eax, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LAN743X_MAX_FRAME_SIZE,4,2     ## @LAN743X_MAX_FRAME_SIZE
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_RX_HEAD_PADDING,4,2            ## @RX_HEAD_PADDING
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_RX_DESC_DATA0_OWN_,4,2         ## @RX_DESC_DATA0_OWN_
	.comm	_RX_DESC_DATA0_BUF_LENGTH_MASK_,4,2 ## @RX_DESC_DATA0_BUF_LENGTH_MASK_
	.no_dead_strip	_lan743x_rx_init_ring_element
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_rx_init_ring_element
_lan743x_rx_init_ring_element:          ; @lan743x_rx_init_ring_element
	.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
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, _LAN743X_MAX_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LAN743X_MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x21, _RX_HEAD_PADDING@GOTPAGE
Lloh7:
	ldr	x21, [x21, _RX_HEAD_PADDING@GOTPAGEOFF]
	ldr	w10, [x21]
	ldp	x24, x23, [x0, #8]
	mov	w11, #24
	smaddl	x22, w1, w11, x24
	str	x2, [x22, #8]!
	cbz	x2, LBB0_3
; %bb.1:
	mov	x20, x0
	add	w8, w8, w9
	add	w8, w8, w10
	add	w19, w8, #4
	sxtw	x25, w1
	ldr	x8, [x0]
	ldr	x0, [x8]
	ldr	w1, [x2]
Lloh8:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x2, x19
	bl	_dma_map_single
	mov	x1, x0
	mov	w8, #24
	madd	x26, x25, x8, x24
	str	x0, [x26, #16]!
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_dma_mapping_error
	cbz	x0, LBB0_4
; %bb.2:
	str	xzr, [x26]
LBB0_3:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	add	x8, x25, x25, lsl #1
	lsl	x20, x8, #3
	str	w19, [x24, x20]
	ldr	x0, [x26]
	bl	_DMA_ADDR_LOW32
	add	x20, x23, x20
	str	w0, [x20, #20]
	ldr	x0, [x26]
	bl	_DMA_ADDR_HIGH32
	str	w0, [x20, #16]
	str	xzr, [x20, #8]
Lloh14:
	adrp	x8, _RX_DESC_DATA0_OWN_@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RX_DESC_DATA0_OWN_@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _RX_DESC_DATA0_BUF_LENGTH_MASK_@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RX_DESC_DATA0_BUF_LENGTH_MASK_@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	and	w9, w9, w19
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	x0, [x22]
	ldr	w1, [x21]
	bl	_skb_reserve
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_LAN743X_MAX_FRAME_SIZE,4,2     ; @LAN743X_MAX_FRAME_SIZE
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_RX_HEAD_PADDING,4,2            ; @RX_HEAD_PADDING
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_RX_DESC_DATA0_OWN_,4,2         ; @RX_DESC_DATA0_OWN_
	.comm	_RX_DESC_DATA0_BUF_LENGTH_MASK_,4,2 ; @RX_DESC_DATA0_BUF_LENGTH_MASK_
	.no_dead_strip	_lan743x_rx_init_ring_element
.subsections_via_symbols
