	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SNDAudioTrackUpdateAudio
_SNDAudioTrackUpdateAudio:              ## @SNDAudioTrackUpdateAudio
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	shll	$3, %ebx
	movq	_stereodata16@GOTPCREL(%rip), %r15
	movq	_soundoffset@GOTPCREL(%rip), %r14
	movslq	(%r14), %rdx
	shlq	$2, %rdx
	addq	(%r15), %rdx
	movl	%ebx, %ecx
	sarl	$3, %ecx
	callq	_sdlConvert32uto16s
	addl	(%r14), %ebx
	movl	%ebx, (%r14)
	movq	_mbufferSizeInBytes@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_7
## %bb.1:
	movq	_muted@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_6
## %bb.2:
	movq	_yvm@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %rax
	movq	_JNI_VERSION_1_6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-32(%rbp), %rsi
	callq	*(%rax)
	movq	_JNI_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	-32(%rbp), %rdi
	movq	(%rdi), %rax
	movl	(%r14), %esi
	callq	*16(%rax)
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-32(%rbp), %rdi
	movq	(%rdi), %rax
	movl	(%r14), %ecx
	movq	(%r15), %r8
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	*8(%rax)
LBB0_5:
	movq	-32(%rbp), %rdi
	movq	(%rdi), %r10
	movq	_gtrack@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_cAudioTrack@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_mWrite@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r14), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	*(%r10)
LBB0_6:
	movl	$0, (%r14)
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stereodata16,8,3               ## @stereodata16
	.comm	_soundoffset,4,2                ## @soundoffset
	.comm	_mbufferSizeInBytes,4,2         ## @mbufferSizeInBytes
	.comm	_muted,4,2                      ## @muted
	.comm	_yvm,8,3                        ## @yvm
	.comm	_JNI_VERSION_1_6,4,2            ## @JNI_VERSION_1_6
	.comm	_JNI_OK,8,3                     ## @JNI_OK
	.comm	_gtrack,4,2                     ## @gtrack
	.comm	_cAudioTrack,4,2                ## @cAudioTrack
	.comm	_mWrite,4,2                     ## @mWrite
	.no_dead_strip	_SNDAudioTrackUpdateAudio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SNDAudioTrackUpdateAudio
_SNDAudioTrackUpdateAudio:              ; @SNDAudioTrackUpdateAudio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	lsl	w19, w2, #3
Lloh0:
	adrp	x21, _stereodata16@GOTPAGE
Lloh1:
	ldr	x21, [x21, _stereodata16@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x20, _soundoffset@GOTPAGE
Lloh3:
	ldr	x20, [x20, _soundoffset@GOTPAGEOFF]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #2
	sbfx	w3, w2, #0, #29
	mov	x2, x8
	bl	_sdlConvert32uto16s
	ldr	w8, [x20]
Lloh4:
	adrp	x9, _mbufferSizeInBytes@GOTPAGE
Lloh5:
	ldr	x9, [x9, _mbufferSizeInBytes@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	add	w8, w8, w19
	cmp	w8, w9
	str	w8, [x20]
	b.le	LBB0_7
; %bb.1:
Lloh7:
	adrp	x8, _muted@GOTPAGE
Lloh8:
	ldr	x8, [x8, _muted@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cbnz	w8, LBB0_6
; %bb.2:
Lloh10:
	adrp	x8, _yvm@GOTPAGE
Lloh11:
	ldr	x8, [x8, _yvm@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _JNI_VERSION_1_6@GOTPAGE
Lloh14:
	ldr	x9, [x9, _JNI_VERSION_1_6@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x9]
	add	x1, sp, #8
	blr	x8
Lloh16:
	adrp	x8, _JNI_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _JNI_OK@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	ldr	x8, [x8, #16]
	ldr	w1, [x20]
	blr	x8
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	ldr	w3, [x20]
	ldr	x4, [x21]
	mov	x1, x19
	mov	w2, #0
	blr	x8
LBB0_5:
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _gtrack@GOTPAGE
Lloh20:
	ldr	x9, [x9, _gtrack@GOTPAGEOFF]
Lloh21:
	adrp	x10, _cAudioTrack@GOTPAGE
Lloh22:
	ldr	x10, [x10, _cAudioTrack@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x9]
Lloh24:
	ldr	w2, [x10]
Lloh25:
	adrp	x9, _mWrite@GOTPAGE
Lloh26:
	ldr	x9, [x9, _mWrite@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x9]
	ldr	w6, [x20]
	mov	x4, x19
	mov	w5, #0
	blr	x8
LBB0_6:
	str	wzr, [x20]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_stereodata16,8,3               ; @stereodata16
	.comm	_soundoffset,4,2                ; @soundoffset
	.comm	_mbufferSizeInBytes,4,2         ; @mbufferSizeInBytes
	.comm	_muted,4,2                      ; @muted
	.comm	_yvm,8,3                        ; @yvm
	.comm	_JNI_VERSION_1_6,4,2            ; @JNI_VERSION_1_6
	.comm	_JNI_OK,8,3                     ; @JNI_OK
	.comm	_gtrack,4,2                     ; @gtrack
	.comm	_cAudioTrack,4,2                ; @cAudioTrack
	.comm	_mWrite,4,2                     ; @mWrite
	.no_dead_strip	_SNDAudioTrackUpdateAudio
.subsections_via_symbols
