	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emulator_bad_iopl
_emulator_bad_iopl:                     ## @emulator_bad_iopl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rcx
	movq	_X86EMUL_MODE_REAL@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.1:
	movq	_X86EMUL_MODE_VM86@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.2:
	movq	_X86_EFLAGS_IOPL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	8(%rdi), %ebx
	movq	_IOPL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	_kvm_x86_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	12(%rdi), %edi
	callq	*(%rax)
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%ebx, %ecx
	setg	%al
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X86EMUL_MODE_REAL,8,3          ## @X86EMUL_MODE_REAL
	.comm	_X86EMUL_MODE_VM86,8,3          ## @X86EMUL_MODE_VM86
	.comm	_X86_EFLAGS_IOPL,4,2            ## @X86_EFLAGS_IOPL
	.comm	_IOPL_SHIFT,4,2                 ## @IOPL_SHIFT
	.comm	_kvm_x86_ops,8,3                ## @kvm_x86_ops
	.no_dead_strip	_emulator_bad_iopl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emulator_bad_iopl
_emulator_bad_iopl:                     ; @emulator_bad_iopl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _X86EMUL_MODE_REAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _X86EMUL_MODE_REAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x9, _X86EMUL_MODE_VM86@GOTPAGE
Lloh4:
	ldr	x9, [x9, _X86EMUL_MODE_VM86@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _X86_EFLAGS_IOPL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _X86_EFLAGS_IOPL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	w9, w0, [x0, #8]
	and	w8, w8, w9
Lloh9:
	adrp	x9, _IOPL_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IOPL_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w19, w8, w9
Lloh12:
	adrp	x8, _kvm_x86_ops@GOTPAGE
Lloh13:
	ldr	x8, [x8, _kvm_x86_ops@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x8, [x8]
	blr	x8
	cmp	w0, w19
	cset	w0, gt
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_X86EMUL_MODE_REAL,8,3          ; @X86EMUL_MODE_REAL
	.comm	_X86EMUL_MODE_VM86,8,3          ; @X86EMUL_MODE_VM86
	.comm	_X86_EFLAGS_IOPL,4,2            ; @X86_EFLAGS_IOPL
	.comm	_IOPL_SHIFT,4,2                 ; @IOPL_SHIFT
	.comm	_kvm_x86_ops,8,3                ; @kvm_x86_ops
	.no_dead_strip	_emulator_bad_iopl
.subsections_via_symbols
