	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emulate_popf
_emulate_popf:                          ## @emulate_popf
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdi, %r12
	movq	_X86_EFLAGS_IOPL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	(%rdi), %r14d
	movq	_IOPL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	_kvm_x86_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rdi), %edi
	callq	*(%rax)
	movl	%eax, %r15d
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %ecx
	callq	_emulate_pop
	movq	_X86EMUL_CONTINUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.1:
	movl	%r15d, %edi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	_EFLG_CF@GOTPCREL(%rip), %rdx
	movq	_EFLG_PF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rdx), %rcx
	movq	_EFLG_AF@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	movq	_EFLG_ZF@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	movq	_EFLG_SF@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	movq	_EFLG_OF@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	movq	_EFLG_TF@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	movq	_EFLG_DF@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	movq	_EFLG_NT@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	movq	_EFLG_RF@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	movq	_EFLG_AC@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	movq	_EFLG_ID@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	movl	4(%r12), %edx
	leal	-129(%rdx), %esi
	cmpl	$3, %esi
	jae	LBB0_2
## %bb.5:
	testl	%edi, %edi
	jne	LBB0_6
## %bb.7:
	movq	_EFLG_IOPL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	jmp	LBB0_8
LBB0_2:
	cmpl	$128, %edx
	jne	LBB0_11
## %bb.3:
	cmpl	$2, %r14d
	jg	LBB0_10
## %bb.4:
	movl	8(%r12), %edi
	xorl	%esi, %esi
	callq	_kvm_inject_gp
	movq	_X86EMUL_PROPAGATE_FAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_6:
	xorl	%edx, %edx
LBB0_8:
	orq	%rcx, %rdx
	cmpl	%r14d, %edi
	jg	LBB0_13
## %bb.9:
	movq	_EFLG_IF@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rdx
	jmp	LBB0_13
LBB0_11:
	movq	_EFLG_IOPL@GOTPCREL(%rip), %rdx
	movq	_EFLG_IF@GOTPCREL(%rip), %rsi
	orq	(%rdx), %rcx
	orq	(%rsi), %rcx
	jmp	LBB0_12
LBB0_10:
	movq	_EFLG_IF@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
LBB0_12:
	movq	%rcx, %rdx
LBB0_13:
	movslq	(%r12), %rcx
	movq	-56(%rbp), %rsi
	xorq	%rcx, %rsi
	andq	%rdx, %rsi
	xorq	%rcx, %rsi
	movq	%rsi, (%r15)
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_X86EMUL_CONTINUE,4,2           ## @X86EMUL_CONTINUE
	.comm	_EFLG_CF,8,3                    ## @EFLG_CF
	.comm	_EFLG_PF,8,3                    ## @EFLG_PF
	.comm	_EFLG_AF,8,3                    ## @EFLG_AF
	.comm	_EFLG_ZF,8,3                    ## @EFLG_ZF
	.comm	_EFLG_SF,8,3                    ## @EFLG_SF
	.comm	_EFLG_OF,8,3                    ## @EFLG_OF
	.comm	_EFLG_TF,8,3                    ## @EFLG_TF
	.comm	_EFLG_DF,8,3                    ## @EFLG_DF
	.comm	_EFLG_NT,8,3                    ## @EFLG_NT
	.comm	_EFLG_RF,8,3                    ## @EFLG_RF
	.comm	_EFLG_AC,8,3                    ## @EFLG_AC
	.comm	_EFLG_ID,8,3                    ## @EFLG_ID
	.comm	_EFLG_IOPL,8,3                  ## @EFLG_IOPL
	.comm	_EFLG_IF,8,3                    ## @EFLG_IF
	.comm	_X86EMUL_PROPAGATE_FAULT,4,2    ## @X86EMUL_PROPAGATE_FAULT
	.no_dead_strip	_emulate_popf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emulate_popf
_emulate_popf:                          ; @emulate_popf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w24, [x0]
Lloh0:
	adrp	x8, _X86_EFLAGS_IOPL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X86_EFLAGS_IOPL@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
Lloh3:
	adrp	x8, _IOPL_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IOPL_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
Lloh6:
	adrp	x8, _kvm_x86_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _kvm_x86_ops@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x0, #8]
	blr	x8
	mov	x21, x0
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x23
	mov	x3, x22
	bl	_emulate_pop
Lloh9:
	adrp	x8, _X86EMUL_CONTINUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X86EMUL_CONTINUE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.1:
	and	w8, w26, w24
	asr	w8, w8, w25
Lloh12:
	adrp	x9, _EFLG_CF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EFLG_CF@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _EFLG_PF@GOTPAGE
