	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd_cable_detect
_amd_cable_detect:                      ## @amd_cable_detect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_amd_80w@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rdi), %ecx
	btl	%ecx, %eax
	jb	LBB0_1
## %bb.2:
	movq	_ATA_CBL_PATA40@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ATA_CBL_PATA80@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amd_80w,4,2                    ## @amd_80w
	.comm	_ATA_CBL_PATA80,4,2             ## @ATA_CBL_PATA80
	.comm	_ATA_CBL_PATA40,4,2             ## @ATA_CBL_PATA40
	.no_dead_strip	_amd_cable_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd_cable_detect
_amd_cable_detect:                      ; @amd_cable_detect
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _amd_80w@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amd_80w@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ATA_CBL_PATA40@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATA_CBL_PATA40@GOTPAGEOFF]
Lloh5:
	adrp	x10, _ATA_CBL_PATA80@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ATA_CBL_PATA80@GOTPAGEOFF]
	ldr	w11, [x0]
	lsr	w8, w8, w11
	tst	w8, #0x1
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_amd_80w,4,2                    ; @amd_80w
	.comm	_ATA_CBL_PATA80,4,2             ; @ATA_CBL_PATA80
	.comm	_ATA_CBL_PATA40,4,2             ; @ATA_CBL_PATA40
	.no_dead_strip	_amd_cable_detect
.subsections_via_symbols
