	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icside_dma_init
_icside_dma_init:                       ## @icside_dma_init
	.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	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	16(%rdi), %r14
	movq	_ATA_MAX_DEVICES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	8(%r14), %rdx
	movq	(%rdx), %rcx
	movq	8(%rdx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$480, (%rcx,%rsi,4)             ## imm = 0x1E0
	movl	$480, (%rdx,%rsi,4)             ## imm = 0x1E0
	incq	%rsi
	movslq	(%rax), %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_2
LBB0_3:
	movq	(%r15), %rdi
	movq	_NO_DMA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_6
## %bb.4:
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_request_dma
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movq	_ATA_MWDMA2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_MAX_DEVICES,4,2            ## @ATA_MAX_DEVICES
	.comm	_NO_DMA,8,3                     ## @NO_DMA
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
	.comm	_ATA_MWDMA2,4,2                 ## @ATA_MWDMA2
	.no_dead_strip	_icside_dma_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icside_dma_init
_icside_dma_init:                       ; @icside_dma_init
	.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
	mov	x19, x0
	ldp	x21, x20, [x0, #8]
Lloh0:
	adrp	x8, _ATA_MAX_DEVICES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_MAX_DEVICES@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x11, [x20, #8]
	ldp	x10, x11, [x11]
	mov	w12, #480
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x13, x9, #2
	str	w12, [x10, x13]
	str	w12, [x11, x13]
	add	x9, x9, #1
	ldrsw	x13, [x8]
	cmp	x9, x13
	b.lt	LBB0_2
LBB0_3:
	ldr	x0, [x21]
Lloh2:
	adrp	x8, _NO_DMA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NO_DMA@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_request_dma
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x8, [x21]
	str	x8, [x20]
Lloh8:
	adrp	x8, _ATA_MWDMA2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATA_MWDMA2@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_6:
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_MAX_DEVICES,4,2            ; @ATA_MAX_DEVICES
	.comm	_NO_DMA,8,3                     ; @NO_DMA
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
	.comm	_ATA_MWDMA2,4,2                 ; @ATA_MWDMA2
	.no_dead_strip	_icside_dma_init
.subsections_via_symbols
