	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e100_rx_alloc_skb
_e100_rx_alloc_skb:                     ## @e100_rx_alloc_skb
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	movq	_RFD_BUF_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	4(%r14), %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_skb_copy_to_linear_data
	movl	(%r14), %edi
	movq	16(%r15), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	_PCI_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	callq	_pci_map_single
	movq	%rax, 8(%r15)
	movl	(%r14), %edi
	movq	%rax, %rsi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	16(%r15), %rdi
	addq	$8, %r15
	callq	_dev_kfree_skb_any
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r15), %rax
	movq	8(%rax), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%rax), %rsi
	movq	8(%r15), %rdi
	callq	_put_unaligned_le32
	movl	(%r14), %edi
	movq	(%r15), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	movl	$4, %edx
	callq	_pci_dma_sync_single_for_device
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_RFD_BUF_LEN,4,2                ## @RFD_BUF_LEN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ## @PCI_DMA_BIDIRECTIONAL
	.no_dead_strip	_e100_rx_alloc_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e100_rx_alloc_skb
_e100_rx_alloc_skb:                     ; @e100_rx_alloc_skb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x21, _RFD_BUF_LEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RFD_BUF_LEN@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_netdev_alloc_skb_ip_align
	str	x0, [x19, #16]
	cbz	x0, LBB0_3
; %bb.1:
	add	x1, x20, #4
	mov	w2, #4
	bl	_skb_copy_to_linear_data
	ldr	w0, [x20]
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	ldr	w2, [x21]
Lloh2:
	adrp	x21, _PCI_DMA_BIDIRECTIONAL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PCI_DMA_BIDIRECTIONAL@GOTPAGEOFF]
	ldr	w3, [x21]
	bl	_pci_map_single
	mov	x1, x0
	mov	x22, x19
	str	x0, [x22, #8]!
	ldr	w0, [x20]
	bl	_pci_dma_mapping_error
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19, #16]
	bl	_dev_kfree_skb_any
	stp	xzr, xzr, [x22]
LBB0_3:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x1, [x8]
	ldr	x0, [x19, #8]
	bl	_put_unaligned_le32
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldr	w1, [x8]
	ldr	w3, [x21]
	mov	w2, #4
	bl	_pci_dma_sync_single_for_device
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RFD_BUF_LEN,4,2                ; @RFD_BUF_LEN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ; @PCI_DMA_BIDIRECTIONAL
	.no_dead_strip	_e100_rx_alloc_skb
.subsections_via_symbols
