	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function sdl_audio_callback
LCPI0_0:
	.quad	0x412e848000000000              ## double 1.0E+6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_sdl_audio_callback:                    ## @sdl_audio_callback
	.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	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_av_gettime_relative
	movq	_audio_callback_time@GOTPCREL(%rip), %rax
	movsd	%xmm0, (%rax)
	testl	%r12d, %r12d
	jle	LBB0_1
## %bb.2:
	movl	(%r14), %eax
	movq	_SHOW_MODE_VIDEO@GOTPCREL(%rip), %r13
	jmp	LBB0_3
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cltq
	leaq	(%rcx,%rax,4), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %eax
	addl	%ebx, %eax
	movslq	%ebx, %rcx
	leaq	(%r15,%rcx,4), %r15
	movl	%eax, (%r14)
	subl	%ebx, %r12d
	jle	LBB0_17
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %ebx
	cmpl	%ebx, %eax
	jl	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_audio_decode_frame
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	movq	8(%r14), %rax
	cmpq	(%r13), %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	72(%r14), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_update_sample_display
	jmp	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, 72(%r14)
	movq	_SDL_AUDIO_MIN_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %eax
	cltd
	idivl	48(%r14)
	subl	%edx, %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, 4(%r14)
	movl	$0, (%r14)
	xorl	%eax, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	subl	%eax, %ebx
	cmpl	%r12d, %ebx
	cmovgel	%r12d, %ebx
	cmpl	$0, 80(%r14)
	je	LBB0_10
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	cmpl	$0, 80(%r14)
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	72(%r14), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r14), %rcx
	leaq	(%rax,%rcx,4), %rsi
	movq	_AUDIO_S16SYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%r14), %r8
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_SDL_MixAudioFormat
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	72(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r14), %rdx
	movq	_SDL_MIX_MAXVOLUME@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_12
	jmp	LBB0_13
LBB0_1:
	movl	(%r14), %eax
LBB0_17:
	movl	4(%r14), %ecx
	subl	%eax, %ecx
	movl	%ecx, 24(%r14)
	movq	64(%r14), %rdi
	callq	_isnan
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorps	%xmm0, %xmm0
	cvtsi2sdq	64(%r14), %xmm0
	movl	28(%r14), %eax
	addl	%eax, %eax
	addl	24(%r14), %eax
	cvtsi2sd	%eax, %xmm1
	divsd	56(%r14), %xmm1
	leaq	32(%r14), %rbx
	subsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rsi
	movl	40(%r14), %edx
	movq	_audio_callback_time@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	divsd	LCPI0_0(%rip), %xmm0
	movq	%rbx, %rdi
	callq	_set_clock_at
	addq	$36, %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sync_clock_to_slave            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_callback_time,8,3        ## @audio_callback_time
	.comm	_SDL_AUDIO_MIN_BUFFER_SIZE,4,2  ## @SDL_AUDIO_MIN_BUFFER_SIZE
	.comm	_SHOW_MODE_VIDEO,8,3            ## @SHOW_MODE_VIDEO
	.comm	_SDL_MIX_MAXVOLUME,8,3          ## @SDL_MIX_MAXVOLUME
	.comm	_AUDIO_S16SYS,4,2               ## @AUDIO_S16SYS
	.no_dead_strip	_sdl_audio_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_audio_callback
_sdl_audio_callback:                    ; @sdl_audio_callback
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_av_gettime_relative
Lloh0:
	adrp	x23, _audio_callback_time@GOTPAGE
Lloh1:
	ldr	x23, [x23, _audio_callback_time@GOTPAGEOFF]
	str	d0, [x23]
	cmp	w20, #0
	b.le	LBB0_16
; %bb.1:
	ldr	w8, [x19]
Lloh2:
	adrp	x24, _SDL_MIX_MAXVOLUME@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SDL_MIX_MAXVOLUME@GOTPAGEOFF]
Lloh4:
	adrp	x25, _AUDIO_S16SYS@GOTPAGE
Lloh5:
	ldr	x25, [x25, _AUDIO_S16SYS@GOTPAGEOFF]
Lloh6:
	adrp	x26, _SDL_AUDIO_MIN_BUFFER_SIZE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _SDL_AUDIO_MIN_BUFFER_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x27, _SHOW_MODE_VIDEO@GOTPAGE
Lloh9:
	ldr	x27, [x27, _SHOW_MODE_VIDEO@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x9, w8, sxtw #2
	mov	x0, x21
	mov	x2, x22
	bl	_memcpy
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w20, w20, w22
	add	x21, x21, w22, sxtw #2
	ldr	w8, [x19]
	add	w8, w8, w22
	str	w8, [x19]
	cmp	w20, #0
	b.le	LBB0_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x19, #4]
	cmp	w8, w22
	b.lt	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_audio_decode_frame
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x19, #72]
	mov	x0, x19
	mov	x2, x22
	bl	_update_sample_display
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x19, #72]
	ldr	w8, [x26]
	ldr	w9, [x19, #48]
	sdiv	w8, w8, w9
	mul	w22, w8, w9
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	stp	wzr, w22, [x19]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w22, w8
	cmp	w9, w20
	csel	w22, w9, w20, lt
	ldr	w9, [x19, #80]
	cbz	w9, LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	ldr	w8, [x19, #80]
	cbnz	w8, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x9, [x19]
	add	x1, x8, x9, lsl #2
	ldr	w2, [x25]
	ldr	x4, [x19, #16]
	mov	x0, x21
	mov	x3, x22
	bl	_SDL_MixAudioFormat
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #72]
	cbz	x9, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x19, #16]
	ldr	x11, [x24]
	cmp	x10, x11
	b.eq	LBB0_2
	b	LBB0_11
LBB0_16:
	ldr	w8, [x19]
LBB0_17:
	ldr	w9, [x19, #4]
	sub	w8, w9, w8
	str	w8, [x19, #24]
	ldr	x0, [x19, #64]
	bl	_isnan
	cbz	w0, LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldp	d1, d0, [x19, #56]
	scvtf	d0, d0
	ldp	w9, w8, [x19, #24]
	add	w8, w9, w8, lsl #1
	scvtf	d2, w8
	fdiv	d1, d2, d1
	fsub	d0, d0, d1
	fcvtzs	x1, d0
	add	x20, x19, #32
	ldr	w2, [x19, #40]
	ldr	d0, [x23]
	mov	x8, #145685290680320
	movk	x8, #16686, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	mov	x0, x20
	bl	_set_clock_at
	add	x0, x19, #36
	mov	x1, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_sync_clock_to_slave
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_callback_time,8,3        ; @audio_callback_time
	.comm	_SDL_AUDIO_MIN_BUFFER_SIZE,4,2  ; @SDL_AUDIO_MIN_BUFFER_SIZE
	.comm	_SHOW_MODE_VIDEO,8,3            ; @SHOW_MODE_VIDEO
	.comm	_SDL_MIX_MAXVOLUME,8,3          ; @SDL_MIX_MAXVOLUME
	.comm	_AUDIO_S16SYS,4,2               ; @AUDIO_S16SYS
	.no_dead_strip	_sdl_audio_callback
.subsections_via_symbols
