	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xdp_linearize_page
_xdp_linearize_page:                    ## @xdp_linearize_page
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%r8d, %r13d
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_page_address
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %r14
	movslq	%r13d, %r15
	leaq	(%rax,%r15), %r13
	movq	%r12, %rdi
	callq	_page_address
	movslq	-56(%rbp), %rsi                 ## 4-byte Folded Reload
	addq	%rax, %rsi
	movl	(%r14), %edx
	movq	%r13, %rdi
	callq	_memcpy
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	addl	(%r14), %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	decq	(%rax)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$4, %edi
	callq	_SKB_DATA_ALIGN
	movl	%eax, %r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	callq	_virtqueue_get_buf
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_virt_to_head_page
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_page_address
	addl	%r15d, %r12d
	addl	-44(%rbp), %r12d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	ja	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	subl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_page_address
	movslq	%r15d, %r15
	movq	%rbx, %r12
	leaq	(%rax,%r15), %rbx
	movq	%r13, %rdi
	callq	_page_address
	movslq	%r14d, %rsi
	addq	%rax, %rsi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r12, %rbx
	callq	_memcpy
	addl	-44(%rbp), %r15d
	movq	%r13, %rdi
	callq	_put_page
	jmp	LBB0_2
LBB0_9:
	movq	_VIRTIO_XDP_HEADROOM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	jmp	LBB0_10
LBB0_5:
	movq	%r13, %rdi
	callq	_put_page
LBB0_6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	___free_pages
LBB0_7:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_VIRTIO_XDP_HEADROOM,4,2        ## @VIRTIO_XDP_HEADROOM
	.no_dead_strip	_xdp_linearize_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xdp_linearize_page
_xdp_linearize_page:                    ; @xdp_linearize_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_alloc_page
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_page_address
	add	x26, x0, w23, sxtw
	mov	x0, x25
	bl	_page_address
	add	x1, x0, w24, sxtw
	ldr	w2, [x20]
	mov	x0, x26
	bl	_memcpy
	ldr	w8, [x20]
	add	w26, w8, w23
	ldr	x8, [x21]
	subs	x8, x8, #1
	str	x8, [x21]
	b.eq	LBB0_6
; %bb.2:
Lloh3:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #4
	bl	_SKB_DATA_ALIGN
	mov	x25, x0
	ldr	w0, [x22]
	add	x1, sp, #12
	bl	_virtqueue_get_buf
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_virt_to_head_page
	mov	x23, x0
	bl	_page_address
	ldr	w8, [sp, #12]
	add	w9, w25, w26
	add	w8, w9, w8
	ldr	w9, [x27]
	cmp	w8, w9
	b.hi	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w25, w24, w0
	mov	x0, x19
	bl	_page_address
	add	x24, x0, w26, sxtw
	mov	x0, x23
	bl	_page_address
	add	x1, x0, w25, sxtw
	ldr	w2, [sp, #12]
	mov	x0, x24
	bl	_memcpy
	ldr	w8, [sp, #12]
	add	w26, w8, w26
	mov	x0, x23
	bl	_put_page
	ldr	x8, [x21]
	subs	x8, x8, #1
	str	x8, [x21]
	b.ne	LBB0_3
LBB0_6:
Lloh5:
	adrp	x8, _VIRTIO_XDP_HEADROOM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VIRTIO_XDP_HEADROOM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	sub	w8, w26, w8
	str	w8, [x20]
	b	LBB0_9
LBB0_7:
	mov	x0, x23
	bl	_put_page
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	___free_pages
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_VIRTIO_XDP_HEADROOM,4,2        ; @VIRTIO_XDP_HEADROOM
	.no_dead_strip	_xdp_linearize_page
.subsections_via_symbols
