	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_setup_rx_resources
_jme_setup_rx_resources:                ## @jme_setup_rx_resources
	.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	16(%rdi), %r14
	movq	8(%rdi), %rbx
	movl	(%rdi), %edi
	callq	_RX_RING_ALLOC_SIZE
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_dma_alloc_coherent
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_RING_DESC_ALIGN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_ALIGN
	movq	%rax, 24(%r14)
	movq	(%r14), %rdi
	movl	(%rbx), %esi
	callq	_ALIGN
	movq	%rax, 16(%r14)
	movq	$0, 48(%r14)
	leaq	40(%r14), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_atomic_set
	movl	(%r12), %edi
	shll	$2, %edi
	movl	(%r13), %esi
	callq	_kmalloc
	movq	%rax, 8(%r14)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	movq	8(%r12), %rbx
	movl	(%r12), %edi
	callq	_RX_RING_ALLOC_SIZE
	movq	(%r14), %rcx
	movq	32(%r14), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dma_free_coherent
LBB0_9:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movups	%xmm0, (%r14)
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	8(%r14), %rdi
	movl	(%r12), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	cmpl	$0, (%r12)
	jle	LBB0_11
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_jme_make_new_rx_buf
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_jme_set_clean_rxdesc
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_4
## %bb.7:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_5:
	movq	%r12, %rdi
	callq	_jme_free_rx_resources
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_RING_DESC_ALIGN,4,2            ## @RING_DESC_ALIGN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_jme_setup_rx_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_setup_rx_resources
_jme_setup_rx_resources:                ; @jme_setup_rx_resources
	.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, x0
	ldp	x21, x20, [x0, #8]
	ldr	w0, [x0]
	bl	_RX_RING_ALLOC_SIZE
	mov	x1, x0
Lloh0:
	adrp	x22, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x21
	mov	x2, x20
	bl	_dma_alloc_coherent
	str	x0, [x20, #32]
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x21, _RING_DESC_ALIGN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _RING_DESC_ALIGN@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ALIGN
	str	x0, [x20, #24]
	ldr	x0, [x20]
	ldr	w1, [x21]
	bl	_ALIGN
	str	x0, [x20, #16]
	str	xzr, [x20, #48]
	add	x0, x20, #40
	mov	w1, #0
	bl	_atomic_set
	ldr	w8, [x19]
	lsl	w0, w8, #2
	ldr	w1, [x22]
	bl	_kmalloc
	str	x0, [x20, #8]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x21, [x19, #8]
	ldr	w0, [x19]
	bl	_RX_RING_ALLOC_SIZE
	mov	x1, x0
	ldr	x2, [x20, #32]
	ldr	x3, [x20]
	mov	x0, x21
	bl	_dma_free_coherent
LBB0_3:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x20]
LBB0_4:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
LBB0_6:
	ldr	x0, [x20, #8]
	ldr	w8, [x19]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	w20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_jme_make_new_rx_buf
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_jme_set_clean_rxdesc
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_8
LBB0_10:
	mov	w0, #0
	b	LBB0_5
LBB0_11:
	mov	x0, x19
	bl	_jme_free_rx_resources
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_RING_DESC_ALIGN,4,2            ; @RING_DESC_ALIGN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_jme_setup_rx_resources
.subsections_via_symbols
