	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aout_thread_n
_aout_thread_n:                         ## @aout_thread_n
	.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
	movq	%rdi, %r14
	movq	(%rsi), %r13
	movq	80(%r13), %rbx
	movq	72(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	56(%r13), %r15
	movq	64(%r13), %r12
	movq	%rbx, %rdi
	callq	_assert
	movq	%r15, %rdi
	callq	_assert
	movq	_SDL_THREAD_PRIORITY_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_SetThreadPriority
	cmpl	$0, 48(%r13)
	jne	LBB0_23
## %bb.1:
	cmpq	$0, 40(%r13)
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SDL_Android_AudioTrack_play
LBB0_3:
	cmpl	$0, 48(%r13)
	jne	LBB0_23
LBB0_4:
	movl	4(%r13), %edi
	callq	_SDL_LockMutex
	cmpl	$0, 48(%r13)
	je	LBB0_5
LBB0_13:
	cmpl	$0, (%r13)
	je	LBB0_15
## %bb.14:
	movl	$0, (%r13)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SDL_Android_AudioTrack_flush
LBB0_15:
	cmpq	$0, 32(%r13)
	je	LBB0_17
## %bb.16:
	movq	$0, 32(%r13)
	movl	24(%r13), %ecx
	movl	28(%r13), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SDL_Android_AudioTrack_set_volume
LBB0_17:
	cmpq	$0, 16(%r13)
	je	LBB0_19
## %bb.18:
	movq	$0, 16(%r13)
	movl	8(%r13), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SDL_Android_AudioTrack_setSpeed
LBB0_19:
	movl	4(%r13), %edi
	callq	_SDL_UnlockMutex
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	cmpl	$0, (%r13)
	je	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SDL_Android_AudioTrack_flush
	movl	$0, (%r13)
LBB0_21:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_SDL_Android_AudioTrack_write
	cmpl	$256, %eax                      ## imm = 0x100
	je	LBB0_3
## %bb.22:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_ALOGW
	jmp	LBB0_3
LBB0_5:
	cmpq	$0, 40(%r13)
	je	LBB0_13
## %bb.6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SDL_Android_AudioTrack_pause
	cmpl	$0, 48(%r13)
	jne	LBB0_13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 40(%r13)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%r13), %esi
	movl	52(%r13), %edi
	movl	$1000, %edx                     ## imm = 0x3E8
	callq	_SDL_CondWaitTimeout
	cmpl	$0, 48(%r13)
	je	LBB0_8
	jmp	LBB0_13
LBB0_23:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SDL_Android_AudioTrack_free
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$0, (%r13)
	je	LBB0_12
## %bb.11:
	movl	$0, (%r13)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SDL_Android_AudioTrack_flush
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SDL_Android_AudioTrack_play
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_SDL_THREAD_PRIORITY_HIGH,4,2   ## @SDL_THREAD_PRIORITY_HIGH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AudioTrack: not all data copied %d/%d"

	.no_dead_strip	_aout_thread_n
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aout_thread_n
_aout_thread_n:                         ; @aout_thread_n
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x24, [x1]
	ldp	x25, x20, [x24, #72]
	ldp	x22, x21, [x24, #56]
	mov	x0, x20
	bl	_assert
	mov	x0, x22
	bl	_assert
Lloh0:
	adrp	x8, _SDL_THREAD_PRIORITY_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDL_THREAD_PRIORITY_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SDL_SetThreadPriority
	ldr	w8, [x24, #48]
	cbz	w8, LBB0_2
LBB0_1:
	mov	x0, x19
	mov	x1, x20
	bl	_SDL_Android_AudioTrack_free
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x24, #40]
	cbnz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_SDL_Android_AudioTrack_play
	ldr	w8, [x24, #48]
	cbnz	w8, LBB0_1
LBB0_4:
Lloh3:
	adrp	x23, l_.str@PAGE
Lloh4:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24, #48]
	cbnz	w8, LBB0_1
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	ldr	w0, [x24, #4]
	bl	_SDL_LockMutex
	ldr	w8, [x24, #48]
	cbz	w8, LBB0_17
LBB0_7:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
	cbz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [x24]
	mov	x0, x19
	mov	x1, x20
	bl	_SDL_Android_AudioTrack_flush
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x24, #32]
	ldp	w3, w2, [x24, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_SDL_Android_AudioTrack_set_volume
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x24, #16]
	ldr	w2, [x24, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_SDL_Android_AudioTrack_setSpeed
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24, #4]
	bl	_SDL_UnlockMutex
	mov	x0, x21
	mov	x1, x22
	mov	w2, #256
	blr	x25
	ldr	w8, [x24]
	cbz	w8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_SDL_Android_AudioTrack_flush
	str	wzr, [x24]
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	w3, #256
	bl	_SDL_Android_AudioTrack_write
	cmp	w0, #256
	b.eq	LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	mov	x0, x23
	mov	w2, #256
	bl	_ALOGW
	b	LBB0_5
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24, #40]
	cbz	x8, LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_SDL_Android_AudioTrack_pause
	ldr	w8, [x24, #48]
	cbnz	w8, LBB0_7
LBB0_19:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24, #40]
	cbz	x8, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	ldr	w0, [x24, #52]
	ldr	w1, [x24, #4]
	mov	w2, #1000
	bl	_SDL_CondWaitTimeout
	ldr	w8, [x24, #48]
	cbz	w8, LBB0_19
	b	LBB0_7
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
	cbz	w8, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [x24]
	mov	x0, x19
	mov	x1, x20
	bl	_SDL_Android_AudioTrack_flush
LBB0_23:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_SDL_Android_AudioTrack_play
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_THREAD_PRIORITY_HIGH,4,2   ; @SDL_THREAD_PRIORITY_HIGH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AudioTrack: not all data copied %d/%d"

	.no_dead_strip	_aout_thread_n
.subsections_via_symbols
