	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fe_alloc_rx
_fe_alloc_rx:                           ## @fe_alloc_rx
	.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	%rdi, %r12
	movq	56(%rdi), %r14
	movl	8(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	8(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_6
## %bb.2:
	leaq	52(%r12), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	48(%r12), %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	callq	_page_frag_alloc
	movq	40(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	8(%r12), %rsi
	cmpq	%rsi, %rbx
	jl	LBB0_4
LBB0_6:
	shll	$3, %esi
	leaq	12(%r12), %rdx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movq	___GFP_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dma_alloc_coherent
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	_FE_FLAG_RX_2B_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	testl	%eax, (%r12)
	jne	LBB0_9
## %bb.8:
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_9:
	movl	8(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.10:
	movslq	%ecx, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_RX_DMA_LSO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, 4(%rcx,%r13,8)
	incq	%r13
	movslq	8(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rax
	movq	(%rax,%r13,8), %rsi
	addq	%r15, %rsi
	movq	_NET_SKB_PAD@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	32(%r12), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_dma_map_single
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	24(%r12), %rcx
	movl	%ebx, (%rcx,%r13,8)
	movq	_FE_FLAG_RX_SG_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	32(%r12), %edi
	callq	_RX_DMA_PLEN0
	movq	24(%r12), %rcx
	jmp	LBB0_15
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	decl	%eax
	movl	%eax, 16(%r12)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wmb
	movl	12(%r12), %edi
	movq	_FE_REG_RX_BASE_PTR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fe_reg_w32
	movl	8(%r12), %edi
	movq	_FE_REG_RX_MAX_CNT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fe_reg_w32
	movl	16(%r12), %edi
	movq	_FE_REG_RX_CALC_IDX0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fe_reg_w32
	movq	_FE_PST_DRX_IDX0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FE_REG_PDMA_RST_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fe_reg_w32
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_FE_FLAG_RX_2B_OFFSET,4,2       ## @FE_FLAG_RX_2B_OFFSET
	.comm	_NET_IP_ALIGN,4,2               ## @NET_IP_ALIGN
	.comm	_NET_SKB_PAD,8,3                ## @NET_SKB_PAD
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_FE_FLAG_RX_SG_DMA,4,2          ## @FE_FLAG_RX_SG_DMA
	.comm	_RX_DMA_LSO,4,2                 ## @RX_DMA_LSO
	.comm	_FE_REG_RX_BASE_PTR0,4,2        ## @FE_REG_RX_BASE_PTR0
	.comm	_FE_REG_RX_MAX_CNT0,4,2         ## @FE_REG_RX_MAX_CNT0
	.comm	_FE_REG_RX_CALC_IDX0,4,2        ## @FE_REG_RX_CALC_IDX0
	.comm	_FE_PST_DRX_IDX0,4,2            ## @FE_PST_DRX_IDX0
	.comm	_FE_REG_PDMA_RST_CFG,4,2        ## @FE_REG_PDMA_RST_CFG
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_fe_alloc_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fe_alloc_rx
_fe_alloc_rx:                           ; @fe_alloc_rx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #56]
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_13
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x23, #0
	add	x21, x19, #52
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #48]
	ldr	w2, [x22]
	mov	x0, x21
	bl	_page_frag_alloc
	ldr	x8, [x19, #40]
	str	x0, [x8, x23, lsl #3]
	cbz	x0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #8]
	cmp	x23, x8
	b.lt	LBB0_3
LBB0_5:
	lsl	w1, w8, #3
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
	add	x2, x19, #12
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x20
	bl	_dma_alloc_coherent
	str	x0, [x19, #24]
	cbz	x0, LBB0_13
; %bb.6:
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _FE_FLAG_RX_2B_OFFSET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FE_FLAG_RX_2B_OFFSET@GOTPAGEOFF]
Lloh10:
	adrp	x10, _NET_IP_ALIGN@GOTPAGE
Lloh11:
	ldr	x10, [x10, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, w10, wzr, eq
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.7:
	mov	x22, #0
	mov	x23, #0
	sxtw	x24, w9
Lloh14:
	adrp	x25, _NET_SKB_PAD@GOTPAGE
Lloh15:
	ldr	x25, [x25, _NET_SKB_PAD@GOTPAGEOFF]
Lloh16:
	adrp	x26, _DMA_FROM_DEVICE@GOTPAGE
Lloh17:
	ldr	x26, [x26, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh18:
	adrp	x27, _FE_FLAG_RX_SG_DMA@GOTPAGE
Lloh19:
	ldr	x27, [x27, _FE_FLAG_RX_SG_DMA@GOTPAGEOFF]
Lloh20:
	adrp	x28, _RX_DMA_LSO@GOTPAGE
Lloh21:
	ldr	x28, [x28, _RX_DMA_LSO@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x28]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x8, x22
	str	w0, [x8, #4]
	add	x23, x23, #1
	ldrsw	x8, [x19, #8]
	add	x22, x22, #8
	cmp	x23, x8
	b.ge	LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x22]
	ldr	x9, [x25]
	add	x8, x8, x24
	add	x1, x8, x9
	ldr	w2, [x19, #32]
	ldr	w3, [x26]
	mov	x0, x20
	bl	_dma_map_single
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #24]
	str	w21, [x8, x22]
	ldr	w9, [x19]
	ldr	w10, [x27]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x19, #32]
	bl	_RX_DMA_PLEN0
	ldr	x8, [x19, #24]
	b	LBB0_9
LBB0_13:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	sub	w8, w8, #1
	str	w8, [x19, #16]
	bl	_wmb
	ldr	w0, [x19, #12]
Lloh25:
	adrp	x8, _FE_REG_RX_BASE_PTR0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FE_REG_RX_BASE_PTR0@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_fe_reg_w32
	ldr	w0, [x19, #8]
Lloh28:
	adrp	x8, _FE_REG_RX_MAX_CNT0@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FE_REG_RX_MAX_CNT0@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_fe_reg_w32
	ldr	w0, [x19, #16]
Lloh31:
	adrp	x8, _FE_REG_RX_CALC_IDX0@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FE_REG_RX_CALC_IDX0@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_fe_reg_w32
Lloh34:
	adrp	x8, _FE_PST_DRX_IDX0@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FE_PST_DRX_IDX0@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x8, _FE_REG_PDMA_RST_CFG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FE_REG_PDMA_RST_CFG@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_fe_reg_w32
	mov	w0, #0
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_FE_FLAG_RX_2B_OFFSET,4,2       ; @FE_FLAG_RX_2B_OFFSET
	.comm	_NET_IP_ALIGN,4,2               ; @NET_IP_ALIGN
	.comm	_NET_SKB_PAD,8,3                ; @NET_SKB_PAD
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_FE_FLAG_RX_SG_DMA,4,2          ; @FE_FLAG_RX_SG_DMA
	.comm	_RX_DMA_LSO,4,2                 ; @RX_DMA_LSO
	.comm	_FE_REG_RX_BASE_PTR0,4,2        ; @FE_REG_RX_BASE_PTR0
	.comm	_FE_REG_RX_MAX_CNT0,4,2         ; @FE_REG_RX_MAX_CNT0
	.comm	_FE_REG_RX_CALC_IDX0,4,2        ; @FE_REG_RX_CALC_IDX0
	.comm	_FE_PST_DRX_IDX0,4,2            ; @FE_PST_DRX_IDX0
	.comm	_FE_REG_PDMA_RST_CFG,4,2        ; @FE_REG_PDMA_RST_CFG
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_fe_alloc_rx
.subsections_via_symbols
