	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_processor_errata_piix4
_acpi_processor_errata_piix4:           ## @acpi_processor_errata_piix4
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpq	$3, %rax
	ja	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rdi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_7:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
LBB0_8:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	movl	(%rbx), %eax
	leal	-2(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_11
## %bb.9:
	cmpl	$1, %eax
	ja	LBB0_18
## %bb.10:
	movq	_errata@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_11:
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_PCI_DEVICE_ID_INTEL_82371AB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCI_ANY_ID@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	%ecx, %edx
	xorl	%r8d, %r8d
	callq	_pci_get_subsys
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_pci_resource_start
	movq	_errata@GOTPCREL(%rip), %rcx
	movq	%rax, 8(%rcx)
	movq	%rbx, %rdi
	callq	_pci_dev_put
LBB0_13:
	movl	(%r14), %edi
	movq	_PCI_DEVICE_ID_INTEL_82371AB_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movl	%ecx, %edx
	xorl	%r8d, %r8d
	callq	_pci_get_subsys
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	%rax, %rbx
	leaq	-32(%rbp), %rdx
	movq	%rax, %rdi
	movl	$118, %esi
	callq	_pci_read_config_byte
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$119, %esi
	callq	_pci_read_config_byte
	testb	$-128, -32(%rbp)
	jne	LBB0_16
## %bb.15:
	testb	$-128, -28(%rbp)
	je	LBB0_17
LBB0_16:
	movq	_errata@GOTPCREL(%rip), %rax
	movl	$1, 4(%rax)
LBB0_17:
	movq	%rbx, %rdi
	callq	_pci_dev_put
LBB0_18:
	movq	_errata@GOTPCREL(%rip), %r14
	cmpq	$0, 8(%r14)
	je	LBB0_20
## %bb.19:
	leaq	L_.str.5(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
LBB0_20:
	xorl	%ebx, %ebx
	cmpl	$0, 4(%r14)
	je	LBB0_22
## %bb.21:
	leaq	L_.str.6(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found PIIX4 A-step\n"

L_.str.1:                               ## @.str.1
	.asciz	"Found PIIX4 B-step\n"

L_.str.2:                               ## @.str.2
	.asciz	"Found PIIX4E\n"

L_.str.3:                               ## @.str.3
	.asciz	"Found PIIX4M\n"

L_.str.4:                               ## @.str.4
	.asciz	"Found unknown PIIX4\n"

	.comm	_errata,16,3                    ## @errata
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ## @PCI_VENDOR_ID_INTEL
	.comm	_PCI_DEVICE_ID_INTEL_82371AB,4,2 ## @PCI_DEVICE_ID_INTEL_82371AB
	.comm	_PCI_ANY_ID,4,2                 ## @PCI_ANY_ID
	.comm	_PCI_DEVICE_ID_INTEL_82371AB_0,4,2 ## @PCI_DEVICE_ID_INTEL_82371AB_0
L_.str.5:                               ## @.str.5
	.asciz	"Bus master activity detection (BM-IDE) erratum enabled\n"

L_.str.6:                               ## @.str.6
	.asciz	"Type-F DMA livelock erratum (C3 disabled)\n"

	.no_dead_strip	_acpi_processor_errata_piix4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_processor_errata_piix4
_acpi_processor_errata_piix4:           ; @acpi_processor_errata_piix4
	.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
	str	xzr, [sp, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_24
LBB0_5:
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
	ldr	w8, [x19]
	sub	w9, w8, #2
Lloh15:
	adrp	x20, _errata@GOTPAGE
Lloh16:
	ldr	x20, [x20, _errata@GOTPAGEOFF]
	cmp	w9, #2
	b.lo	LBB0_12
; %bb.10:
	cmp	w8, #1
	b.hi	LBB0_19
; %bb.11:
	mov	w8, #1
	str	w8, [x20]
LBB0_12:
Lloh17:
	adrp	x21, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh18:
	ldr	x21, [x21, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh19:
	adrp	x8, _PCI_DEVICE_ID_INTEL_82371AB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PCI_DEVICE_ID_INTEL_82371AB@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x22, _PCI_ANY_ID@GOTPAGE
Lloh23:
	ldr	x22, [x22, _PCI_ANY_ID@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x3, x2
	mov	x4, #0
	bl	_pci_get_subsys
	cbz	x0, LBB0_14
; %bb.13:
	mov	x19, x0
	mov	w1, #4
	bl	_pci_resource_start
	str	x0, [x20, #8]
	mov	x0, x19
	bl	_pci_dev_put
LBB0_14:
	ldr	w0, [x21]
Lloh24:
	adrp	x8, _PCI_DEVICE_ID_INTEL_82371AB_0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PCI_DEVICE_ID_INTEL_82371AB_0@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x3, x2
	mov	x4, #0
	bl	_pci_get_subsys
	cbz	x0, LBB0_19
; %bb.15:
	mov	x19, x0
	add	x2, sp, #12
	mov	w1, #118
	bl	_pci_read_config_byte
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #119
	bl	_pci_read_config_byte
	ldrb	w8, [sp, #12]
	tbnz	w8, #7, LBB0_17
; %bb.16:
	ldrb	w8, [sp, #8]
	tbz	w8, #7, LBB0_18
LBB0_17:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_18:
	mov	x0, x19
	bl	_pci_dev_put
LBB0_19:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_21
; %bb.20:
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
LBB0_21:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_23
; %bb.22:
Lloh29:
	adrp	x0, l_.str.6@PAGE
Lloh30:
	add	x0, x0, l_.str.6@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
LBB0_23:
	mov	w0, #0
LBB0_24:
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found PIIX4 A-step\n"

l_.str.1:                               ; @.str.1
	.asciz	"Found PIIX4 B-step\n"

l_.str.2:                               ; @.str.2
	.asciz	"Found PIIX4E\n"

l_.str.3:                               ; @.str.3
	.asciz	"Found PIIX4M\n"

l_.str.4:                               ; @.str.4
	.asciz	"Found unknown PIIX4\n"

	.comm	_errata,16,3                    ; @errata
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ; @PCI_VENDOR_ID_INTEL
	.comm	_PCI_DEVICE_ID_INTEL_82371AB,4,2 ; @PCI_DEVICE_ID_INTEL_82371AB
	.comm	_PCI_ANY_ID,4,2                 ; @PCI_ANY_ID
	.comm	_PCI_DEVICE_ID_INTEL_82371AB_0,4,2 ; @PCI_DEVICE_ID_INTEL_82371AB_0
l_.str.5:                               ; @.str.5
	.asciz	"Bus master activity detection (BM-IDE) erratum enabled\n"

l_.str.6:                               ; @.str.6
	.asciz	"Type-F DMA livelock erratum (C3 disabled)\n"

	.no_dead_strip	_acpi_processor_errata_piix4
.subsections_via_symbols
