	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cy82c693_init_one
_cy82c693_init_one:                     ## @cy82c693_init_one
	.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	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	(%rdi), %eax
	sarl	$8, %eax
	movq	_PCI_CLASS_STORAGE_IDE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	callq	_PCI_FUNC
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.2:
	movl	16(%r14), %edi
	movq	8(%r14), %rsi
	incq	%rsi
	callq	_pci_get_slot
	movq	%rax, %r15
	movq	_cy82c693_chipset@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_ide_pci_init_two
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_pci_dev_put
	movl	%r14d, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PCI_CLASS_STORAGE_IDE,4,2      ## @PCI_CLASS_STORAGE_IDE
	.comm	_cy82c693_chipset,4,2           ## @cy82c693_chipset
	.no_dead_strip	_cy82c693_init_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cy82c693_init_one
_cy82c693_init_one:                     ; @cy82c693_init_one
	.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
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _PCI_CLASS_STORAGE_IDE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_CLASS_STORAGE_IDE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w8, asr #8
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_PCI_FUNC
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	add	x1, x8, #1
	bl	_pci_get_slot
	mov	x21, x0
Lloh6:
	adrp	x2, _cy82c693_chipset@GOTPAGE
Lloh7:
	ldr	x2, [x2, _cy82c693_chipset@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	mov	x3, #0
	bl	_ide_pci_init_two
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_pci_dev_put
LBB0_4:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PCI_CLASS_STORAGE_IDE,4,2      ; @PCI_CLASS_STORAGE_IDE
	.comm	_cy82c693_chipset,4,2           ; @cy82c693_chipset
	.no_dead_strip	_cy82c693_init_one
.subsections_via_symbols
