	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netsec_alloc_rx_data
_netsec_alloc_rx_data:                  ## @netsec_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movq	_NETSEC_RING_RX@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	(%r13,%r14,4), %edi
	callq	_page_pool_dev_alloc_pages
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_page_pool_get_dma_addr
	movq	_NETSEC_RXBUF_HEADROOM@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, (%r15)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NETSEC_RX_BUF_NON_DATA@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, (%r15)
	movl	(%r13,%r14,4), %edi
	callq	_page_pool_get_dma_dir
	movl	(%r12), %edi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rsi
	movq	(%r15), %rdx
	movl	%eax, %ecx
	callq	_dma_sync_single_for_device
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_page_address                   ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETSEC_RING_RX,8,3             ## @NETSEC_RING_RX
	.comm	_NETSEC_RXBUF_HEADROOM,8,3      ## @NETSEC_RXBUF_HEADROOM
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_NETSEC_RX_BUF_NON_DATA,8,3     ## @NETSEC_RX_BUF_NON_DATA
	.no_dead_strip	_netsec_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 netsec_alloc_rx_data
_netsec_alloc_rx_data:                  ; @netsec_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	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x8, _NETSEC_RING_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETSEC_RING_RX@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	ldr	w0, [x23, x24, lsl #2]
	bl	_page_pool_dev_alloc_pages
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	bl	_page_pool_get_dma_addr
Lloh3:
	adrp	x8, _NETSEC_RXBUF_HEADROOM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETSEC_RXBUF_HEADROOM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, x0
	str	x8, [x20]
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x9, _NETSEC_RX_BUF_NON_DATA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NETSEC_RX_BUF_NON_DATA@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	ldr	x9, [x9]
	sub	x8, x8, x9
	str	x8, [x19]
	ldr	w0, [x23, x24, lsl #2]
	bl	_page_pool_get_dma_dir
	mov	x3, x0
	ldr	w0, [x22]
	ldr	x1, [x20]
	ldr	x2, [x19]
	bl	_dma_sync_single_for_device
	mov	x0, x21
	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
	b	_page_address
LBB0_2:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NETSEC_RING_RX,8,3             ; @NETSEC_RING_RX
	.comm	_NETSEC_RXBUF_HEADROOM,8,3      ; @NETSEC_RXBUF_HEADROOM
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_NETSEC_RX_BUF_NON_DATA,8,3     ; @NETSEC_RX_BUF_NON_DATA
	.no_dead_strip	_netsec_alloc_rx_data
.subsections_via_symbols
