	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___set_phys_to_machine          ## -- Begin function __set_phys_to_machine
	.p2align	4, 0x90
___set_phys_to_machine:                 ## @__set_phys_to_machine
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_XENFEAT_auto_translated_physmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_xen_feature
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	%r14, %rbx
	setne	%al
	movq	_INVALID_P2M_ENTRY@GOTPCREL(%rip), %rcx
	cmpq	%r14, (%rcx)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_BUG_ON
	jmp	LBB0_8
LBB0_2:
	movq	_xen_max_p2m_pfn@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	setbe	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_INVALID_P2M_ENTRY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%r14, (%rax)
	setne	%dil
	callq	_BUG_ON
	jmp	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	callq	_p2m_top_index
	movq	_p2m_top@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	%eax, %r12d
	movq	(%rcx,%r12,8), %rax
	movq	_p2m_missing@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_p2m_index
	movq	(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	%eax, %eax
	movq	%r14, (%rcx,%rax,8)
LBB0_8:
	movl	$1, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_INVALID_P2M_ENTRY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	%r14, (%rcx)
	sete	%al
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_XENFEAT_auto_translated_physmap,4,2 ## @XENFEAT_auto_translated_physmap
	.comm	_INVALID_P2M_ENTRY,8,3          ## @INVALID_P2M_ENTRY
	.comm	_xen_max_p2m_pfn,8,3            ## @xen_max_p2m_pfn
	.comm	_p2m_top,8,3                    ## @p2m_top
	.comm	_p2m_missing,8,3                ## @p2m_missing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___set_phys_to_machine          ; -- Begin function __set_phys_to_machine
	.p2align	2
___set_phys_to_machine:                 ; @__set_phys_to_machine
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _XENFEAT_auto_translated_physmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XENFEAT_auto_translated_physmap@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_xen_feature
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	cmp	x20, x19
Lloh3:
	adrp	x8, _INVALID_P2M_ENTRY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INVALID_P2M_ENTRY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ccmp	x8, x19, #4, ne
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _xen_max_p2m_pfn@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xen_max_p2m_pfn@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x20
	cset	w0, ls
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _INVALID_P2M_ENTRY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INVALID_P2M_ENTRY@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x19
LBB0_4:
	cset	w0, ne
	bl	_BUG_ON
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x20
	bl	_p2m_top_index
Lloh12:
	adrp	x21, _p2m_top@GOTPAGE
Lloh13:
	ldr	x21, [x21, _p2m_top@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8, w0, uxtw #3]
Lloh14:
	adrp	x9, _p2m_missing@GOTPAGE
Lloh15:
	ldr	x9, [x9, _p2m_missing@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
	mov	w22, w0
	mov	x0, x20
	bl	_p2m_index
	ldr	x8, [x21]
	ldr	x8, [x8, x22, lsl #3]
	str	x19, [x8, w0, uxtw #3]
	b	LBB0_5
LBB0_9:
Lloh17:
	adrp	x8, _INVALID_P2M_ENTRY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INVALID_P2M_ENTRY@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x8, x19
	cset	w0, eq
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_XENFEAT_auto_translated_physmap,4,2 ; @XENFEAT_auto_translated_physmap
	.comm	_INVALID_P2M_ENTRY,8,3          ; @INVALID_P2M_ENTRY
	.comm	_xen_max_p2m_pfn,8,3            ; @xen_max_p2m_pfn
	.comm	_p2m_top,8,3                    ; @p2m_top
	.comm	_p2m_missing,8,3                ; @p2m_missing
.subsections_via_symbols
