	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alcor_trigger_data_transfer
_alcor_trigger_data_transfer:           ## @alcor_trigger_data_transfer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r12), %ebx
	je	LBB0_2
## %bb.1:
	movq	_AU6601_DATA_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	16(%r15), %r14
	movq	8(%r12), %rax
	movq	_COOKIE_MAPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_alcor_data_set_dma
	movq	_AU6601_DATA_DMA_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	$1, (%r15)
	movl	16(%r12), %esi
	shll	$12, %esi
	jmp	LBB0_5
LBB0_4:
	movl	20(%r12), %esi
LBB0_5:
	movq	_AU6601_REG_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_alcor_write32
	movq	_AU6601_DATA_START_XFER@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_AU6601_DATA_XFER_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_alcor_write8                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_DATA_WRITE,4,2             ## @MMC_DATA_WRITE
	.comm	_AU6601_DATA_WRITE,4,2          ## @AU6601_DATA_WRITE
	.comm	_COOKIE_MAPPED,8,3              ## @COOKIE_MAPPED
	.comm	_AU6601_DATA_DMA_MODE,4,2       ## @AU6601_DATA_DMA_MODE
	.comm	_AU6601_REG_BLOCK_SIZE,4,2      ## @AU6601_REG_BLOCK_SIZE
	.comm	_AU6601_DATA_START_XFER,4,2     ## @AU6601_DATA_START_XFER
	.comm	_AU6601_DATA_XFER_CTRL,4,2      ## @AU6601_DATA_XFER_CTRL
	.no_dead_strip	_alcor_trigger_data_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alcor_trigger_data_transfer
_alcor_trigger_data_transfer:           ; @alcor_trigger_data_transfer
	.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
	ldp	x22, x19, [x0, #8]
Lloh0:
	adrp	x8, _MMC_DATA_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_DATA_WRITE@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _AU6601_DATA_WRITE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AU6601_DATA_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w8, w9
	csel	w21, wzr, w10, eq
	ldr	x8, [x22, #8]
Lloh6:
	adrp	x9, _COOKIE_MAPPED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _COOKIE_MAPPED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_alcor_data_set_dma
Lloh9:
	adrp	x8, _AU6601_DATA_DMA_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AU6601_DATA_DMA_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w21, w8, w21
	mov	w8, #1
	str	w8, [x20]
	ldr	w8, [x22, #16]
	lsl	w1, w8, #12
	b	LBB0_3
LBB0_2:
	ldr	w1, [x22, #20]
LBB0_3:
Lloh12:
	adrp	x8, _AU6601_REG_BLOCK_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AU6601_REG_BLOCK_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_alcor_write32
Lloh15:
	adrp	x8, _AU6601_DATA_START_XFER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AU6601_DATA_START_XFER@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w1, w8, w21
Lloh18:
	adrp	x8, _AU6601_DATA_XFER_CTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AU6601_DATA_XFER_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	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
	b	_alcor_write8
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_DATA_WRITE,4,2             ; @MMC_DATA_WRITE
	.comm	_AU6601_DATA_WRITE,4,2          ; @AU6601_DATA_WRITE
	.comm	_COOKIE_MAPPED,8,3              ; @COOKIE_MAPPED
	.comm	_AU6601_DATA_DMA_MODE,4,2       ; @AU6601_DATA_DMA_MODE
	.comm	_AU6601_REG_BLOCK_SIZE,4,2      ; @AU6601_REG_BLOCK_SIZE
	.comm	_AU6601_DATA_START_XFER,4,2     ; @AU6601_DATA_START_XFER
	.comm	_AU6601_DATA_XFER_CTRL,4,2      ; @AU6601_DATA_XFER_CTRL
	.no_dead_strip	_alcor_trigger_data_transfer
.subsections_via_symbols
