	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svwks_cable_detect
_svwks_cable_detect:                    ## @svwks_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	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_pci_dev
	movq	(%rax), %rcx
	movq	_PCI_VENDOR_ID_SERVERWORKS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ata66_svwks_svwks              ## TAILCALL
LBB0_1:
	movq	_PCI_VENDOR_ID_DELL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ata66_svwks_dell               ## TAILCALL
LBB0_2:
	movq	_PCI_VENDOR_ID_SUN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ata66_svwks_cobalt             ## TAILCALL
LBB0_3:
	movq	8(%rax), %rax
	movq	_PCI_DEVICE_ID_SERVERWORKS_CSB6IDE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.6:
	movq	_ATA_CBL_PATA40@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_ATA_CBL_PATA80@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_SERVERWORKS,8,3  ## @PCI_VENDOR_ID_SERVERWORKS
	.comm	_PCI_VENDOR_ID_DELL,8,3         ## @PCI_VENDOR_ID_DELL
	.comm	_PCI_VENDOR_ID_SUN,8,3          ## @PCI_VENDOR_ID_SUN
	.comm	_PCI_DEVICE_ID_SERVERWORKS_CSB6IDE,8,3 ## @PCI_DEVICE_ID_SERVERWORKS_CSB6IDE
	.comm	_PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2,8,3 ## @PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2
	.comm	_ATA_CBL_PATA80,4,2             ## @ATA_CBL_PATA80
	.comm	_ATA_CBL_PATA40,4,2             ## @ATA_CBL_PATA40
	.no_dead_strip	_svwks_cable_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svwks_cable_detect
_svwks_cable_detect:                    ; @svwks_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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_pci_dev
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PCI_VENDOR_ID_SERVERWORKS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_VENDOR_ID_SERVERWORKS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ata66_svwks_svwks
LBB0_2:
Lloh3:
	adrp	x9, _PCI_VENDOR_ID_DELL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_VENDOR_ID_DELL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ata66_svwks_dell
LBB0_4:
Lloh6:
	adrp	x9, _PCI_VENDOR_ID_SUN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_VENDOR_ID_SUN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ata66_svwks_cobalt
LBB0_6:
	ldr	x8, [x0, #8]
Lloh9:
	adrp	x9, _PCI_DEVICE_ID_SERVERWORKS_CSB6IDE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCI_DEVICE_ID_SERVERWORKS_CSB6IDE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.7:
Lloh15:
	adrp	x8, _ATA_CBL_PATA80@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATA_CBL_PATA80@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _ATA_CBL_PATA40@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ATA_CBL_PATA40@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_SERVERWORKS,8,3  ; @PCI_VENDOR_ID_SERVERWORKS
	.comm	_PCI_VENDOR_ID_DELL,8,3         ; @PCI_VENDOR_ID_DELL
	.comm	_PCI_VENDOR_ID_SUN,8,3          ; @PCI_VENDOR_ID_SUN
	.comm	_PCI_DEVICE_ID_SERVERWORKS_CSB6IDE,8,3 ; @PCI_DEVICE_ID_SERVERWORKS_CSB6IDE
	.comm	_PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2,8,3 ; @PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2
	.comm	_ATA_CBL_PATA80,4,2             ; @ATA_CBL_PATA80
	.comm	_ATA_CBL_PATA40,4,2             ; @ATA_CBL_PATA40
	.no_dead_strip	_svwks_cable_detect
.subsections_via_symbols
