	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quirk_ich4_lpc_acpi
_quirk_ich4_lpc_acpi:                   ## @quirk_ich4_lpc_acpi
	.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
	movq	%rdi, %rbx
	movq	_ICH_ACPI_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_pci_read_config_byte
	movq	_ICH4_ACPI_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -12(%rbp)
	je	LBB0_2
## %bb.1:
	movq	_ICH_PMBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCI_BRIDGE_RESOURCES@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %r8
	movq	%rbx, %rdi
	movl	$128, %edx
	callq	_quirk_io_region
LBB0_2:
	movq	_ICH4_GPIO_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_byte
	movq	_ICH4_GPIO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -12(%rbp)
	je	LBB0_4
## %bb.3:
	movq	_ICH4_GPIOBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCI_BRIDGE_RESOURCES@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	incq	%rcx
	leaq	L_.str.1(%rip), %r8
	movq	%rbx, %rdi
	movl	$64, %edx
	callq	_quirk_io_region
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICH_ACPI_CNTL,4,2              ## @ICH_ACPI_CNTL
	.comm	_ICH4_ACPI_EN,4,2               ## @ICH4_ACPI_EN
	.comm	_ICH_PMBASE,4,2                 ## @ICH_PMBASE
	.comm	_PCI_BRIDGE_RESOURCES,8,3       ## @PCI_BRIDGE_RESOURCES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ICH4 ACPI/GPIO/TCO"

	.comm	_ICH4_GPIO_CNTL,4,2             ## @ICH4_GPIO_CNTL
	.comm	_ICH4_GPIO_EN,4,2               ## @ICH4_GPIO_EN
	.comm	_ICH4_GPIOBASE,4,2              ## @ICH4_GPIOBASE
L_.str.1:                               ## @.str.1
	.asciz	"ICH4 GPIO"

	.no_dead_strip	_quirk_ich4_lpc_acpi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quirk_ich4_lpc_acpi
_quirk_ich4_lpc_acpi:                   ; @quirk_ich4_lpc_acpi
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ICH_ACPI_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICH_ACPI_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _ICH4_ACPI_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ICH4_ACPI_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x20, _PCI_BRIDGE_RESOURCES@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PCI_BRIDGE_RESOURCES@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _ICH_PMBASE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ICH_PMBASE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x3, [x20]
Lloh11:
	adrp	x4, l_.str@PAGE
Lloh12:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #128
	bl	_quirk_io_region
LBB0_2:
Lloh13:
	adrp	x8, _ICH4_GPIO_CNTL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ICH4_GPIO_CNTL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
Lloh16:
	adrp	x9, _ICH4_GPIO_EN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ICH4_GPIO_EN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh19:
	adrp	x8, _ICH4_GPIOBASE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ICH4_GPIOBASE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	x8, [x20]
	add	x3, x8, #1
Lloh22:
	adrp	x4, l_.str.1@PAGE
Lloh23:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #64
	bl	_quirk_io_region
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ICH_ACPI_CNTL,4,2              ; @ICH_ACPI_CNTL
	.comm	_ICH4_ACPI_EN,4,2               ; @ICH4_ACPI_EN
	.comm	_ICH_PMBASE,4,2                 ; @ICH_PMBASE
	.comm	_PCI_BRIDGE_RESOURCES,8,3       ; @PCI_BRIDGE_RESOURCES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ICH4 ACPI/GPIO/TCO"

	.comm	_ICH4_GPIO_CNTL,4,2             ; @ICH4_GPIO_CNTL
	.comm	_ICH4_GPIO_EN,4,2               ; @ICH4_GPIO_EN
	.comm	_ICH4_GPIOBASE,4,2              ; @ICH4_GPIOBASE
l_.str.1:                               ; @.str.1
	.asciz	"ICH4 GPIO"

	.no_dead_strip	_quirk_ich4_lpc_acpi
.subsections_via_symbols
