	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function piix4_probe
_piix4_probe:                           ## @piix4_probe
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_PCI_VENDOR_ID_ATI@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.1:
	movq	8(%r15), %rcx
	movq	_PCI_DEVICE_ID_ATI_SBX00_SMBUS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.2:
	cmpl	$64, 16(%r15)
	jl	LBB0_4
## %bb.3:
	movq	_PCI_VENDOR_ID_AMD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_PCI_VENDOR_ID_HYGON@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	jmp	LBB0_9
LBB0_4:
	movq	_PCI_VENDOR_ID_AMD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_PCI_VENDOR_ID_HYGON@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rcx, %rax
	je	LBB0_9
## %bb.5:
	cmpq	%rdx, %rax
	je	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_piix4_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_32
## %bb.7:
	movq	_piix4_main_adapters@GOTPCREL(%rip), %r10
	leaq	L_.str(%rip), %rax
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	(%r10)
	pushq	%rax
	callq	_piix4_add_adapter
	addq	$16, %rsp
	movb	$1, %r12b
	testl	%eax, %eax
	jns	LBB0_16
	jmp	LBB0_20
LBB0_9:
	xorl	%r12d, %r12d
	cmpq	%rcx, %rax
	je	LBB0_11
## %bb.10:
	cmpq	%rdx, %rax
	jne	LBB0_13
LBB0_11:
	movq	8(%r15), %rax
	movq	_PCI_DEVICE_ID_AMD_KERNCZ_SMBUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movl	20(%r15), %ebx
	movl	$20, %edi
	movl	$3, %esi
	callq	_PCI_DEVFN
	leaq	-44(%rbp), %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$64, %edx
	callq	_pci_bus_read_config_byte
	movl	-44(%rbp), %r12d
	shrl	$7, %r12d
	andl	$1, %r12d
LBB0_13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_piix4_setup_sb800
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_32
## %bb.14:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_piix4_add_adapters_sb800
	testl	%eax, %eax
	js	LBB0_20
## %bb.15:
	xorl	%r12d, %r12d
LBB0_16:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_23
## %bb.17:
	movq	8(%r15), %rax
	movq	_PCI_DEVICE_ID_ATI_SBX00_SMBUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.18:
	cmpl	$63, 16(%r15)
	jg	LBB0_21
## %bb.19:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$88, %edx
	callq	_piix4_setup_aux
	jmp	LBB0_22
LBB0_20:
	movl	%eax, %ebx
	jmp	LBB0_32
LBB0_21:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_piix4_setup_sb800
LBB0_22:
	movl	%eax, %esi
LBB0_23:
	movq	(%r15), %rax
	movq	_PCI_VENDOR_ID_AMD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.24:
	movq	8(%r15), %rax
	movq	_PCI_DEVICE_ID_AMD_HUDSON2_SMBUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.25:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_piix4_setup_sb800
	movl	%eax, %esi
LBB0_26:
	testl	%esi, %esi
	jle	LBB0_29
## %bb.27:
	testb	%r12b, %r12b
	jne	LBB0_30
## %bb.28:
	movq	_piix4_aux_port_name_sb800@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_31
LBB0_29:
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_30:
	leaq	L_.str(%rip), %rax
LBB0_31:
	movq	_piix4_aux_adapter@GOTPCREL(%rip), %r10
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	%r10
	pushq	%rax
	callq	_piix4_add_adapter
	addq	$16, %rsp
LBB0_32:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_ATI,8,3          ## @PCI_VENDOR_ID_ATI
	.comm	_PCI_DEVICE_ID_ATI_SBX00_SMBUS,8,3 ## @PCI_DEVICE_ID_ATI_SBX00_SMBUS
	.comm	_PCI_VENDOR_ID_AMD,8,3          ## @PCI_VENDOR_ID_AMD
	.comm	_PCI_VENDOR_ID_HYGON,8,3        ## @PCI_VENDOR_ID_HYGON
	.comm	_PCI_DEVICE_ID_AMD_KERNCZ_SMBUS,8,3 ## @PCI_DEVICE_ID_AMD_KERNCZ_SMBUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_piix4_main_adapters,8,3        ## @piix4_main_adapters
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PCI_DEVICE_ID_AMD_HUDSON2_SMBUS,8,3 ## @PCI_DEVICE_ID_AMD_HUDSON2_SMBUS
	.comm	_piix4_aux_port_name_sb800,8,3  ## @piix4_aux_port_name_sb800
	.comm	_piix4_aux_adapter,4,2          ## @piix4_aux_adapter
	.no_dead_strip	_piix4_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function piix4_probe
