	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_os_read_port              ## -- Begin function acpi_os_read_port
	.p2align	4, 0x90
_acpi_os_read_port:                     ## @acpi_os_read_port
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rsi, %rsi
	leaq	-12(%rbp), %rbx
	cmovneq	%rsi, %rbx
	movl	$0, (%rbx)
	cmpl	$8, %edx
	jg	LBB0_2
## %bb.1:
	callq	_inb
	movl	%eax, (%rbx)
	jmp	LBB0_7
LBB0_2:
	cmpl	$16, %edx
	ja	LBB0_4
## %bb.3:
	callq	_inw
	movl	%eax, (%rbx)
	jmp	LBB0_7
LBB0_4:
	cmpl	$32, %edx
	ja	LBB0_6
## %bb.5:
	callq	_inl
	movl	%eax, (%rbx)
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_BUG
LBB0_7:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_os_read_port              ; -- Begin function acpi_os_read_port
	.p2align	2
_acpi_os_read_port:                     ; @acpi_os_read_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x8, sp, #12
	cmp	x1, #0
	csel	x19, x8, x1, eq
	str	wzr, [x19]
	cmp	w2, #8
	b.gt	LBB0_2
; %bb.1:
	bl	_inb
	str	w0, [x19]
	b	LBB0_7
LBB0_2:
	cmp	w2, #16
	b.hi	LBB0_4
; %bb.3:
	bl	_inw
	str	w0, [x19]
	b	LBB0_7
LBB0_4:
	cmp	w2, #32
	b.hi	LBB0_6
; %bb.5:
	bl	_inl
	str	w0, [x19]
	b	LBB0_7
LBB0_6:
	bl	_BUG
LBB0_7:
Lloh0:
	adrp	x8, _AE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
