	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function xenvif_count_requests
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_xenvif_count_requests:                 ## @xenvif_count_requests
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_XEN_NETTXF_more_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	testl	%eax, (%rsi)
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r14
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	leaq	8(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testl	%r8d, %r8d
	movl	$0, %eax
	movl	%r8d, -72(%rbp)                 ## 4-byte Spill
	cmovgl	%r8d, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	-128(%rbp), %r12
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -128(%rbp)
	movq	$0, -112(%rbp)
	cmpq	%r15, -96(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_fatal_skb_slots@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	%rax, %r15
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_XEN_NETBK_LEGACY_SLOTS_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	xorl	%r13d, %r13d
	cmpq	%rax, %r15
	jl	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_XEN_NETBK_LEGACY_SLOTS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	callq	_netdev_dbg
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	movq	_E2BIG@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r13d, %r13d
	movq	%r12, %rdx
	cmoveq	%r14, %rdx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	callq	_RING_COPY_REQUEST
	movl	%r13d, %edx
	testl	%r13d, %r13d
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rax
	xorl	%edx, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	8(%rcx), %rax
	jle	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	8(%r14), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	callq	_netdev_dbg
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %edx
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	testl	%r13d, %r13d
	movq	%r12, %rbx
	cmoveq	%r14, %rbx
	movq	8(%rbx), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	subq	%rax, 8(%rcx)
	movslq	16(%rbx), %rax
	addq	8(%rbx), %rax
	xorl	%edi, %edi
	movq	_XEN_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	testl	%r13d, %r13d
	cmovneq	%r12, %r14
	movq	_XEN_NETTXF_more_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	xorl	%ecx, %ecx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	sete	%cl
	leaq	(%rcx,%rcx,2), %rcx
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %r14
	movl	%esi, %r13d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.21:
	testl	%esi, %esi
	je	LBB0_22
## %bb.23:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	%r15, %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_xenvif_tx_err
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_24
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_4:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_ENODATA@GOTPCREL(%rip), %rbx
	jmp	LBB0_19
LBB0_6:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_fatal_skb_slots@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_E2BIG@GOTPCREL(%rip), %rbx
	jmp	LBB0_19
LBB0_18:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	movq	8(%rbx), %rcx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rbx
LBB0_19:
	movq	(%r14), %rdi
	callq	_xenvif_fatal_tx_err
	xorl	%eax, %eax
	subl	(%rbx), %eax
LBB0_24:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movl	%r15d, %eax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_XEN_NETTXF_more_data,4,2       ## @XEN_NETTXF_more_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Asked for %d slots but exceeds this limit\n"

	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_fatal_skb_slots,4,2            ## @fatal_skb_slots
L_.str.1:                               ## @.str.1
	.asciz	"Malicious frontend using %d slots, threshold %u\n"

	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_XEN_NETBK_LEGACY_SLOTS_MAX,4,2 ## @XEN_NETBK_LEGACY_SLOTS_MAX
L_.str.2:                               ## @.str.2
	.asciz	"Too many slots (%d) exceeding limit (%d), dropping packet\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid tx request, slot size %u > remaining size %u\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_XEN_PAGE_SIZE,8,3              ## @XEN_PAGE_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"Cross page boundary, txp->offset: %u, size: %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_xenvif_count_requests
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenvif_count_requests
_xenvif_count_requests:                 ; @xenvif_count_requests
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _XEN_NETTXF_more_data@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XEN_NETTXF_more_data@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.1:
	mov	x24, x3
	mov	x23, x1
	stp	w2, w4, [sp, #16]               ; 8-byte Folded Spill
	mov	x20, #0
	mov	w26, #0
	mov	x25, x0
	ldr	x8, [x25, #8]!
	stp	x0, x8, [sp, #24]               ; 16-byte Folded Spill
	cmp	w4, #0
	csel	w21, w4, wzr, gt
	add	x19, sp, #40
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stp	xzr, xzr, [sp, #40]
	str	xzr, [sp, #56]
	cmp	x21, x20
	b.eq	LBB0_21
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh3:
	adrp	x8, _fatal_skb_slots@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fatal_skb_slots@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	cmp	x20, x8
	cset	w0, ge
	bl	_unlikely
	cbnz	x0, LBB0_22
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w26, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh6:
	adrp	x8, _XEN_NETBK_LEGACY_SLOTS_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XEN_NETBK_LEGACY_SLOTS_MAX@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	cmp	x20, x8
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #0
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_net_ratelimit
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _XEN_NETBK_LEGACY_SLOTS_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XEN_NETBK_LEGACY_SLOTS_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_netdev_dbg
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh14:
	adrp	x8, _E2BIG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w26, #0
	csel	x28, x24, x19, eq
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x1, x8, x20
	mov	x0, x25
	mov	x2, x28
	bl	_RING_COPY_REQUEST
	mov	x27, x26
	cbnz	w26, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24, #8]
	ldr	x9, [x23, #8]
	cmp	x8, x9
	b.le	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_net_ratelimit
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w2, [x24, #8]
	ldr	w3, [x23, #8]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_dbg
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w27, #0
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w26, #0
	csel	x22, x24, x19, eq
	ldr	x8, [x22, #8]
	ldr	x9, [x23, #8]
	sub	x8, x9, x8
	str	x8, [x23, #8]
	ldrsw	x8, [x22, #16]
	ldr	x9, [x22, #8]
Lloh22:
	adrp	x10, _XEN_PAGE_SIZE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _XEN_PAGE_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	add	x8, x9, x8
	cmp	x8, x10
	cset	w0, gt
	bl	_unlikely
	cbnz	x0, LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	cmp	w26, #0
	csel	x8, x24, x19, eq
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _XEN_NETTXF_more_data@GOTPAGE
Lloh26:
	ldr	x9, [x9, _XEN_NETTXF_more_data@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w27, #0
	cset	w10, eq
	mov	w11, #24
	umaddl	x24, w10, w11, x28
	mov	x26, x27
	and	w8, w9, w8
	cbnz	w8, LBB0_2
; %bb.18:
	cbz	w27, LBB0_26
; %bb.19:
	ldp	x0, x8, [sp, #24]               ; 16-byte Folded Reload
	add	x3, x8, x20
	mov	x1, x23
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_xenvif_tx_err
	b	LBB0_25
LBB0_20:
	mov	w27, #0
	b	LBB0_25
LBB0_21:
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	bl	_netdev_err
Lloh30:
	adrp	x19, _ENODATA@GOTPAGE
Lloh31:
	ldr	x19, [x19, _ENODATA@GOTPAGEOFF]
	b	LBB0_24
LBB0_22:
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _fatal_skb_slots@GOTPAGE
Lloh33:
	ldr	x8, [x8, _fatal_skb_slots@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_netdev_err
Lloh37:
	adrp	x19, _E2BIG@GOTPAGE
Lloh38:
	ldr	x19, [x19, _E2BIG@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldr	w2, [x22, #16]
	ldr	x8, [x22, #8]
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_netdev_err
Lloh41:
	adrp	x19, _EINVAL@GOTPAGE
Lloh42:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
LBB0_24:
	ldr	x0, [x21]
	bl	_xenvif_fatal_tx_err
	ldr	w8, [x19]
	neg	w27, w8
LBB0_25:
	mov	x0, x27
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_26:
	mov	x27, x20
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_XEN_NETTXF_more_data,4,2       ; @XEN_NETTXF_more_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Asked for %d slots but exceeds this limit\n"

	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_fatal_skb_slots,4,2            ; @fatal_skb_slots
l_.str.1:                               ; @.str.1
	.asciz	"Malicious frontend using %d slots, threshold %u\n"

	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_XEN_NETBK_LEGACY_SLOTS_MAX,4,2 ; @XEN_NETBK_LEGACY_SLOTS_MAX
l_.str.2:                               ; @.str.2
	.asciz	"Too many slots (%d) exceeding limit (%d), dropping packet\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid tx request, slot size %u > remaining size %u\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_XEN_PAGE_SIZE,8,3              ; @XEN_PAGE_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"Cross page boundary, txp->offset: %u, size: %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_xenvif_count_requests
.subsections_via_symbols
