	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_port_cable_detect
_ide_port_cable_detect:                 ## @ide_port_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rdi, %rbx
	testb	$120, (%rdi)
	je	LBB0_5
## %bb.3:
	movl	4(%rbx), %ecx
	movq	_ATA_CBL_PATA40_SHORT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	*%rax
	movl	%eax, 4(%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_CBL_PATA40_SHORT,4,2       ## @ATA_CBL_PATA40_SHORT
	.no_dead_strip	_ide_port_cable_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_port_cable_detect
_ide_port_cable_detect:                 ; @ide_port_cable_detect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x19, x0
	ldrb	w9, [x0]
	tst	w9, #0x78
	b.eq	LBB0_5
; %bb.3:
	ldr	w9, [x19, #4]
Lloh0:
	adrp	x10, _ATA_CBL_PATA40_SHORT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ATA_CBL_PATA40_SHORT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	blr	x8
	str	w0, [x19, #4]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_CBL_PATA40_SHORT,4,2       ; @ATA_CBL_PATA40_SHORT
	.no_dead_strip	_ide_port_cable_detect
.subsections_via_symbols
