	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_load_gdt
_xen_load_gdt:                          ## @xen_load_gdt
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	movl	8(%rdi), %ebx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	(%rcx,%rbx), %eax
	incl	%ebx
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpl	$65537, %ebx                    ## imm = 0x10001
	setae	%dil
	callq	_BUG_ON
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	notq	%rdi
	andq	%r13, %rdi
	callq	_BUG_ON
	movq	(%r15), %rax
	addq	%rbx, %rax
	cmpq	%rax, %r13
	jae	LBB0_3
## %bb.1:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	leaq	-68(%rbp), %rsi
	callq	_lookup_address
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movl	(%r12), %edi
	callq	_pte_pfn
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_pfn_to_mfn
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_PFN_PHYS
	movl	%eax, %edi
	callq	___va
	movq	%rax, %rbx
	movq	%r12, (%r14)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	movq	%r13, %rdi
	callq	_make_lowmem_page_readonly
	movq	%rbx, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	callq	_make_lowmem_page_readonly
	movl	(%r12), %eax
	addq	%rax, %r13
	movq	(%r15), %rax
	addq	%rbx, %rax
	addq	$8, %r14
	cmpq	%rax, %r13
	jb	LBB0_2
LBB0_3:
	shrl	$2, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_HYPERVISOR_set_gdt
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_BUG
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.no_dead_strip	_xen_load_gdt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_load_gdt
_xen_load_gdt:                          ; @xen_load_gdt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x20, [x0]
	ldr	w8, [x0, #8]
	add	w24, w8, #1
Lloh3:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w9, [x25]
	add	w8, w9, w8
	udiv	w8, w8, w9
	lsl	x9, x8, #3
	add	x8, x9, #15
	and	x8, x8, #0xffffffff0
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x8
	mov	sp, x21
	cmp	w24, #16, lsl #12               ; =65536
	cset	w0, hi
	bl	_BUG_ON
Lloh7:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	bic	x0, x20, x8
	bl	_BUG_ON
	ldr	x8, [x19]
	add	x8, x8, x24
	cmp	x20, x8
	b.hs	LBB0_3
; %bb.1:
	mov	x26, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x1, x29, #76
	mov	x0, x20
	bl	_lookup_address
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w0, [x22]
	bl	_pte_pfn
	mov	x22, x0
	bl	_pfn_to_mfn
	mov	x23, x0
	mov	x0, x22
	bl	_PFN_PHYS
	bl	___va
	mov	x22, x0
	str	x23, [x26], #8
	mov	x0, x20
	bl	_make_lowmem_page_readonly
	mov	x0, x22
	bl	_make_lowmem_page_readonly
	ldr	w8, [x25]
	add	x20, x20, x8
	ldr	x8, [x19]
	add	x8, x8, x24
	cmp	x20, x8
	b.lo	LBB0_2
LBB0_3:
	ubfx	x1, x24, #2, #30
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_HYPERVISOR_set_gdt
	cbz	x0, LBB0_5
; %bb.4:
	bl	_BUG
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.no_dead_strip	_xen_load_gdt
.subsections_via_symbols
