	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_exception_bitmap
_update_exception_bitmap:               ## @update_exception_bitmap
	.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	%rdi, %r14
	movq	_UD_VECTOR@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	movq	_PF_VECTOR@GOTPCREL(%rip), %r12
	movb	(%r12), %al
	btsl	%eax, %ebx
	movq	_MC_VECTOR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %ebx
	movq	_NM_VECTOR@GOTPCREL(%rip), %r15
	movb	(%r15), %al
	btsl	%eax, %ebx
	movq	_DB_VECTOR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %ebx
	movl	(%rdi), %eax
	movq	_KVM_GUESTDBG_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_KVM_GUESTDBG_USE_SW_BP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_BP_VECTOR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_to_vmx
	xorl	%esi, %esi
	cmpq	(%rax), %rsi
	movl	$0, %eax
	sbbl	%eax, %eax
	movb	(%r12), %cl
	movl	$-2, %edx
	roll	%cl, %edx
	orl	%ebx, %eax
	movq	_enable_ept@GOTPCREL(%rip), %rcx
	cmpq	$1, (%rcx)
	movl	$-2, %edi
	movl	$0, %ebx
	sbbl	%ebx, %ebx
	movb	(%r15), %cl
	roll	%cl, %edi
	orl	%edx, %ebx
	cmpq	$1, 8(%r14)
	sbbl	%esi, %esi
	orl	%edi, %esi
	andl	%ebx, %esi
	andl	%eax, %esi
	movq	_EXCEPTION_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vmcs_write32                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_VECTOR,4,2                  ## @PF_VECTOR
	.comm	_UD_VECTOR,4,2                  ## @UD_VECTOR
	.comm	_MC_VECTOR,4,2                  ## @MC_VECTOR
	.comm	_NM_VECTOR,4,2                  ## @NM_VECTOR
	.comm	_DB_VECTOR,4,2                  ## @DB_VECTOR
	.comm	_KVM_GUESTDBG_ENABLE,4,2        ## @KVM_GUESTDBG_ENABLE
	.comm	_KVM_GUESTDBG_USE_SW_BP,4,2     ## @KVM_GUESTDBG_USE_SW_BP
	.comm	_BP_VECTOR,4,2                  ## @BP_VECTOR
	.comm	_enable_ept,8,3                 ## @enable_ept
	.comm	_EXCEPTION_BITMAP,4,2           ## @EXCEPTION_BITMAP
	.no_dead_strip	_update_exception_bitmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_exception_bitmap
_update_exception_bitmap:               ; @update_exception_bitmap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _PF_VECTOR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PF_VECTOR@GOTPAGEOFF]
	ldr	w8, [x21]
	mov	w20, #1
Lloh2:
	adrp	x9, _UD_VECTOR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UD_VECTOR@GOTPAGEOFF]
	lsl	w8, w20, w8
Lloh4:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w8, w9, w8
Lloh5:
	adrp	x9, _MC_VECTOR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MC_VECTOR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w8, w8, w9
Lloh8:
	adrp	x22, _NM_VECTOR@GOTPAGE
Lloh9:
	ldr	x22, [x22, _NM_VECTOR@GOTPAGEOFF]
	ldr	w9, [x22]
	lsl	w9, w20, w9
	orr	w8, w8, w9
Lloh10:
	adrp	x9, _DB_VECTOR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DB_VECTOR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w23, w8, w9
	ldr	w8, [x0]
Lloh13:
	adrp	x9, _KVM_GUESTDBG_ENABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _KVM_GUESTDBG_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh16:
	adrp	x9, _KVM_GUESTDBG_USE_SW_BP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _KVM_GUESTDBG_USE_SW_BP@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh19:
	adrp	x8, _BP_VECTOR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BP_VECTOR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	orr	w23, w8, w23
LBB0_3:
	mov	x0, x19
	bl	_to_vmx
	ldr	x8, [x0]
	cmp	x8, #0
	csinv	w8, w23, wzr, eq
Lloh22:
	adrp	x9, _enable_ept@GOTPAGE
Lloh23:
	ldr	x9, [x9, _enable_ept@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	w10, [x21]
	lsl	w10, w20, w10
	cmp	x9, #0
	mov	w9, #-1
	csinv	w10, w9, w10, eq
	and	w8, w10, w8
	ldr	x10, [x19, #8]
	ldr	w11, [x22]
	lsl	w11, w20, w11
	cmp	x10, #0
	csinv	w9, w9, w11, eq
	and	w1, w8, w9
Lloh25:
	adrp	x8, _EXCEPTION_BITMAP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EXCEPTION_BITMAP@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_vmcs_write32
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_VECTOR,4,2                  ; @PF_VECTOR
	.comm	_UD_VECTOR,4,2                  ; @UD_VECTOR
	.comm	_MC_VECTOR,4,2                  ; @MC_VECTOR
	.comm	_NM_VECTOR,4,2                  ; @NM_VECTOR
	.comm	_DB_VECTOR,4,2                  ; @DB_VECTOR
	.comm	_KVM_GUESTDBG_ENABLE,4,2        ; @KVM_GUESTDBG_ENABLE
	.comm	_KVM_GUESTDBG_USE_SW_BP,4,2     ; @KVM_GUESTDBG_USE_SW_BP
	.comm	_BP_VECTOR,4,2                  ; @BP_VECTOR
	.comm	_enable_ept,8,3                 ; @enable_ept
	.comm	_EXCEPTION_BITMAP,4,2           ; @EXCEPTION_BITMAP
	.no_dead_strip	_update_exception_bitmap
.subsections_via_symbols
