	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenvif_handle_frag_list
_xenvif_handle_frag_list:               ## @xenvif_handle_frag_list
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_skb_headlen
	movl	%eax, %r13d
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	16(%rax), %rbx
	addl	$2, 4(%r12)
	incl	8(%r12)
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_xenvif_fill_frags
	movl	4(%r14), %eax
	movl	8(%r14), %ecx
	subl	%eax, (%r14)
	addl	8(%rbx), %ecx
	movl	%ecx, 8(%r14)
	addl	8(%rbx), %eax
	movl	%eax, 4(%r14)
	xorl	%r12d, %r12d
	cmpl	%ecx, %r13d
	jae	LBB0_7
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	xorl	%r12d, %r12d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%r14d, %r13d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	___skb_frag_set_page
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_skb_frag_off_set
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_skb_frag_size_set
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	incq	%r12
	addq	$4, %rbx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	cmpl	8(%r14), %r13d
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	%rax, %r12
	setge	%dil
	callq	_BUG_ON
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%r13), %ecx
	movl	8(%r14), %edx
	movq	%r14, %r12
	movl	%edx, %r14d
	subl	%r13d, %r14d
	cmpl	%edx, %ecx
	cmovbl	%eax, %r14d
	movq	%r15, %rdi
	callq	_page_address
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_skb_copy_bits
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_15
LBB0_3:
	movl	4(%r14), %eax
	addl	%eax, (%r14)
	testq	%r12, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_skb_frag_page
	movl	%eax, %edi
	callq	_put_page
	addq	$4, %rbx
	decq	%r12
	jne	LBB0_4
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_6:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_7:
	movq	%r14, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_skb_frag_unref
	incl	%ebx
	movq	%r14, %rdi
	callq	_skb_shinfo
	cmpl	(%rax), %ebx
	jl	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rbx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_inc
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*(%rbx)
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	$0, 8(%rax)
	movq	%r14, %rdi
	callq	_skb_shinfo
	movl	4(%rax), %edi
	leal	(,%r12,4), %edx
	movq	%r15, %rsi
	callq	_memcpy
	movq	%r14, %rdi
	callq	_skb_shinfo
	movl	%r12d, (%rax)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	addl	%r12d, (%r14)
	xorl	%eax, %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_xenvif_handle_frag_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function xenvif_handle_frag_list
lCPI0_0:
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_xenvif_handle_frag_list:               ; @xenvif_handle_frag_list
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	x0, x1
	bl	_skb_headlen
	mov	x22, x0
Lloh3:
	adrp	x28, _MAX_SKB_FRAGS@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MAX_SKB_FRAGS@GOTPAGEOFF]
	ldr	w8, [x28]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x23, [x0, #16]
	ldur	d0, [x21, #4]
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	stur	d0, [x21, #4]
	mov	x0, x21
	mov	x1, x23
	bl	_xenvif_fill_frags
	ldp	w9, w8, [x19]
	sub	w9, w9, w8
	ldr	w10, [x23, #8]
	ldr	w11, [x19, #8]
	add	w10, w11, w10
	cmp	w22, w10
	str	w10, [x19, #8]
	ldr	w10, [x23, #8]
	add	w8, w10, w8
	stp	w9, w8, [x19]
Lloh9:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
	b.hs	LBB0_6
; %bb.1:
	stur	x21, [x29, #-96]                ; 8-byte Folded Spill
	mov	x26, #0
Lloh11:
	adrp	x21, _GFP_ATOMIC@GOTPAGE
Lloh12:
	ldr	x21, [x21, _GFP_ATOMIC@GOTPAGEOFF]
	mov	x23, x20
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w24, w22
	mov	x0, x23
	mov	x1, x25
	bl	___skb_frag_set_page
	mov	x0, x23
	mov	w1, #0
	bl	_skb_frag_off_set
	mov	x0, x23
	mov	x1, x24
	bl	_skb_frag_size_set
	add	x26, x26, #1
	ldr	w8, [x19, #8]
	add	x23, x23, #4
	cmp	w22, w8
	b.hs	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x28]
	cmp	x26, x8
	cset	w0, ge
	bl	_BUG_ON
	ldr	w0, [x21]
	bl	_alloc_page
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	ldr	w8, [x27]
	ldr	w9, [x19, #8]
	sub	w10, w9, w22
	add	w11, w8, w22
	cmp	w11, w9
	csel	w24, w8, w10, lo
	bl	_page_address
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	mov	x3, x24
	bl	_skb_copy_bits
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_BUG
	b	LBB0_2
LBB0_6:
	mov	w26, #0
	b	LBB0_11
LBB0_7:
	ldp	w9, w8, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	cbz	x26, LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_frag_page
	bl	_put_page
	add	x20, x20, #4
	subs	x26, x26, #1
	b.ne	LBB0_8
LBB0_9:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_10:
	ldur	x21, [x29, #-96]                ; 8-byte Folded Reload
LBB0_11:
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	w22, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_skb_frag_unref
	add	w22, w22, #1
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w22, w8
	b.lt	LBB0_13
LBB0_14:
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x22, [x0, #8]
	mov	x0, x21
	bl	_atomic_inc
	ldr	x8, [x22]
	mov	x0, x22
	mov	w1, #1
	blr	x8
	mov	x0, x19
	bl	_skb_shinfo
	str	xzr, [x0, #8]
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w0, [x0, #4]
	lsl	w2, w26, #2
	mov	x1, x20
	bl	_memcpy
	mov	x0, x19
	bl	_skb_shinfo
	mov	x8, x0
	mov	w0, #0
	str	w26, [x8]
	ldr	w8, [x27]
	ldr	w9, [x19]
	madd	w8, w8, w26, w9
	str	w8, [x19]
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	sub	sp, x29, #80
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_xenvif_handle_frag_list
.subsections_via_symbols
