	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emulate_cmp
_emulate_cmp:                           ## @emulate_cmp
	.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
	movq	%r8, %r10
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movq	16(%rbp), %r9
	movl	(%rcx), %r12d
	movl	20(%rcx), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_1
## %bb.6:
	cmpl	$2, %ecx
	je	LBB0_1
## %bb.7:
	cmpl	$128, %eax
	movl	$1, %eax
	cmovel	%eax, %r12d
	leaq	-48(%rbp), %rcx
	movq	%rdi, %r13
	movl	%esi, %r15d
	movl	%r14d, %edx
	movl	%r12d, %r8d
	callq	*%r10
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movl	-48(%rbp), %esi
	movl	16(%rbx), %edx
	jmp	LBB0_9
LBB0_1:
	cmpl	$59, %eax
	je	LBB0_3
## %bb.2:
	cmpl	$57, %eax
	jne	LBB0_12
LBB0_3:
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	movq	_gpr_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	-56(%rbp), %rcx
	movq	%rdi, %r13
	movl	%esi, %r15d
	callq	_vie_read_register
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	leaq	-52(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%r12d, %r8d
	movq	16(%rbp), %r9
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	cmpl	$59, 20(%rbx)
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %eax
	movl	%eax, %esi
	cmovel	%edx, %esi
	movl	%esi, -48(%rbp)
	cmovel	%eax, %edx
LBB0_9:
	movl	%r12d, %edi
	callq	_getcc
	movl	%eax, %ebx
	movq	_VM_REG_GUEST_RFLAGS@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_vie_read_register
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_RFLAGS_STATUS_BITS@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx
	xorl	%ecx, %ebx
	andl	(%rax), %ebx
	xorl	%ecx, %ebx
	movl	%ebx, -44(%rbp)
	movl	(%r14), %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %ecx
	movl	$8, %r8d
	callq	_vie_update_register
	jmp	LBB0_11
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gpr_map,8,3                    ## @gpr_map
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VM_REG_GUEST_RFLAGS,4,2        ## @VM_REG_GUEST_RFLAGS
	.comm	_RFLAGS_STATUS_BITS,4,2         ## @RFLAGS_STATUS_BITS
	.no_dead_strip	_emulate_cmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emulate_cmp
_emulate_cmp:                           ; @emulate_cmp
	.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	x24, x6
	mov	x23, x4
	mov	x21, x3
	mov	x25, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w22, [x3]
	ldr	w8, [x3, #20]
	sub	w9, w8, #128
	cmp	w9, #3
	ccmp	w9, #2, #4, ls
	b.ne	LBB0_6
; %bb.1:
	cmp	w8, #59
	b.eq	LBB0_3
; %bb.2:
	cmp	w8, #57
	b.ne	LBB0_10
LBB0_3:
Lloh0:
	adrp	x8, _gpr_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gpr_map@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	ldr	w2, [x8, x9, lsl #2]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_vie_read_register
	cbnz	w0, LBB0_11
; %bb.4:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	mov	x4, x22
	mov	x5, x24
	blr	x23
	cbnz	w0, LBB0_11
; %bb.5:
	ldr	w8, [x21, #20]
	ldp	w10, w9, [sp, #8]
	cmp	w8, #59
	csel	w1, w9, w10, eq
	str	w1, [sp, #4]
	csel	w2, w10, w9, eq
	b	LBB0_8
LBB0_6:
	cmp	w8, #128
	csinc	w22, w22, wzr, ne
	add	x3, sp, #4
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	mov	x4, x22
	mov	x5, x24
	blr	x23
	cbnz	w0, LBB0_11
; %bb.7:
	ldr	w1, [sp, #4]
	ldr	w2, [x21, #16]
LBB0_8:
	mov	x0, x22
	bl	_getcc
	mov	x21, x0
Lloh3:
	adrp	x22, _VM_REG_GUEST_RFLAGS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _VM_REG_GUEST_RFLAGS@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	bl	_vie_read_register
	cbnz	w0, LBB0_11
; %bb.9:
Lloh5:
	adrp	x8, _RFLAGS_STATUS_BITS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RFLAGS_STATUS_BITS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [sp]
	bic	w9, w9, w8
	and	w8, w8, w21
	orr	w3, w9, w8
	str	w3, [sp]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #8
	bl	_vie_update_register
	b	LBB0_11
LBB0_10:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_gpr_map,8,3                    ; @gpr_map
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VM_REG_GUEST_RFLAGS,4,2        ; @VM_REG_GUEST_RFLAGS
	.comm	_RFLAGS_STATUS_BITS,4,2         ; @RFLAGS_STATUS_BITS
	.no_dead_strip	_emulate_cmp
.subsections_via_symbols
