	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a10hdmiaudio_transfer
_a10hdmiaudio_transfer:                 ## @a10hdmiaudio_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
	movl	44(%rdi), %edi
	movq	24(%rbx), %rdx
	addq	32(%rbx), %rdx
	movl	40(%rbx), %esi
	movq	_TX_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	16(%rbx), %r8d
	callq	_SUNXI_DMA_TRANSFER
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	$0, 8(%rbx)
	movq	(%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_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_FIFO,4,2                    ## @TX_FIFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA transfer failed: %d\n"

	.no_dead_strip	_a10hdmiaudio_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a10hdmiaudio_transfer
_a10hdmiaudio_transfer:                 ; @a10hdmiaudio_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	w0, [x0, #44]
	ldr	w1, [x19, #40]
	ldp	x9, x8, [x19, #24]
	add	x2, x9, x8
Lloh0:
	adrp	x8, _TX_FIFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_FIFO@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	ldr	w4, [x19, #16]
	bl	_SUNXI_DMA_TRANSFER
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	str	xzr, [x19, #8]
	ldr	x8, [x19]
	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_2:
	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	_TX_FIFO,4,2                    ; @TX_FIFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA transfer failed: %d\n"

	.no_dead_strip	_a10hdmiaudio_transfer
.subsections_via_symbols
