	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xennet_get_extras
_xennet_get_extras:                     ## @xennet_get_extras
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	decq	%rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movslq	4(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rdi
	addq	$-8, %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_memcpy
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_xennet_get_rx_skb
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_xennet_get_rx_ref
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_xennet_move_rx_slot
	movq	_XEN_NETIF_EXTRA_FLAG_MORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpq	%rbx, -64(%rbp)                 ## 8-byte Folded Reload
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_RING_GET_RESPONSE
	movq	%rax, %r15
	movl	4(%rax), %eax
	testl	%eax, %eax
	sete	%cl
	movq	_XEN_NETIF_EXTRA_TYPE_MAX@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	setge	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r15), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r13d, %r13d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_2:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_4:
	movq	_EBADR@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_11:
	movq	%rbx, (%r14)
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing extra info\n"

	.comm	_EBADR,4,2                      ## @EBADR
	.comm	_XEN_NETIF_EXTRA_TYPE_MAX,4,2   ## @XEN_NETIF_EXTRA_TYPE_MAX
L_.str.1:                               ## @.str.1
	.asciz	"Invalid extra type: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_XEN_NETIF_EXTRA_FLAG_MORE,4,2  ## @XEN_NETIF_EXTRA_FLAG_MORE
	.no_dead_strip	_xennet_get_extras
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xennet_get_extras
_xennet_get_extras:                     ; @xennet_get_extras
	.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
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x19, x0
	mov	w22, #0
	ldp	x27, x8, [x0]
	ldr	x20, [x8]
	sub	x28, x2, #1
Lloh0:
	adrp	x23, _XEN_NETIF_EXTRA_TYPE_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XEN_NETIF_EXTRA_TYPE_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x21, _XEN_NETIF_EXTRA_FLAG_MORE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _XEN_NETIF_EXTRA_FLAG_MORE@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x24, #4]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x9, x8, lsl #3
	sub	x0, x8, #8
	mov	x1, x24
	mov	w2, #8
	bl	_memcpy
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_xennet_get_rx_skb
	mov	x26, x0
	mov	x0, x19
	mov	x1, x25
	bl	_xennet_get_rx_ref
	mov	x2, x0
	mov	x0, x19
	mov	x1, x26
	bl	_xennet_move_rx_slot
	ldr	w8, [x24]
	ldr	w9, [x21]
	add	x27, x27, #1
	tst	w9, w8
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x28, x27
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x27, #1
	mov	x0, x19
	mov	x1, x25
	bl	_RING_GET_RESPONSE
	mov	x24, x0
	ldr	w8, [x0, #4]
	cmp	w8, #0
	ldr	w9, [x23]
	ccmp	w8, w9, #0, ne
	cset	w0, ge
	bl	_unlikely
	cbz	x0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_net_ratelimit
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24, #4]
	str	x8, [sp]
	mov	x0, x20
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_2
LBB0_8:
	bl	_net_ratelimit
	cbz	x0, LBB0_10
; %bb.9:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_10:
Lloh11:
	adrp	x8, _EBADR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBADR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	str	x27, [x19]
	mov	x0, x22
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing extra info\n"

	.comm	_EBADR,4,2                      ; @EBADR
	.comm	_XEN_NETIF_EXTRA_TYPE_MAX,4,2   ; @XEN_NETIF_EXTRA_TYPE_MAX
l_.str.1:                               ; @.str.1
	.asciz	"Invalid extra type: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_XEN_NETIF_EXTRA_FLAG_MORE,4,2  ; @XEN_NETIF_EXTRA_FLAG_MORE
	.no_dead_strip	_xennet_get_extras
.subsections_via_symbols
