	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8169_alloc_rx_data
_rtl8169_alloc_rx_data:                 ## @rtl8169_alloc_rx_data
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	callq	_tp_to_dev
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_dev_to_node
	movl	%eax, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_R8169_RX_BUF_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_get_order
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_alloc_pages_node
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	movq	%r13, %rbx
	movl	(%r13), %ecx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_dma_map_page
	movl	%eax, %r13d
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_err
LBB0_4:
	movl	(%rbx), %edi
	callq	_get_order
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	___free_pages
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_6:
	movl	%r13d, %edi
	callq	_cpu_to_le64
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%rdi)
	callq	_rtl8169_mark_to_asic
LBB0_7:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_R8169_RX_BUF_SIZE,4,2          ## @R8169_RX_BUF_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to map RX DMA!\n"

	.no_dead_strip	_rtl8169_alloc_rx_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8169_alloc_rx_data
_rtl8169_alloc_rx_data:                 ; @rtl8169_alloc_rx_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_tp_to_dev
	mov	x22, x0
	bl	_dev_to_node
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x24, _R8169_RX_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _R8169_RX_BUF_SIZE@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_get_order
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_alloc_pages_node
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w3, [x24]
Lloh5:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x19
	mov	w2, #0
	bl	_dma_map_page
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.2:
	bl	_net_ratelimit
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _drv@GOTPAGE
Lloh9:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netif_err
LBB0_4:
	ldr	w0, [x24]
	bl	_get_order
	mov	x1, x0
	mov	x0, x19
	bl	___free_pages
	mov	x19, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x23
	bl	_cpu_to_le64
	str	w0, [x21]
	mov	x0, x21
	bl	_rtl8169_mark_to_asic
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_R8169_RX_BUF_SIZE,4,2          ; @R8169_RX_BUF_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to map RX DMA!\n"

	.no_dead_strip	_rtl8169_alloc_rx_data
.subsections_via_symbols