_piix4_probe:                           ; @piix4_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x23, _PCI_VENDOR_ID_ATI@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PCI_VENDOR_ID_ATI@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh2:
	adrp	x22, _PCI_VENDOR_ID_AMD@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PCI_VENDOR_ID_AMD@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x9, [x19, #8]
Lloh4:
	adrp	x10, _PCI_DEVICE_ID_ATI_SBX00_SMBUS@GOTPAGE
Lloh5:
	ldr	x10, [x10, _PCI_DEVICE_ID_ATI_SBX00_SMBUS@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	w9, [x19, #16]
	cmp	w9, #64
	b.lt	LBB0_4
; %bb.3:
	ldr	x9, [x22]
Lloh7:
	adrp	x10, _PCI_VENDOR_ID_HYGON@GOTPAGE
Lloh8:
	ldr	x10, [x10, _PCI_VENDOR_ID_HYGON@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	b	LBB0_5
LBB0_4:
	ldr	x9, [x22]
Lloh10:
	adrp	x10, _PCI_VENDOR_ID_HYGON@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PCI_VENDOR_ID_HYGON@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
LBB0_5:
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
; %bb.6:
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _PCI_DEVICE_ID_AMD_KERNCZ_SMBUS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PCI_DEVICE_ID_AMD_KERNCZ_SMBUS@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
	ldr	w21, [x19, #20]
	mov	w0, #20
	mov	w1, #3
	bl	_PCI_DEVFN
	mov	x1, x0
	add	x3, sp, #12
	mov	x0, x21
	mov	w2, #64
	bl	_pci_bus_read_config_byte
	ldr	w8, [sp, #12]
	ubfx	w21, w8, #7, #1
	b	LBB0_12
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_piix4_setup
	mov	x1, x0
	tbnz	w0, #31, LBB0_28
; %bb.9:
Lloh16:
	adrp	x8, _piix4_main_adapters@GOTPAGE
Lloh17:
	ldr	x8, [x8, _piix4_main_adapters@GOTPAGEOFF]
Lloh18:
	ldr	x7, [x8]
Lloh19:
	adrp	x6, l_.str@PAGE
Lloh20:
	add	x6, x6, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_piix4_add_adapter
	tbnz	w0, #31, LBB0_19
; %bb.10:
	mov	w21, #1
	b	LBB0_15
LBB0_11:
	mov	w21, #0
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_piix4_setup_sb800
	mov	x1, x0
	tbnz	w0, #31, LBB0_28
; %bb.13:
	mov	x0, x19
	mov	x2, x21
	bl	_piix4_add_adapters_sb800
	tbnz	w0, #31, LBB0_19
; %bb.14:
	mov	w21, #0
LBB0_15:
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w1, w8
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.16:
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x9, _PCI_DEVICE_ID_ATI_SBX00_SMBUS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PCI_DEVICE_ID_ATI_SBX00_SMBUS@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.17:
	ldr	w8, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	cmp	w8, #63
	b.gt	LBB0_20
; %bb.18:
	mov	w2, #88
	bl	_piix4_setup_aux
	b	LBB0_21
LBB0_19:
	mov	x1, x0
	b	LBB0_28
LBB0_20:
	mov	w2, #1
	bl	_piix4_setup_sb800
LBB0_21:
	mov	x1, x0
LBB0_22:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.23:
	ldr	x8, [x19, #8]
Lloh27:
	adrp	x9, _PCI_DEVICE_ID_AMD_HUDSON2_SMBUS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PCI_DEVICE_ID_AMD_HUDSON2_SMBUS@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.24:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_piix4_setup_sb800
	mov	x1, x0
LBB0_25:
	cmp	w1, #1
	b.lt	LBB0_27
; %bb.26:
Lloh30:
	adrp	x8, _piix4_aux_port_name_sb800@GOTPAGE
Lloh31:
	ldr	x8, [x8, _piix4_aux_port_name_sb800@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
Lloh33:
	adrp	x9, l_.str@PAGE
Lloh34:
	add	x9, x9, l_.str@PAGEOFF
	cmp	w21, #0
	csel	x6, x9, x8, ne
Lloh35:
	adrp	x7, _piix4_aux_adapter@GOTPAGE
Lloh36:
	ldr	x7, [x7, _piix4_aux_adapter@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #1
	bl	_piix4_add_adapter
LBB0_27:
	mov	w1, #0
LBB0_28:
	mov	x0, x1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_ATI,8,3          ; @PCI_VENDOR_ID_ATI
	.comm	_PCI_DEVICE_ID_ATI_SBX00_SMBUS,8,3 ; @PCI_DEVICE_ID_ATI_SBX00_SMBUS
	.comm	_PCI_VENDOR_ID_AMD,8,3          ; @PCI_VENDOR_ID_AMD
	.comm	_PCI_VENDOR_ID_HYGON,8,3        ; @PCI_VENDOR_ID_HYGON
	.comm	_PCI_DEVICE_ID_AMD_KERNCZ_SMBUS,8,3 ; @PCI_DEVICE_ID_AMD_KERNCZ_SMBUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_piix4_main_adapters,8,3        ; @piix4_main_adapters
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PCI_DEVICE_ID_AMD_HUDSON2_SMBUS,8,3 ; @PCI_DEVICE_ID_AMD_HUDSON2_SMBUS
	.comm	_piix4_aux_port_name_sb800,8,3  ; @piix4_aux_port_name_sb800
	.comm	_piix4_aux_adapter,4,2          ; @piix4_aux_adapter
	.no_dead_strip	_piix4_probe
.subsections_via_symbols
