	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmx_set_tss_addr
_vmx_set_tss_addr:                      ## @vmx_set_tss_addr
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, -32(%rbp)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, -28(%rbp)
	movl	$0, -24(%rbp)
	movq	_TSS_PRIVATE_MEMSLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_kvm_set_memory_region
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	%r14d, (%rbx)
	movq	%rbx, %rdi
	callq	_init_rmode_tss
	movl	%eax, %ecx
	movl	$0, %eax
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_TSS_PRIVATE_MEMSLOT,4,2        ## @TSS_PRIVATE_MEMSLOT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_vmx_set_tss_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmx_set_tss_addr
_vmx_set_tss_addr:                      ; @vmx_set_tss_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #1
	stp	w1, w8, [sp]
Lloh3:
	adrp	x8, _TSS_PRIVATE_MEMSLOT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TSS_PRIVATE_MEMSLOT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
	mov	x1, sp
	mov	w2, #0
	bl	_kvm_set_memory_region
	cbnz	w0, LBB0_4
; %bb.1:
	str	w20, [x19]
	mov	x0, x19
	bl	_init_rmode_tss
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_TSS_PRIVATE_MEMSLOT,4,2        ; @TSS_PRIVATE_MEMSLOT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_vmx_set_tss_addr
.subsections_via_symbols