Lloh16:
	ldr	x10, [x10, _EFLG_PF@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
Lloh18:
	adrp	x11, _EFLG_AF@GOTPAGE
Lloh19:
	ldr	x11, [x11, _EFLG_AF@GOTPAGEOFF]
	orr	x9, x10, x9
Lloh20:
	ldr	x10, [x11]
	orr	x9, x9, x10
Lloh21:
	adrp	x10, _EFLG_ZF@GOTPAGE
Lloh22:
	ldr	x10, [x10, _EFLG_ZF@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	orr	x9, x9, x10
Lloh24:
	adrp	x10, _EFLG_SF@GOTPAGE
Lloh25:
	ldr	x10, [x10, _EFLG_SF@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
Lloh27:
	adrp	x11, _EFLG_OF@GOTPAGE
Lloh28:
	ldr	x11, [x11, _EFLG_OF@GOTPAGEOFF]
	orr	x9, x9, x10
Lloh29:
	ldr	x10, [x11]
	orr	x9, x9, x10
Lloh30:
	adrp	x10, _EFLG_TF@GOTPAGE
Lloh31:
	ldr	x10, [x10, _EFLG_TF@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	orr	x9, x9, x10
Lloh33:
	adrp	x10, _EFLG_DF@GOTPAGE
Lloh34:
	ldr	x10, [x10, _EFLG_DF@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
Lloh36:
	adrp	x11, _EFLG_NT@GOTPAGE
Lloh37:
	ldr	x11, [x11, _EFLG_NT@GOTPAGEOFF]
	orr	x9, x9, x10
Lloh38:
	ldr	x10, [x11]
	orr	x9, x9, x10
Lloh39:
	adrp	x10, _EFLG_RF@GOTPAGE
Lloh40:
	ldr	x10, [x10, _EFLG_RF@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x10]
	orr	x9, x9, x10
Lloh42:
	adrp	x10, _EFLG_AC@GOTPAGE
Lloh43:
	ldr	x10, [x10, _EFLG_AC@GOTPAGEOFF]
Lloh44:
	ldr	x10, [x10]
Lloh45:
	adrp	x11, _EFLG_ID@GOTPAGE
Lloh46:
	ldr	x11, [x11, _EFLG_ID@GOTPAGEOFF]
	orr	x9, x9, x10
Lloh47:
	ldr	x10, [x11]
	orr	x9, x9, x10
	ldr	w10, [x20, #4]
	sub	w11, w10, #129
	cmp	w11, #3
	b.hs	LBB0_3
; %bb.2:
Lloh48:
	adrp	x10, _EFLG_IOPL@GOTPAGE
Lloh49:
	ldr	x10, [x10, _EFLG_IOPL@GOTPAGEOFF]
Lloh50:
	ldr	x10, [x10]
	cmp	w21, #0
	csel	x10, x10, xzr, eq
	orr	x9, x10, x9
	cmp	w21, w8
	b.le	LBB0_6
	b	LBB0_8
LBB0_3:
	cmp	w10, #128
	b.ne	LBB0_7
; %bb.4:
	cmp	w8, #2
	b.gt	LBB0_6
; %bb.5:
	ldr	w0, [x20, #8]
	mov	w1, #0
	bl	_kvm_inject_gp
Lloh51:
	adrp	x8, _X86EMUL_PROPAGATE_FAULT@GOTPAGE
Lloh52:
	ldr	x8, [x8, _X86EMUL_PROPAGATE_FAULT@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_6:
Lloh54:
	adrp	x8, _EFLG_IF@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EFLG_IF@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	orr	x9, x8, x9
	b	LBB0_8
LBB0_7:
Lloh57:
	adrp	x8, _EFLG_IOPL@GOTPAGE
Lloh58:
	ldr	x8, [x8, _EFLG_IOPL@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
Lloh60:
	adrp	x10, _EFLG_IF@GOTPAGE
Lloh61:
	ldr	x10, [x10, _EFLG_IF@GOTPAGEOFF]
Lloh62:
	ldr	x10, [x10]
	orr	x8, x8, x9
	orr	x9, x8, x10
LBB0_8:
	ldrsw	x8, [x20]
	bic	x8, x8, x9
	ldr	x10, [sp, #8]
	and	x9, x10, x9
	orr	x8, x8, x9
	str	x8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_X86EMUL_CONTINUE,4,2           ; @X86EMUL_CONTINUE
	.comm	_EFLG_CF,8,3                    ; @EFLG_CF
	.comm	_EFLG_PF,8,3                    ; @EFLG_PF
	.comm	_EFLG_AF,8,3                    ; @EFLG_AF
	.comm	_EFLG_ZF,8,3                    ; @EFLG_ZF
	.comm	_EFLG_SF,8,3                    ; @EFLG_SF
	.comm	_EFLG_OF,8,3                    ; @EFLG_OF
	.comm	_EFLG_TF,8,3                    ; @EFLG_TF
	.comm	_EFLG_DF,8,3                    ; @EFLG_DF
	.comm	_EFLG_NT,8,3                    ; @EFLG_NT
	.comm	_EFLG_RF,8,3                    ; @EFLG_RF
	.comm	_EFLG_AC,8,3                    ; @EFLG_AC
	.comm	_EFLG_ID,8,3                    ; @EFLG_ID
	.comm	_EFLG_IOPL,8,3                  ; @EFLG_IOPL
	.comm	_EFLG_IF,8,3                    ; @EFLG_IF
	.comm	_X86EMUL_PROPAGATE_FAULT,4,2    ; @X86EMUL_PROPAGATE_FAULT
	.no_dead_strip	_emulate_popf
.subsections_via_symbols
