	.file	"extr_tc86c001.c_tc86c001_cable_detect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tc86c001_cable_detect, @function
tc86c001_cable_detect:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR [rdi]
	call	to_pci_dev@PLT
	mov	esi, 5
	mov	rdi, rax
	call	pci_resource_start@PLT
	mov	rdi, rax
	call	inw@PLT
	test	ah, 32
	mov	eax, DWORD PTR ATA_CBL_PATA40[rip]
	cmove	eax, DWORD PTR ATA_CBL_PATA80[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tc86c001_cable_detect, .-tc86c001_cable_detect
	.comm	ATA_CBL_PATA80,4,4
	.comm	ATA_CBL_PATA40,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tc86c001.c_tc86c001_cable_detect.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tc86c001_cable_detect, %function
tc86c001_cable_detect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r0, [r0]
	bl	to_pci_dev
	mov	r1, #5
	bl	pci_resource_start
	bl	inw
	tst	r0, #8192
	ldrne	r3, .L6
	ldreq	r3, .L6+4
	ldr	r0, [r3]
	pop	{r4, pc}
.L7:
	.align	2
.L6:
	.word	ATA_CBL_PATA40
	.word	ATA_CBL_PATA80
	.size	tc86c001_cable_detect, .-tc86c001_cable_detect
	.comm	ATA_CBL_PATA80,4,4
	.comm	ATA_CBL_PATA40,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
