	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xennet_make_txreqs
_xennet_make_txreqs:                    ## @xennet_make_txreqs
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rsi, -72(%rbp)
	movq	%rdx, -48(%rbp)
	movq	%rdi, -40(%rbp)
	testl	%r9d, %r9d
	je	LBB0_5
## %bb.1:
	movl	%r9d, %r15d
	movq	%rcx, %r14
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%r8d, %esi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r8d, %ebx
	shrq	%cl, %rbx
	leaq	(%r14,%rbx,4), %rdi
	movq	%rdi, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	_xennet_make_one_txreq@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-72(%rbp), %r8
	movl	%r9d, %edx
	callq	_gnttab_foreach_grant_in_range
	subl	-64(%rbp), %r15d
	je	LBB0_4
## %bb.2:
	leaq	(%r14,%rbx,4), %rbx
	addq	$4, %rbx
	leaq	-72(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -56(%rbp)
	movq	$0, -64(%rbp)
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movq	%r14, %r8
	callq	_gnttab_foreach_grant_in_range
	addq	$4, %rbx
	subl	-64(%rbp), %r15d
	jne	LBB0_3
LBB0_4:
	movq	-72(%rbp), %rax
LBB0_5:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_xennet_make_one_txreq,4,2      ## @xennet_make_one_txreq
	.no_dead_strip	_xennet_make_txreqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xennet_make_txreqs
_xennet_make_txreqs:                    ; @xennet_make_txreqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	str	x1, [sp, #8]
	stp	x2, x0, [sp, #32]
	cbz	w5, LBB0_5
; %bb.1:
	mov	x19, x5
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w1, w4, w8
Lloh3:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, w4
	lsr	x8, x9, x8
	add	x20, x3, x8, lsl #2
	stp	xzr, x20, [sp, #16]
Lloh6:
	adrp	x21, _xennet_make_one_txreq@GOTPAGE
Lloh7:
	ldr	x21, [x21, _xennet_make_one_txreq@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x4, sp, #8
	mov	x0, x20
	mov	x2, x5
	bl	_gnttab_foreach_grant_in_range
	ldr	w8, [sp, #16]
	subs	w19, w19, w8
	b.eq	LBB0_4
; %bb.2:
	add	x20, x20, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	stp	xzr, x20, [sp, #16]
	ldr	w3, [x21]
	add	x4, sp, #8
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_gnttab_foreach_grant_in_range
	ldr	w8, [sp, #16]
	add	x20, x20, #4
	subs	w19, w19, w8
	b.ne	LBB0_3
LBB0_4:
	ldr	x1, [sp, #8]
LBB0_5:
	mov	x0, x1
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_xennet_make_one_txreq,4,2      ; @xennet_make_one_txreq
	.no_dead_strip	_xennet_make_txreqs
.subsections_via_symbols
