	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emulator_io_port_access_allowed
_emulator_io_port_access_allowed:       ## @emulator_io_port_access_allowed
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r13d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_VCPU_SREG_TR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rsi
	callq	_kvm_get_segment
	xorl	%r12d, %r12d
	cmpq	$0, -56(%rbp)
	jne	LBB0_6
## %bb.1:
	cmpl	$103, -72(%rbp)
	jl	LBB0_6
## %bb.2:
	movq	-64(%rbp), %rdi
	addq	$102, %rdi
	movl	(%rbx), %ecx
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %rsi
	movl	$2, %edx
	xorl	%r8d, %r8d
	callq	*(%r15)
	movq	_X86EMUL_CONTINUE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_6
## %bb.3:
	movslq	-48(%rbp), %rdi
	leal	7(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	sarl	$3, %eax
	leal	(%rdi,%rax), %ecx
	cmpl	-72(%rbp), %ecx
	jg	LBB0_6
## %bb.4:
	cltq
	addq	%rax, %rdi
	addq	-64(%rbp), %rdi
	movl	(%rbx), %ecx
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %rsi
	movq	%rdx, %rbx
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	*(%r15)
	cmpl	(%rbx), %eax
	jne	LBB0_6
## %bb.5:
	andl	$7, %r14d
	movl	-44(%rbp), %eax
	movl	%r14d, %ecx
	shrl	%cl, %eax
	notl	%r13d
	xorl	%r12d, %r12d
	testl	%r13d, %eax
	sete	%r12b
LBB0_6:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCPU_SREG_TR,4,2               ## @VCPU_SREG_TR
	.comm	_X86EMUL_CONTINUE,4,2           ## @X86EMUL_CONTINUE
	.no_dead_strip	_emulator_io_port_access_allowed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emulator_io_port_access_allowed
_emulator_io_port_access_allowed:       ; @emulator_io_port_access_allowed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _VCPU_SREG_TR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCPU_SREG_TR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_kvm_get_segment
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_6
; %bb.1:
	ldr	w8, [sp, #8]
	cmp	w8, #103
	b.lt	LBB0_6
; %bb.2:
	ldr	x8, [x22]
	ldr	x9, [sp, #16]
	add	x0, x9, #102
	ldr	w3, [x21]
	add	x1, sp, #4
	mov	w2, #2
	mov	x4, #0
	blr	x8
Lloh3:
	adrp	x23, _X86EMUL_CONTINUE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _X86EMUL_CONTINUE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.3:
	ldp	w8, w10, [sp, #4]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	w9, w20, #7
	cmp	w20, #0
	csel	w9, w9, w20, lt
	asr	w9, w9, #3
	add	w11, w8, w9
	cmp	w11, w10
	b.gt	LBB0_6
; %bb.4:
	ldr	x10, [x22]
	ldr	x11, [sp, #16]
	add	x8, x8, w9, sxtw
	add	x0, x8, x11
	ldr	w3, [x21]
	mov	x1, sp
	mov	w2, #1
	mov	x4, #0
	blr	x10
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	and	w8, w20, #0x7
	mov	w9, #-1
	lsl	w9, w9, w19
	mvn	w9, w9
	ldr	w10, [sp]
	lsr	w8, w10, w8
	tst	w8, w9
	cset	w0, eq
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VCPU_SREG_TR,4,2               ; @VCPU_SREG_TR
	.comm	_X86EMUL_CONTINUE,4,2           ; @X86EMUL_CONTINUE
	.no_dead_strip	_emulator_io_port_access_allowed
.subsections_via_symbols
