	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd_probe
_amd_probe:                             ## @amd_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_PCI_VENDOR_ID_AMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_PCI_DEVICE_ID_AMD_HUDSON2_SMBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_pci_get_device
	movq	_AMD_CHIPSET_BEFORE_ML@GOTPCREL(%rip), %r15
	movq	%r15, %rcx
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movl	(%rcx), %eax
	cmpl	(%r15), %eax
	je	LBB0_8
## %bb.7:
	movq	_AMD_CHIPSET_CZ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
LBB0_8:
	movq	_SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%rbx), %edi
	movq	_PCI_DEVICE_ID_AMD_KERNCZ_SMBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_pci_get_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	cmpl	$81, (%rax)
	jge	LBB0_4
## %bb.5:
	movq	_AMD_CHIPSET_CZ@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	movq	_AMD_CHIPSET_UNKNOWN@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_AMD_CHIPSET_NL@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_AMD,4,2          ## @PCI_VENDOR_ID_AMD
	.comm	_PCI_DEVICE_ID_AMD_HUDSON2_SMBUS,4,2 ## @PCI_DEVICE_ID_AMD_HUDSON2_SMBUS
	.comm	_AMD_CHIPSET_BEFORE_ML,4,2      ## @AMD_CHIPSET_BEFORE_ML
	.comm	_PCI_DEVICE_ID_AMD_KERNCZ_SMBUS,4,2 ## @PCI_DEVICE_ID_AMD_KERNCZ_SMBUS
	.comm	_AMD_CHIPSET_CZ,4,2             ## @AMD_CHIPSET_CZ
	.comm	_AMD_CHIPSET_NL,4,2             ## @AMD_CHIPSET_NL
	.comm	_AMD_CHIPSET_UNKNOWN,4,2        ## @AMD_CHIPSET_UNKNOWN
	.comm	_SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD,4,2 ## @SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD
	.no_dead_strip	_amd_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd_probe
_amd_probe:                             ; @amd_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x22, _PCI_VENDOR_ID_AMD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PCI_VENDOR_ID_AMD@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _PCI_DEVICE_ID_AMD_HUDSON2_SMBUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_DEVICE_ID_AMD_HUDSON2_SMBUS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_pci_get_device
Lloh5:
	adrp	x20, _AMD_CHIPSET_BEFORE_ML@GOTPAGE
Lloh6:
	ldr	x20, [x20, _AMD_CHIPSET_BEFORE_ML@GOTPAGEOFF]
Lloh7:
	adrp	x21, _AMD_CHIPSET_CZ@GOTPAGE
Lloh8:
	ldr	x21, [x21, _AMD_CHIPSET_CZ@GOTPAGEOFF]
	mov	x8, x20
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x22]
Lloh9:
	adrp	x8, _PCI_DEVICE_ID_AMD_KERNCZ_SMBUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_DEVICE_ID_AMD_KERNCZ_SMBUS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_pci_get_device
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x0]
Lloh12:
	adrp	x9, _AMD_CHIPSET_NL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AMD_CHIPSET_NL@GOTPAGEOFF]
	cmp	w8, #81
	csel	x8, x21, x9, lt
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x8, _AMD_CHIPSET_UNKNOWN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AMD_CHIPSET_UNKNOWN@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	ldr	w9, [x20]
	ldr	w10, [x21]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_6
; %bb.5:
Lloh16:
	adrp	x8, _SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_AMD,4,2          ; @PCI_VENDOR_ID_AMD
	.comm	_PCI_DEVICE_ID_AMD_HUDSON2_SMBUS,4,2 ; @PCI_DEVICE_ID_AMD_HUDSON2_SMBUS
	.comm	_AMD_CHIPSET_BEFORE_ML,4,2      ; @AMD_CHIPSET_BEFORE_ML
	.comm	_PCI_DEVICE_ID_AMD_KERNCZ_SMBUS,4,2 ; @PCI_DEVICE_ID_AMD_KERNCZ_SMBUS
	.comm	_AMD_CHIPSET_CZ,4,2             ; @AMD_CHIPSET_CZ
	.comm	_AMD_CHIPSET_NL,4,2             ; @AMD_CHIPSET_NL
	.comm	_AMD_CHIPSET_UNKNOWN,4,2        ; @AMD_CHIPSET_UNKNOWN
	.comm	_SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD,4,2 ; @SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD
	.no_dead_strip	_amd_probe
.subsections_via_symbols
