	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aml_vm_space_handler
_aml_vm_space_handler:                  ## @aml_vm_space_handler
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%edi, -308(%rbp)                ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$128, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_20
## %bb.2:
	movl	%r9d, -316(%rbp)                ## 4-byte Spill
	movq	%rbx, -328(%rbp)                ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	movl	%r15d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-308(%rbp), %edi                ## 4-byte Reload
	movl	%r13d, %esi
	leaq	-312(%rbp), %rdx
	callq	_aml_simulate_regcontent_read
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-312(%rbp), %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	orl	%eax, %r12d
	addl	$8, %ebx
	incl	%r13d
	cmpl	%r14d, %ebx
	jl	LBB0_4
	jmp	LBB0_9
LBB0_6:
	testl	%r9d, %r9d
	je	LBB0_15
## %bb.7:
	movslq	-308(%rbp), %rax                ## 4-byte Folded Reload
	leaq	_aml_vm_space_handler.space_names(%rip), %rcx
	movq	(%rcx,%rax,8), %rdx
	leaq	L_.str.8(%rip), %rsi
	leaq	-304(%rbp), %r12
	movq	%r12, %rdi
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_sprintf
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_aml_simulate_prompt
	movl	%eax, %r13d
	jmp	LBB0_16
LBB0_8:
	xorl	%r12d, %r12d
LBB0_9:
	movq	-328(%rbp), %r13                ## 8-byte Reload
	movl	%r12d, (%r13)
	cmpl	$0, -316(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_20
## %bb.10:
	movslq	-308(%rbp), %rax                ## 4-byte Folded Reload
	leaq	_aml_vm_space_handler.space_names(%rip), %rcx
	movq	(%rcx,%rax,8), %rdx
	leaq	L_.str.7(%rip), %rsi
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_sprintf
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_aml_simulate_prompt
	movl	%eax, (%r13)
	cmpl	%r12d, %eax
	je	LBB0_20
## %bb.11:
	movl	%eax, %ebx
	movl	%eax, (%r13)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	testl	%r14d, %r14d
	jle	LBB0_22
## %bb.12:
	xorl	%r13d, %r13d
	leaq	-320(%rbp), %r12
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%bl, %eax
	movl	%eax, -320(%rbp)
	movl	-308(%rbp), %edi                ## 4-byte Reload
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_aml_simulate_regcontent_write
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	sarl	$8, %ebx
	incl	%r15d
	addl	$8, %r13d
	cmpl	%r14d, %r13d
	jl	LBB0_13
	jmp	LBB0_20
LBB0_15:
	movl	(%rbx), %r13d
LBB0_16:
	movl	%r13d, (%rbx)
	testl	%r14d, %r14d
	jle	LBB0_20
## %bb.17:
	xorl	%ebx, %ebx
	leaq	-312(%rbp), %r12
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%r13b, %eax
	movl	%eax, -312(%rbp)
	movl	-308(%rbp), %edi                ## 4-byte Reload
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_aml_simulate_regcontent_write
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	sarl	$8, %r13d
	incl	%r15d
	addl	$8, %ebx
	cmpl	%r14d, %ebx
	jl	LBB0_18
LBB0_20:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_21:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_25
## %bb.23:
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @aml_vm_space_handler.space_names
_aml_vm_space_handler.space_names:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3
	.quad	L_.str.4
	.quad	L_.str.5
	.quad	L_.str.6

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SYSTEM_MEMORY"

L_.str.1:                               ## @.str.1
	.asciz	"SYSTEM_IO"

L_.str.2:                               ## @.str.2
	.asciz	"PCI_CONFIG"

L_.str.3:                               ## @.str.3
	.asciz	"EC"

L_.str.4:                               ## @.str.4
	.asciz	"SMBUS"

L_.str.5:                               ## @.str.5
	.asciz	"CMOS"

L_.str.6:                               ## @.str.6
	.asciz	"PCI_BAR_TARGET"

	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
L_.str.7:                               ## @.str.7
	.asciz	"[read (%s, %2d, 0x%jx)]"

L_.str.8:                               ## @.str.8
	.asciz	"[write(%s, %2d, 0x%jx)]"

	.comm	_AE_OK,4,2                      ## @AE_OK
	.no_dead_strip	_aml_vm_space_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aml_vm_space_handler
_aml_vm_space_handler:                  ; @aml_vm_space_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #288]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x5
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	cmp	w1, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_22
; %bb.2:
	cmp	w19, #1
	b.lt	LBB0_9
; %bb.3:
	mov	w26, #0
	mov	w24, #0
	mov	x25, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x2, sp
	mov	x0, x21
	mov	x1, x25
	bl	_aml_simulate_regcontent_read
	cmn	w0, #1
	b.eq	LBB0_23
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp]
	lsl	w8, w8, w26
	orr	w24, w8, w24
	add	w26, w26, #8
	add	w25, w25, #1
	cmp	w26, w19
	b.lt	LBB0_4
