	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arch_gnttab_map_shared         ## -- Begin function arch_gnttab_map_shared
	.p2align	4, 0x90
_arch_gnttab_map_shared:                ## @arch_gnttab_map_shared
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -32(%rbp)
	movq	(%rcx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movq	%rcx, %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	imulq	(%rax), %rdx
	movq	%rdx, %rdi
	callq	_xen_alloc_vm_area
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	(%r15), %rsi
	movq	%rsi, (%r14)
LBB0_2:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	imulq	(%rax), %rbx
	movq	_map_pte_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_init_mm@GOTPCREL(%rip), %rdi
	leaq	-32(%rbp), %r8
	movq	%rbx, %rdx
	callq	_apply_to_page_range
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_init_mm,4,2                    ## @init_mm
	.comm	_map_pte_fn,4,2                 ## @map_pte_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arch_gnttab_map_shared         ; -- Begin function arch_gnttab_map_shared
	.p2align	2
_arch_gnttab_map_shared:                ; @arch_gnttab_map_shared
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	str	x0, [sp, #8]
	ldr	x1, [x3]
Lloh0:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	cbnz	x1, LBB0_2
; %bb.1:
	mov	x20, x3
	ldr	x8, [x22]
	mul	x0, x8, x2
	bl	_xen_alloc_vm_area
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x1, [x21]
	str	x1, [x20]
LBB0_2:
	ldr	x8, [x22]
	mul	x2, x8, x19
Lloh2:
	adrp	x8, _map_pte_fn@GOTPAGE
Lloh3:
	ldr	x8, [x8, _map_pte_fn@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x0, _init_mm@GOTPAGE
Lloh6:
	ldr	x0, [x0, _init_mm@GOTPAGEOFF]
	add	x4, sp, #8
	bl	_apply_to_page_range
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_init_mm,4,2                    ; @init_mm
	.comm	_map_pte_fn,4,2                 ; @map_pte_fn
.subsections_via_symbols
