	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alim15x3_init_one
_alim15x3_init_one:                     ## @alim15x3_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	$48, %rsp
	movq	_ali15x3_chipset@GOTPCREL(%rip), %rax
	movq	32(%rax), %rcx
	movq	%rcx, -16(%rbp)
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movaps	%xmm1, -32(%rbp)
	movaps	%xmm0, -48(%rbp)
	movl	(%rdi), %ecx
	movl	(%rsi), %eax
	cmpl	$196, %ecx
	jg	LBB0_6
## %bb.1:
	movq	_IDE_HFLAG_NO_LBA48_DMA@GOTPCREL(%rip), %rsi
	movl	-48(%rbp), %edx
	orl	(%rsi), %edx
	movl	%edx, -48(%rbp)
	cmpl	$32, %ecx
	jl	LBB0_12
## %bb.2:
	jne	LBB0_4
## %bb.3:
	movq	_IDE_HFLAG_NO_ATAPI_DMA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, -48(%rbp)
	movq	_ATA_UDMA2@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_12:
	movq	_IDE_HFLAG_NO_DMA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, -48(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -40(%rbp)
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_14
LBB0_4:
	cmpl	$194, %ecx
	jae	LBB0_6
## %bb.5:
	movq	_ATA_UDMA2@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_6:
	movl	%ecx, %edx
	andl	$-2, %edx
	cmpl	$194, %edx
	jne	LBB0_8
## %bb.7:
	movq	_ATA_UDMA4@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_8:
	cmpl	$196, %ecx
	jne	LBB0_9
## %bb.10:
	movq	_ATA_UDMA5@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_9:
	movq	_ATA_UDMA6@GOTPCREL(%rip), %rcx
LBB0_11:
	movl	(%rcx), %ecx
	movl	%ecx, -16(%rbp)
	movq	_ali_dma_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, -24(%rbp)
	testl	%eax, %eax
	jne	LBB0_15
LBB0_14:
	movq	_IDE_HFLAG_CLEAR_SIMPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -48(%rbp)
LBB0_15:
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_ide_pci_init_one
	addq	$48, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ali15x3_chipset,40,3           ## @ali15x3_chipset
	.comm	_IDE_HFLAG_NO_LBA48_DMA,4,2     ## @IDE_HFLAG_NO_LBA48_DMA
	.comm	_IDE_HFLAG_NO_ATAPI_DMA,4,2     ## @IDE_HFLAG_NO_ATAPI_DMA
	.comm	_ATA_UDMA2,4,2                  ## @ATA_UDMA2
	.comm	_ATA_UDMA4,4,2                  ## @ATA_UDMA4
	.comm	_ATA_UDMA5,4,2                  ## @ATA_UDMA5
	.comm	_ATA_UDMA6,4,2                  ## @ATA_UDMA6
	.comm	_ali_dma_ops,4,2                ## @ali_dma_ops
	.comm	_IDE_HFLAG_NO_DMA,4,2           ## @IDE_HFLAG_NO_DMA
	.comm	_IDE_HFLAG_CLEAR_SIMPLEX,4,2    ## @IDE_HFLAG_CLEAR_SIMPLEX
	.no_dead_strip	_alim15x3_init_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alim15x3_init_one
_alim15x3_init_one:                     ; @alim15x3_init_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _ali15x3_chipset@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ali15x3_chipset@GOTPAGEOFF]
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
	ldr	x8, [x8, #32]
	str	x8, [sp, #32]
	ldr	w9, [x0]
	ldr	w8, [x1]
	cmp	w9, #196
	b.gt	LBB0_7
; %bb.1:
Lloh2:
	adrp	x10, _IDE_HFLAG_NO_LBA48_DMA@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IDE_HFLAG_NO_LBA48_DMA@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	ldr	w11, [sp]
	orr	w10, w11, w10
	str	w10, [sp]
	cmp	w9, #32
	b.lt	LBB0_4
; %bb.2:
	b.ne	LBB0_5
; %bb.3:
Lloh5:
	adrp	x9, _IDE_HFLAG_NO_ATAPI_DMA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IDE_HFLAG_NO_ATAPI_DMA@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w9, w10, w9
	str	w9, [sp]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x9, _IDE_HFLAG_NO_DMA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IDE_HFLAG_NO_DMA@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w9, w10, w9
	str	w9, [sp]
	stp	xzr, xzr, [sp, #8]
	cbnz	w8, LBB0_10
	b	LBB0_9
LBB0_5:
	cmp	w9, #194
	b.hs	LBB0_7
LBB0_6:
Lloh11:
	adrp	x9, _ATA_UDMA2@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ATA_UDMA2@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	and	w10, w9, #0xfffffffe
Lloh13:
	adrp	x11, _ATA_UDMA4@GOTPAGE
Lloh14:
	ldr	x11, [x11, _ATA_UDMA4@GOTPAGEOFF]
Lloh15:
	adrp	x12, _ATA_UDMA6@GOTPAGE
Lloh16:
	ldr	x12, [x12, _ATA_UDMA6@GOTPAGEOFF]
Lloh17:
	adrp	x13, _ATA_UDMA5@GOTPAGE
Lloh18:
	ldr	x13, [x13, _ATA_UDMA5@GOTPAGEOFF]
	cmp	w9, #196
	csel	x9, x13, x12, eq
	cmp	w10, #194
	csel	x9, x11, x9, eq
LBB0_8:
	ldr	w9, [x9]
	str	w9, [sp, #32]
Lloh19:
	adrp	x9, _ali_dma_ops@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ali_dma_ops@GOTPAGEOFF]
	str	x9, [sp, #24]
	cbnz	w8, LBB0_10
LBB0_9:
Lloh21:
	adrp	x8, _IDE_HFLAG_CLEAR_SIMPLEX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IDE_HFLAG_CLEAR_SIMPLEX@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [sp]
	orr	w8, w9, w8
	str	w8, [sp]
LBB0_10:
	mov	x1, sp
	mov	x2, #0
	bl	_ide_pci_init_one
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ali15x3_chipset,40,3           ; @ali15x3_chipset
	.comm	_IDE_HFLAG_NO_LBA48_DMA,4,2     ; @IDE_HFLAG_NO_LBA48_DMA
	.comm	_IDE_HFLAG_NO_ATAPI_DMA,4,2     ; @IDE_HFLAG_NO_ATAPI_DMA
	.comm	_ATA_UDMA2,4,2                  ; @ATA_UDMA2
	.comm	_ATA_UDMA4,4,2                  ; @ATA_UDMA4
	.comm	_ATA_UDMA5,4,2                  ; @ATA_UDMA5
	.comm	_ATA_UDMA6,4,2                  ; @ATA_UDMA6
	.comm	_ali_dma_ops,4,2                ; @ali_dma_ops
	.comm	_IDE_HFLAG_NO_DMA,4,2           ; @IDE_HFLAG_NO_DMA
	.comm	_IDE_HFLAG_CLEAR_SIMPLEX,4,2    ; @IDE_HFLAG_CLEAR_SIMPLEX
	.no_dead_strip	_alim15x3_init_one
.subsections_via_symbols