; %bb.6:
	str	w24, [x22]
	cbnz	w23, LBB0_10
	b	LBB0_22
LBB0_7:
	cbz	w23, LBB0_17
; %bb.8:
Lloh3:
	adrp	x8, _aml_vm_space_handler.space_names@PAGE
Lloh4:
	add	x8, x8, _aml_vm_space_handler.space_names@PAGEOFF
	ldr	x2, [x8, w21, sxtw #3]
Lloh5:
	adrp	x1, l_.str.8@PAGE
Lloh6:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x0, sp, #8
	mov	x3, x19
	mov	x4, x20
	bl	_sprintf
	ldr	w1, [x22]
	add	x0, sp, #8
	bl	_aml_simulate_prompt
	mov	x23, x0
	b	LBB0_18
LBB0_9:
	mov	w24, #0
	str	w24, [x22]
	cbz	w23, LBB0_22
LBB0_10:
Lloh7:
	adrp	x8, _aml_vm_space_handler.space_names@PAGE
Lloh8:
	add	x8, x8, _aml_vm_space_handler.space_names@PAGEOFF
	ldr	x2, [x8, w21, sxtw #3]
Lloh9:
	adrp	x1, l_.str.7@PAGE
Lloh10:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x0, sp, #8
	mov	x3, x19
	mov	x4, x20
	bl	_sprintf
	add	x0, sp, #8
	mov	x1, x24
	bl	_aml_simulate_prompt
	str	w0, [x22]
	cmp	w0, w24
	b.eq	LBB0_22
; %bb.11:
	mov	x23, x0
	str	w0, [x22]
	cmp	w19, #1
	b.lt	LBB0_27
; %bb.12:
	mov	w24, #0
Lloh11:
	adrp	x22, _AE_NO_MEMORY@GOTPAGE
Lloh12:
	ldr	x22, [x22, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh13:
	adrp	x25, _AE_OK@GOTPAGE
Lloh14:
	ldr	x25, [x25, _AE_OK@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	and	w8, w23, #0xff
	str	w8, [sp, #4]
	add	x2, sp, #4
	mov	x0, x21
	mov	x1, x20
	bl	_aml_simulate_regcontent_write
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	asr	w23, w23, #8
	add	w20, w20, #1
	add	w24, w24, #8
	cmp	w24, w19
	b.lt	LBB0_13
; %bb.15:
	mov	x22, x25
LBB0_16:
	ldr	w0, [x22]
	b	LBB0_25
LBB0_17:
	ldr	w23, [x22]
LBB0_18:
	str	w23, [x22]
	cmp	w19, #1
	b.lt	LBB0_22
; %bb.19:
	mov	w22, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	and	w8, w23, #0xff
	str	w8, [sp]
	mov	x2, sp
	mov	x0, x21
	mov	x1, x20
	bl	_aml_simulate_regcontent_write
	cmn	w0, #1
	b.eq	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	asr	w23, w23, #8
	add	w20, w20, #1
	add	w22, w22, #8
	cmp	w22, w19
	b.lt	LBB0_20
LBB0_22:
Lloh15:
	adrp	x8, _AE_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
Lloh17:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x8]
LBB0_25:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.26:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_27:
Lloh22:
	adrp	x22, _AE_OK@GOTPAGE
Lloh23:
	ldr	x22, [x22, _AE_OK@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x22]
	b	LBB0_25
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @aml_vm_space_handler.space_names
_aml_vm_space_handler.space_names:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SYSTEM_MEMORY"

l_.str.1:                               ; @.str.1
	.asciz	"SYSTEM_IO"

l_.str.2:                               ; @.str.2
	.asciz	"PCI_CONFIG"

l_.str.3:                               ; @.str.3
	.asciz	"EC"

l_.str.4:                               ; @.str.4
	.asciz	"SMBUS"

l_.str.5:                               ; @.str.5
	.asciz	"CMOS"

l_.str.6:                               ; @.str.6
	.asciz	"PCI_BAR_TARGET"

	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
l_.str.7:                               ; @.str.7
	.asciz	"[read (%s, %2d, 0x%jx)]"

l_.str.8:                               ; @.str.8
	.asciz	"[write(%s, %2d, 0x%jx)]"

	.comm	_AE_OK,4,2                      ; @AE_OK
	.no_dead_strip	_aml_vm_space_handler
.subsections_via_symbols
