	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_hvm_init_hypercall_stubs   ## -- Begin function xen_hvm_init_hypercall_stubs
	.p2align	4, 0x90
_xen_hvm_init_hypercall_stubs:          ## @xen_hvm_init_hypercall_stubs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_cpuid_base@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jne	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_xen_hvm_cpuid_base
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_xen_domain
	movq	_XEN_HVM_INIT_LATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpl	%ebx, %ecx
	jne	LBB0_6
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_hypervisor_version
	jmp	LBB0_14
LBB0_6:
	cmpl	%ebx, %ecx
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_hypervisor_version
LBB0_8:
	movq	(%r14), %rdi
	addq	$2, %rdi
	leaq	-48(%rbp), %rsi
	callq	_do_cpuid
	cmpl	$1, -48(%rbp)
	jne	LBB0_9
## %bb.10:
	movl	-44(%rbp), %r14d
	movq	_XEN_HVM_INIT_EARLY@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	_KERNBASE@GOTPCREL(%rip), %rax
	movq	_hypercall_page@GOTPCREL(%rip), %rsi
	subq	(%rax), %rsi
	jmp	LBB0_13
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_12:
	movq	_hypercall_page@GOTPCREL(%rip), %rdi
	callq	_vtophys
	movq	%rax, %rsi
LBB0_13:
	movl	%r14d, %edi
	callq	_wrmsr
	xorl	%ebx, %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cpuid_base,8,3                 ## @cpuid_base
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_XEN_HVM_INIT_LATE,4,2          ## @XEN_HVM_INIT_LATE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_XEN_HVM_INIT_EARLY,4,2         ## @XEN_HVM_INIT_EARLY
	.comm	_hypercall_page,4,2             ## @hypercall_page
	.comm	_KERNBASE,8,3                   ## @KERNBASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_hvm_init_hypercall_stubs   ; -- Begin function xen_hvm_init_hypercall_stubs
	.p2align	2
_xen_hvm_init_hypercall_stubs:          ; @xen_hvm_init_hypercall_stubs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x20, _cpuid_base@GOTPAGE
Lloh4:
	ldr	x20, [x20, _cpuid_base@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
; %bb.1:
	bl	_xen_hvm_cpuid_base
	str	x0, [x20]
	cbz	x0, LBB0_11
LBB0_2:
	bl	_xen_domain
Lloh5:
	adrp	x8, _XEN_HVM_INIT_LATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XEN_HVM_INIT_LATE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbz	x0, LBB0_5
; %bb.3:
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.4:
	bl	_hypervisor_version
	b	LBB0_14
LBB0_5:
	cmp	w8, w19
	b.ne	LBB0_7
; %bb.6:
	bl	_hypervisor_version
LBB0_7:
	ldr	x8, [x20]
	add	x0, x8, #2
	add	x1, sp, #8
	bl	_do_cpuid
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.8:
	ldr	w20, [sp, #12]
Lloh8:
	adrp	x8, _XEN_HVM_INIT_EARLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XEN_HVM_INIT_EARLY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_12
; %bb.9:
Lloh11:
	adrp	x8, _KERNBASE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KERNBASE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _hypercall_page@GOTPAGE
Lloh15:
	ldr	x9, [x9, _hypercall_page@GOTPAGEOFF]
	sub	x1, x9, x8
	b	LBB0_13
LBB0_10:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	b	LBB0_15
LBB0_11:
Lloh19:
	adrp	x8, _ENXIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	b	LBB0_15
LBB0_12:
Lloh22:
	adrp	x0, _hypercall_page@GOTPAGE
Lloh23:
	ldr	x0, [x0, _hypercall_page@GOTPAGEOFF]
	bl	_vtophys
	mov	x1, x0
LBB0_13:
	mov	x0, x20
	bl	_wrmsr
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldr	x8, [sp, #24]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_cpuid_base,8,3                 ; @cpuid_base
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_XEN_HVM_INIT_LATE,4,2          ; @XEN_HVM_INIT_LATE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_XEN_HVM_INIT_EARLY,4,2         ; @XEN_HVM_INIT_EARLY
	.comm	_hypercall_page,4,2             ; @hypercall_page
	.comm	_KERNBASE,8,3                   ; @KERNBASE
.subsections_via_symbols
