	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd64x_init_one
_cmd64x_init_one:                       ## @cmd64x_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
	subq	$32, %rsp
	movq	(%rsi), %rax
	movq	_cmd64x_chipsets@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	shlq	$5, %rdx
	movups	(%rcx,%rdx), %xmm0
	movups	16(%rcx,%rdx), %xmm1
	movaps	%xmm0, -32(%rbp)
	movaps	%xmm1, -16(%rbp)
	cmpq	$1, %rax
	jne	LBB0_5
## %bb.1:
	movl	(%rdi), %eax
	cmpl	$4, %eax
	jg	LBB0_5
## %bb.2:
	movl	$0, -32(%rbp)
	cmpl	$2, %eax
	jg	LBB0_5
## %bb.3:
	movq	-8(%rbp), %rcx
	movq	$0, (%rcx)
	movq	_cmd64x_port_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, -16(%rbp)
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	movq	_cmd646_rev1_dma_ops@GOTPCREL(%rip), %rax
	movq	%rax, -24(%rbp)
LBB0_5:
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_ide_pci_init_one
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmd64x_chipsets,8,3            ## @cmd64x_chipsets
	.comm	_cmd64x_port_ops,4,2            ## @cmd64x_port_ops
	.comm	_cmd646_rev1_dma_ops,4,2        ## @cmd646_rev1_dma_ops
	.no_dead_strip	_cmd64x_init_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd64x_init_one
_cmd64x_init_one:                       ; @cmd64x_init_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _cmd64x_chipsets@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cmd64x_chipsets@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x9, x9, x8, lsl #5
	ldp	q1, q0, [x9]
	stp	q1, q0, [sp]
	cmp	x8, #1
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #4
	b.gt	LBB0_5
; %bb.2:
	str	wzr, [sp]
	cmp	w8, #2
	b.gt	LBB0_5
; %bb.3:
	ldr	x9, [sp, #24]
	str	xzr, [x9]
Lloh3:
	adrp	x9, _cmd64x_port_ops@GOTPAGE
Lloh4:
	ldr	x9, [x9, _cmd64x_port_ops@GOTPAGEOFF]
	str	x9, [sp, #16]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _cmd646_rev1_dma_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cmd646_rev1_dma_ops@GOTPAGEOFF]
	str	x8, [sp, #8]
LBB0_5:
	mov	x1, sp
	mov	x2, #0
	bl	_ide_pci_init_one
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cmd64x_chipsets,8,3            ; @cmd64x_chipsets
	.comm	_cmd64x_port_ops,4,2            ; @cmd64x_port_ops
	.comm	_cmd646_rev1_dma_ops,4,2        ; @cmd646_rev1_dma_ops
	.no_dead_strip	_cmd64x_init_one
.subsections_via_symbols
