	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xennet_get_responses
_xennet_get_responses:                  ## @xennet_get_responses
	.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
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_xennet_get_rx_skb
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_xennet_get_rx_ref
	movq	%rax, %r14
	movq	_XEN_NETIF_NR_SLOTS_MIN@GOTPCREL(%rip), %rax
	movq	8(%r12), %rcx
	movq	_RX_COPY_THRESHOLD@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	setle	%sil
	addl	(%rax), %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	_XEN_NETRXF_extra_info@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testl	%eax, 16(%r12)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_xennet_get_extras
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rbx
LBB0_2:
	addq	$8, %r12
	leaq	8(%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	subq	%r13, %rbx
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	16(%r12), %rax
	movq	_XEN_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setg	%al
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	$1, %al
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rcx
	movq	16(%r12), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_xennet_move_rx_slot
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_XEN_NETRXF_more_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, %rax
	je	LBB0_18
## %bb.28:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_RING_GET_RESPONSE
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_xennet_get_rx_skb
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_xennet_get_rx_ref
	movq	%rax, %r14
	incq	%r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_GRANT_INVALID_REF@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%r12), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gnttab_end_foreign_access_ref
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_gnttab_release_grant_reference
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	___skb_queue_tail
	jmp	LBB0_15
LBB0_16:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_21
LBB0_18:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_20:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_21:
	xorl	%edi, %edi
	cmpl	%r13d, %eax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_25
## %bb.22:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_24:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movl	%r13d, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	movq	%rcx, (%r15)
LBB0_27:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XEN_NETIF_NR_SLOTS_MIN,4,2     ## @XEN_NETIF_NR_SLOTS_MIN
	.comm	_RX_COPY_THRESHOLD,8,3          ## @RX_COPY_THRESHOLD
	.comm	_XEN_NETRXF_extra_info,4,2      ## @XEN_NETRXF_extra_info
	.comm	_XEN_PAGE_SIZE,8,3              ## @XEN_PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx->offset: %u, size: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GRANT_INVALID_REF,8,3          ## @GRANT_INVALID_REF
L_.str.1:                               ## @.str.1
	.asciz	"Bad rx response id %d.\n"

	.comm	_XEN_NETRXF_more_data,4,2       ## @XEN_NETRXF_more_data
