	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a10codec_transfer
_a10codec_transfer:                     ## @a10codec_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_PCMDIR_PLAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	40(%rbx), %rdx
	movq	56(%rbx), %rcx
	addq	48(%rbx), %rdx
	jmp	LBB0_3
LBB0_2:
	movq	40(%rbx), %rcx
	movq	56(%rbx), %rdx
	addq	48(%rbx), %rcx
LBB0_3:
	movl	32(%rbx), %edi
	movl	24(%rbx), %r8d
	movl	28(%rbx), %esi
	callq	_SUNXI_DMA_TRANSFER
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	$0, 16(%rbx)
	movq	8(%rbx), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_device_printf                  ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCMDIR_PLAY,8,3                ## @PCMDIR_PLAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA transfer failed: %d\n"

	.no_dead_strip	_a10codec_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a10codec_transfer
_a10codec_transfer:                     ; @a10codec_transfer
	.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	x8, [x0]
Lloh0:
	adrp	x9, _PCMDIR_PLAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCMDIR_PLAY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	x9, x8, [x19, #40]
	add	x2, x9, x8
	ldr	x3, [x19, #56]
	b	LBB0_3
LBB0_2:
	ldp	x8, x2, [x19, #48]
	ldr	x9, [x19, #40]
	add	x3, x9, x8
LBB0_3:
	ldp	w1, w0, [x19, #28]
	ldr	w4, [x19, #24]
	bl	_SUNXI_DMA_TRANSFER
	cbz	w0, LBB0_5
; %bb.4:
	mov	x2, x0
	str	xzr, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_device_printf
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PCMDIR_PLAY,8,3                ; @PCMDIR_PLAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA transfer failed: %d\n"

	.no_dead_strip	_a10codec_transfer
.subsections_via_symbols
