	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_pcm_playback_transfer_chunk
_vx_pcm_playback_transfer_chunk:        ## @vx_pcm_playback_transfer_chunk
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rdx, %rsi
	callq	_vx_query_hbuffer_size
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	%r12d, %r14d
	jge	LBB0_4
## %bb.3:
	movq	_IRQ_CONNECT_STREAM_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vx_send_rih
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_snd_printd
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_IRQ_CONNECT_STREAM_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vx_send_rih
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_snd_printd
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_vx_pseudo_dma_write
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_vx_notify_end_of_buffer
	movl	%eax, %r14d
	movq	_IRQ_CONNECT_STREAM_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vx_send_rih_nolock
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_CONNECT_STREAM_NEXT,4,2    ## @IRQ_CONNECT_STREAM_NEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error hbuffer\n"

L_.str.1:                               ## @.str.1
	.asciz	"no enough hbuffer space %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_vx_pcm_playback_transfer_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_pcm_playback_transfer_chunk
_vx_pcm_playback_transfer_chunk:        ; @vx_pcm_playback_transfer_chunk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	mov	x1, x2
	bl	_vx_query_hbuffer_size
	mov	x20, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
	cmp	w20, w22
	b.ge	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _IRQ_CONNECT_STREAM_NEXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_CONNECT_STREAM_NEXT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vx_send_rih
	str	x20, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_snd_printd
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _IRQ_CONNECT_STREAM_NEXT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_CONNECT_STREAM_NEXT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vx_send_rih
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printd
LBB0_4:
	mov	x0, x20
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_spin_lock
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_vx_pseudo_dma_write
	mov	x0, x19
	mov	x1, x21
	bl	_vx_notify_end_of_buffer
	mov	x20, x0
Lloh13:
	adrp	x8, _IRQ_CONNECT_STREAM_NEXT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_CONNECT_STREAM_NEXT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vx_send_rih_nolock
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_CONNECT_STREAM_NEXT,4,2    ; @IRQ_CONNECT_STREAM_NEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error hbuffer\n"

l_.str.1:                               ; @.str.1
	.asciz	"no enough hbuffer space %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_vx_pcm_playback_transfer_chunk
.subsections_via_symbols
