	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_system_io_space_handler ## -- Begin function acpi_ex_system_io_space_handler
	.p2align	4, 0x90
_acpi_ex_system_io_space_handler:       ## @acpi_ex_system_io_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %ebx
	movq	_ex_system_io_space_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movl	%r12d, %edi
	callq	_ACPI_FORMAT_NATIVE_UINT
	movl	%eax, %edi
	callq	_ACPI_DEBUG_PRINT
	cmpl	$128, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_4
## %bb.2:
	leaq	-36(%rbp), %rsi
	movl	%r12d, %edi
	movl	%r15d, %edx
	callq	_acpi_hw_read_port
	movl	%eax, %edi
	movl	-36(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_5
LBB0_3:
	movl	(%r14), %esi
	movl	%r12d, %edi
	movl	%r15d, %edx
	callq	_acpi_hw_write_port
	movl	%eax, %edi
	jmp	LBB0_5
LBB0_4:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_5:
	callq	_return_ACPI_STATUS
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ex_system_io_space_handler,4,2 ## @ex_system_io_space_handler
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_system_io_space_handler ; -- Begin function acpi_ex_system_io_space_handler
	.p2align	2
_acpi_ex_system_io_space_handler:       ; @acpi_ex_system_io_space_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ex_system_io_space_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ex_system_io_space_handler@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	mov	x0, x21
	bl	_ACPI_FORMAT_NATIVE_UINT
	bl	_ACPI_DEBUG_PRINT
	cmp	w22, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w22, #129
	b.ne	LBB0_4
; %bb.2:
	add	x1, sp, #12
	mov	x0, x21
	mov	x2, x20
	bl	_acpi_hw_read_port
	ldr	w8, [sp, #12]
	str	w8, [x19]
	b	LBB0_5
LBB0_3:
	ldr	w1, [x19]
	mov	x0, x21
	mov	x2, x20
	bl	_acpi_hw_write_port
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_5:
	bl	_return_ACPI_STATUS
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ex_system_io_space_handler,4,2 ; @ex_system_io_space_handler
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
.subsections_via_symbols