L_.str.2:                               ## @.str.2
	.asciz	"Need more slots\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.3:                               ## @.str.3
	.asciz	"Too many slots\n"

	.comm	_E2BIG,4,2                      ## @E2BIG
	.no_dead_strip	_xennet_get_responses
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xennet_get_responses
_xennet_get_responses:                  ; @xennet_get_responses
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x27, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x24, [x1]
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	stp	x3, x8, [sp, #32]               ; 16-byte Folded Spill
	ldr	x20, [x0]
	mov	x1, x20
	bl	_xennet_get_rx_skb
	mov	x28, x0
	mov	x0, x19
	mov	x1, x20
	bl	_xennet_get_rx_ref
	mov	x26, x0
	ldr	x8, [x23, #8]!
Lloh0:
	adrp	x9, _XEN_NETIF_NR_SLOTS_MIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XEN_NETIF_NR_SLOTS_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _RX_COPY_THRESHOLD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RX_COPY_THRESHOLD@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x10
	cinc	w10, w9, le
	ldr	w8, [x23, #8]
Lloh6:
	adrp	x9, _XEN_NETRXF_extra_info@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XEN_NETRXF_extra_info@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	str	w10, [sp, #20]                  ; 4-byte Folded Spill
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x27
	bl	_xennet_get_extras
	mov	x24, x0
	ldr	x20, [x19]
	b	LBB0_3
LBB0_2:
	mov	w24, #0
LBB0_3:
	add	x8, x19, #8
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	sub	x27, x20, x27
	mov	w22, #1
Lloh9:
	adrp	x25, _EINVAL@GOTPAGE
Lloh10:
	ldr	x25, [x25, _EINVAL@GOTPAGEOFF]
Lloh11:
	adrp	x21, _XEN_NETRXF_more_data@GOTPAGE
Lloh12:
	ldr	x21, [x21, _XEN_NETRXF_more_data@GOTPAGEOFF]
	ldr	x8, [x23]
	tbnz	x8, #63, LBB0_12
LBB0_4:
	ldr	x9, [x23, #16]
Lloh13:
	adrp	x10, _XEN_PAGE_SIZE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _XEN_PAGE_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	add	x8, x9, x8
	cmp	x8, x10
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_13
LBB0_5:
	bl	_net_ratelimit
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x23, #16]
	ldr	x9, [x23]
	stp	x8, x9, [sp]
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_7:
	mov	x0, x19
	mov	x1, x28
	mov	x2, x26
	bl	_xennet_move_rx_slot
LBB0_8:
	ldr	w8, [x25]
	neg	w24, w8
LBB0_9:
	ldr	w8, [x23, #8]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.10:
	cmn	x27, x22
	b.eq	LBB0_18
; %bb.11:
	add	x26, x20, x22
	mov	x0, x19
	mov	x1, x26
	bl	_RING_GET_RESPONSE
	mov	x23, x0
	mov	x0, x19
	mov	x1, x26
	bl	_xennet_get_rx_skb
	mov	x28, x0
	mov	x0, x19
	mov	x1, x26
	bl	_xennet_get_rx_ref
	mov	x26, x0
	add	x22, x22, #1
	ldr	x8, [x23]
	tbz	x8, #63, LBB0_4
LBB0_12:
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_5
LBB0_13:
Lloh18:
	adrp	x8, _GRANT_INVALID_REF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GRANT_INVALID_REF@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_16
; %bb.14:
	bl	_net_ratelimit
	cbz	x0, LBB0_8
; %bb.15:
	ldr	w8, [x23, #24]
	str	x8, [sp]
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	b	LBB0_8
LBB0_16:
	mov	x0, x26
	mov	w1, #0
	bl	_gnttab_end_foreign_access_ref
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x26
	bl	_gnttab_release_grant_reference
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x1, x28
	bl	___skb_queue_tail
	b	LBB0_9
LBB0_17:
	ldr	w21, [sp, #20]                  ; 4-byte Folded Reload
	b	LBB0_21
LBB0_18:
	bl	_net_ratelimit
	ldr	w21, [sp, #20]                  ; 4-byte Folded Reload
	cbz	x0, LBB0_20
; %bb.19:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	bl	_dev_warn
LBB0_20:
Lloh25:
	adrp	x8, _ENOENT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_21:
	cmp	w21, w22
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_25
; %bb.22:
	bl	_net_ratelimit
	cbz	x0, LBB0_24
; %bb.23:
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	bl	_dev_warn
LBB0_24:
Lloh30:
	adrp	x8, _E2BIG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_25:
	mov	x0, x24
	bl	_unlikely
	cbz	x0, LBB0_27
; %bb.26:
	add	x8, x20, w22, uxtw
	str	x8, [x19]
LBB0_27:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_XEN_NETIF_NR_SLOTS_MIN,4,2     ; @XEN_NETIF_NR_SLOTS_MIN
	.comm	_RX_COPY_THRESHOLD,8,3          ; @RX_COPY_THRESHOLD
	.comm	_XEN_NETRXF_extra_info,4,2      ; @XEN_NETRXF_extra_info
	.comm	_XEN_PAGE_SIZE,8,3              ; @XEN_PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx->offset: %u, size: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GRANT_INVALID_REF,8,3          ; @GRANT_INVALID_REF
l_.str.1:                               ; @.str.1
	.asciz	"Bad rx response id %d.\n"

	.comm	_XEN_NETRXF_more_data,4,2       ; @XEN_NETRXF_more_data
l_.str.2:                               ; @.str.2
	.asciz	"Need more slots\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.3:                               ; @.str.3
	.asciz	"Too many slots\n"

	.comm	_E2BIG,4,2                      ; @E2BIG
	.no_dead_strip	_xennet_get_responses
.subsections_via_symbols
