	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc_sch_get_io
_lpc_sch_get_io:                        ## @lpc_sch_get_io
	.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
	testl	%r8d, %r8d
	je	LBB0_1
## %bb.2:
	movl	%r8d, %r12d
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %rbx
	leaq	-36(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_dev_warn
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_dev_warn
	movq	_LPC_SKIP_RESOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_1:
	movq	_LPC_NO_RESOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_4:
	testw	%ax, %ax
	je	LBB0_5
## %bb.6:
	movw	%ax, (%r14)
	addl	%r12d, %eax
	decl	%eax
	movw	%ax, 2(%r14)
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LPC_NO_RESOURCE,4,2            ## @LPC_NO_RESOURCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Decode of the %s I/O range disabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"I/O space for %s uninitialized\n"

	.comm	_LPC_SKIP_RESOURCE,4,2          ## @LPC_SKIP_RESOURCE
	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
	.no_dead_strip	_lpc_sch_get_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc_sch_get_io
_lpc_sch_get_io:                        ; @lpc_sch_get_io
	.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
	cbz	w4, LBB0_4
; %bb.1:
	mov	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	tbnz	w8, #31, LBB0_5
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_warn
LBB0_3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_warn
Lloh4:
	adrp	x8, _LPC_SKIP_RESOURCE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LPC_SKIP_RESOURCE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_4:
Lloh7:
	adrp	x8, _LPC_NO_RESOURCE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LPC_NO_RESOURCE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_5:
	tst	w8, #0xffff
	b.eq	LBB0_3
; %bb.6:
	mov	w0, #0
	strh	w8, [x21]
	add	w8, w22, w8
	sub	w8, w8, #1
	strh	w8, [x21, #2]
Lloh10:
	adrp	x8, _IORESOURCE_IO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IORESOURCE_IO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x21, #4]
LBB0_7:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_LPC_NO_RESOURCE,4,2            ; @LPC_NO_RESOURCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Decode of the %s I/O range disabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"I/O space for %s uninitialized\n"

	.comm	_LPC_SKIP_RESOURCE,4,2          ; @LPC_SKIP_RESOURCE
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.no_dead_strip	_lpc_sch_get_io
.subsections_via_symbols
