	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alcor_finish_data
_alcor_finish_data:                     ## @alcor_finish_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rdi)
	cmpq	$0, 24(%rbx)
	je	LBB0_1
## %bb.6:
	movl	$0, (%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.4:
	addq	$16, %rbx
	movq	_AU6601_RESET_CMD@GOTPCREL(%rip), %rax
	movq	_AU6601_RESET_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_alcor_reset
LBB0_5:
	movq	%r14, %rdi
	callq	_alcor_unmask_sd_irqs
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_alcor_send_cmd                 ## TAILCALL
LBB0_1:
	movl	8(%rbx), %eax
	imull	4(%rbx), %eax
	movl	%eax, (%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.2:
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
LBB0_7:
	movq	%r14, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_alcor_request_complete         ## TAILCALL
LBB0_3:
	addq	$16, %rbx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_AU6601_RESET_CMD,4,2           ## @AU6601_RESET_CMD
	.comm	_AU6601_RESET_DATA,4,2          ## @AU6601_RESET_DATA
	.no_dead_strip	_alcor_finish_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alcor_finish_data
_alcor_finish_data:                     ; @alcor_finish_data
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #16]
	stp	xzr, xzr, [x0, #8]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_3
; %bb.1:
	str	wzr, [x20]
	ldr	x8, [x20, #16]!
	cbz	x8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _AU6601_RESET_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AU6601_RESET_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AU6601_RESET_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AU6601_RESET_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_alcor_reset
	b	LBB0_6
LBB0_3:
	ldp	w8, w9, [x20, #4]
	mul	w8, w9, w8
	str	w8, [x20]
	ldr	x8, [x20, #16]!
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cbz	w8, LBB0_6
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_alcor_request_complete
LBB0_6:
	mov	x0, x19
	bl	_alcor_unmask_sd_irqs
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_alcor_send_cmd
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AU6601_RESET_CMD,4,2           ; @AU6601_RESET_CMD
	.comm	_AU6601_RESET_DATA,4,2          ; @AU6601_RESET_DATA
	.no_dead_strip	_alcor_finish_data
.subsections_via_symbols
