	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_rmode_tss
_init_rmode_tss:                        ## @init_rmode_tss
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	callq	_srcu_read_lock
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_rmode_tss_base
	movl	%eax, %ebx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_kvm_clear_guest_page
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_TSS_BASE_SIZE@GOTPCREL(%rip), %rax
	movq	_TSS_REDIRECTION_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movq	_TSS_IOPB_BASE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$8, %r8d
	callq	_kvm_write_guest_page
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	leal	1(%rbx), %esi
	movl	(%r13), %ecx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_kvm_clear_guest_page
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	addl	$2, %ebx
	movl	(%r13), %ecx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_kvm_clear_guest_page
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	$-1, -48(%rbp)
	movq	_RMODE_TSS_SIZE@GOTPCREL(%rip), %rax
	movl	(%r13), %ecx
	addl	%ecx, %ecx
	notl	%ecx
	addl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$4, %r8d
	callq	_kvm_write_guest_page
	movl	%eax, %r12d
	notl	%r12d
	shrl	$31, %r12d
LBB0_5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_srcu_read_unlock
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_TSS_BASE_SIZE,8,3              ## @TSS_BASE_SIZE
	.comm	_TSS_REDIRECTION_SIZE,8,3       ## @TSS_REDIRECTION_SIZE
	.comm	_TSS_IOPB_BASE_OFFSET,4,2       ## @TSS_IOPB_BASE_OFFSET
	.comm	_RMODE_TSS_SIZE,4,2             ## @RMODE_TSS_SIZE
	.no_dead_strip	_init_rmode_tss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_rmode_tss
_init_rmode_tss:                        ; @init_rmode_tss
	.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, x0
	str	xzr, [sp, #8]
	bl	_srcu_read_lock
	mov	x20, x0
	mov	x0, x19
	bl	_rmode_tss_base
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w21, w0, w8
Lloh3:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_kvm_clear_guest_page
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh5:
	adrp	x8, _TSS_BASE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TSS_BASE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _TSS_REDIRECTION_SIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TSS_REDIRECTION_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [sp, #8]
Lloh11:
	adrp	x8, _TSS_IOPB_BASE_OFFSET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TSS_IOPB_BASE_OFFSET@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	mov	w4, #8
	bl	_kvm_write_guest_page
	tbnz	w0, #31, LBB0_5
; %bb.2:
	add	w1, w21, #1
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_kvm_clear_guest_page
	tbnz	w0, #31, LBB0_5
; %bb.3:
	add	w21, w21, #2
	ldr	w3, [x22]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_kvm_clear_guest_page
	tbnz	w0, #31, LBB0_5
; %bb.4:
	mov	x8, #-1
Lloh14:
	adrp	x9, _RMODE_TSS_SIZE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RMODE_TSS_SIZE@GOTPAGEOFF]
	str	x8, [sp, #8]
Lloh16:
	ldr	w8, [x9]
	ldr	w9, [x22]
	mov	w10, #-1
	eor	w9, w10, w9, lsl #1
	add	w3, w9, w8
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	mov	w4, #4
	bl	_kvm_write_guest_page
	mvn	w8, w0
	lsr	w21, w8, #31
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_srcu_read_unlock
	mov	x0, x21
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_TSS_BASE_SIZE,8,3              ; @TSS_BASE_SIZE
	.comm	_TSS_REDIRECTION_SIZE,8,3       ; @TSS_REDIRECTION_SIZE
	.comm	_TSS_IOPB_BASE_OFFSET,4,2       ; @TSS_IOPB_BASE_OFFSET
	.comm	_RMODE_TSS_SIZE,4,2             ; @RMODE_TSS_SIZE
	.no_dead_strip	_init_rmode_tss
.subsections_via_symbols
