	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netsec_xdp_queue_one
_netsec_xdp_queue_one:                  ## @netsec_xdp_queue_one
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	_NETSEC_RING_TX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %r14
	movl	4(%rsi), %edi
	callq	_virt_to_page
	movl	$0, -56(%rbp)
	movq	(%rbx,%r14,8), %rdi
	movq	8(%rbx,%r14,8), %rcx
	xorl	%edx, %edx
	cmpq	%rcx, %rdi
	movq	_DESC_NUM@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmovll	%esi, %edx
	addl	%edx, %edi
	subl	%edi, %ecx
	addl	%esi, %ecx
	movq	_NETSEC_XDP_CONSUMED@GOTPCREL(%rip), %r15
	cmpl	$2, %ecx
	jl	LBB0_6
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.2:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	(%r12), %edi
	movq	%rax, %r12
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	_TYPE_NETSEC_XDP_NDO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rdx
	movq	_NETSEC_RING_RX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	%rax, %r15
	movl	16(%rdx,%rcx,8), %edi
	callq	_page_pool_get_dma_dir
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_page_pool_get_dma_addr
	movq	_NETSEC_RXBUF_HEADROOM@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	(%r12), %edi
	movq	%rax, %r12
	movl	(%r13), %edx
	movq	%rax, %rsi
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_dma_sync_single_for_device
	movq	_TYPE_NETSEC_XDP_TX@GOTPCREL(%rip), %rax
LBB0_5:
	leaq	(%rbx,%r14,8), %rsi
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	%r12, -80(%rbp)
	movl	4(%r13), %eax
	movl	%eax, -84(%rbp)
	movl	(%r13), %eax
	movl	%eax, -88(%rbp)
	leaq	-56(%rbp), %rdx
	leaq	-88(%rbp), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_netsec_set_tx_de
	movq	_NETSEC_XDP_TX@GOTPCREL(%rip), %r15
LBB0_6:
	movl	(%r15), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETSEC_RING_TX,8,3             ## @NETSEC_RING_TX
	.comm	_DESC_NUM,4,2                   ## @DESC_NUM
	.comm	_NETSEC_XDP_CONSUMED,4,2        ## @NETSEC_XDP_CONSUMED
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_TYPE_NETSEC_XDP_NDO,4,2        ## @TYPE_NETSEC_XDP_NDO
	.comm	_NETSEC_RING_RX,8,3             ## @NETSEC_RING_RX
	.comm	_NETSEC_RXBUF_HEADROOM,8,3      ## @NETSEC_RXBUF_HEADROOM
	.comm	_TYPE_NETSEC_XDP_TX,4,2         ## @TYPE_NETSEC_XDP_TX
	.comm	_NETSEC_XDP_TX,4,2              ## @NETSEC_XDP_TX
	.no_dead_strip	_netsec_xdp_queue_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netsec_xdp_queue_one
_netsec_xdp_queue_one:                  ; @netsec_xdp_queue_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _NETSEC_RING_TX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETSEC_RING_TX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x21, x9, x10, x8
	ldr	w0, [x1, #4]
	bl	_virt_to_page
	str	wzr, [sp, #24]
	ldp	x8, x9, [x21]
Lloh3:
	adrp	x10, _DESC_NUM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DESC_NUM@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w11, w10, wzr, lt
	add	w8, w8, w11
	sub	w8, w9, w8
	add	w8, w10, w8
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	cbz	w23, LBB0_4
; %bb.2:
	ldr	w0, [x20]
	ldp	w2, w1, [x19]
Lloh6:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_dma_map_single
	mov	x22, x0
	ldr	w0, [x20]
	mov	x1, x22
	bl	_dma_mapping_error
	cbz	x0, LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _NETSEC_XDP_CONSUMED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NETSEC_XDP_CONSUMED@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	x22, x0
	ldr	x8, [x20, #8]
Lloh11:
	adrp	x9, _NETSEC_RING_RX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NETSEC_RING_RX@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	w0, [x8, #16]
	bl	_page_pool_get_dma_dir
	mov	x23, x0
	mov	x0, x22
	bl	_page_pool_get_dma_addr
Lloh14:
	adrp	x8, _NETSEC_RXBUF_HEADROOM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NETSEC_RXBUF_HEADROOM@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x22, x8, x0
	ldr	w0, [x20]
	ldr	w2, [x19]
	mov	x1, x22
	mov	x3, x23
	bl	_dma_sync_single_for_device
Lloh17:
	adrp	x8, _TYPE_NETSEC_XDP_TX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TYPE_NETSEC_XDP_TX@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x8, _TYPE_NETSEC_XDP_NDO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TYPE_NETSEC_XDP_NDO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	x22, [sp, #8]
	ldr	d0, [x19]
	str	d0, [sp]
	add	x2, sp, #24
	mov	x3, sp
	mov	x0, x20
	mov	x1, x21
	mov	x4, x19
	bl	_netsec_set_tx_de
Lloh21:
	adrp	x8, _NETSEC_XDP_TX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NETSEC_XDP_TX@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NETSEC_RING_TX,8,3             ; @NETSEC_RING_TX
	.comm	_DESC_NUM,4,2                   ; @DESC_NUM
	.comm	_NETSEC_XDP_CONSUMED,4,2        ; @NETSEC_XDP_CONSUMED
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_TYPE_NETSEC_XDP_NDO,4,2        ; @TYPE_NETSEC_XDP_NDO
	.comm	_NETSEC_RING_RX,8,3             ; @NETSEC_RING_RX
	.comm	_NETSEC_RXBUF_HEADROOM,8,3      ; @NETSEC_RXBUF_HEADROOM
	.comm	_TYPE_NETSEC_XDP_TX,4,2         ; @TYPE_NETSEC_XDP_TX
	.comm	_NETSEC_XDP_TX,4,2              ; @NETSEC_XDP_TX
	.no_dead_strip	_netsec_xdp_queue_one
.subsections_via_symbols
