	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alcor_prepare_data
_alcor_prepare_data:                    ## @alcor_prepare_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r15
	movq	24(%rdi), %r14
	movq	%rbx, 16(%rdi)
	movq	$0, 24(%rbx)
	movl	16(%rbx), %ecx
	movl	%ecx, (%rdi)
	movl	12(%rbx), %eax
	movl	%eax, 12(%rdi)
	movl	8(%rbx), %edx
	movl	%edx, 4(%rdi)
	movl	8(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	(%rbx), %rax
	movq	_COOKIE_MAPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_alcor_prepare_sg_miter
LBB0_3:
	movq	_AU6601_DATA_XFER_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_alcor_write8                   ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prepare DATA: sg %i, blocks: %i\n"

	.comm	_COOKIE_MAPPED,8,3              ## @COOKIE_MAPPED
	.comm	_AU6601_DATA_XFER_CTRL,4,2      ## @AU6601_DATA_XFER_CTRL
	.no_dead_strip	_alcor_prepare_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alcor_prepare_data
_alcor_prepare_data:                    ; @alcor_prepare_data
	.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
	ldr	x21, [x1]
	cbz	x21, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x19, [x0, #24]
	str	x21, [x0, #16]
	str	xzr, [x21, #24]
	ldp	w8, w3, [x21, #12]
	ldr	w2, [x21, #8]
	str	w8, [x0, #12]
	stp	w3, w2, [x0]
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _COOKIE_MAPPED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _COOKIE_MAPPED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_alcor_prepare_sg_miter
LBB0_3:
Lloh5:
	adrp	x8, _AU6601_DATA_XFER_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AU6601_DATA_XFER_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #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
	b	_alcor_write8
LBB0_4:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prepare DATA: sg %i, blocks: %i\n"

	.comm	_COOKIE_MAPPED,8,3              ; @COOKIE_MAPPED
	.comm	_AU6601_DATA_XFER_CTRL,4,2      ; @AU6601_DATA_XFER_CTRL
	.no_dead_strip	_alcor_prepare_data
.subsections_via_symbols
