	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rx_alloc_skb
_rx_alloc_skb:                          ## @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, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	callq	_netdev_alloc_skb_ip_align
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_dma_map_single
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_1:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_4:
	movl	%ebx, (%r14)
LBB0_5:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate Rx SKB\n"

	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to map Rx DMA, err = %d\n"

	.no_dead_strip	_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 rx_alloc_skb
_rx_alloc_skb:                          ; @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	x22, x0
	ldr	w0, [x0, #8]
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x21, [x8]
	ldr	w0, [x22, #8]
	ldr	x8, [x22]
	ldr	w1, [x8]
	bl	_netdev_alloc_skb_ip_align
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x20]
	ldr	x8, [x22]
	ldr	w2, [x8]
Lloh0:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_dma_map_single
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_dma_mapping_error
	cbz	w0, LBB0_4
; %bb.2:
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	mov	x0, x20
	bl	_dev_kfree_skb_any
	mov	x20, #0
	b	LBB0_5
LBB0_3:
	ldr	w0, [x22, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_5
LBB0_4:
	str	w22, [x19]
LBB0_5:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate Rx SKB\n"

	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to map Rx DMA, err = %d\n"

	.no_dead_strip	_rx_alloc_skb
.subsections_via_symbols
