	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aout_open_audio_n
_aout_open_audio_n:                     ## @aout_open_audio_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	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_assert
	movq	(%r15), %r13
	movups	(%rbx), %xmm0
	movups	%xmm0, 48(%r13)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SDL_Android_AudioTrack_new_from_sdl_spec
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_SDL_Android_AudioTrack_get_min_buffer_size
	movq	%rax, (%r13)
	testq	%rax, %rax
	jle	LBB0_3
## %bb.4:
	movq	%rax, %rdi
	callq	_malloc
	movl	%eax, 44(%r13)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	16(%r13), %rdi
	movq	%r12, %rsi
	callq	_SDL_Android_AudioTrack_get_target_spec
	movl	(%r12), %edx
	movl	8(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_SDLTRACE
LBB0_8:
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	callq	_SDL_Android_AudioTrack_getAudioSessionId
	movl	%eax, 40(%r13)
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	callq	_ALOGI
	movl	$1, 8(%r13)
	movq	$0, 32(%r13)
	leaq	28(%r13), %rdi
	movq	_aout_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rcx
	movq	%r15, %rdx
	callq	_SDL_CreateThreadEx
	movl	%eax, %ecx
	movl	%eax, 24(%r13)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_12
## %bb.9:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_ALOGE
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
LBB0_10:
	callq	_ALOGE
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	callq	_SDL_Android_AudioTrack_free
	movq	$0, 16(%r13)
LBB0_11:
	movl	$-1, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aout_open_audio_n: failed to new AudioTrcak()"

L_.str.1:                               ## @.str.1
	.asciz	"aout_open_audio_n: failed to getMinBufferSize()"

L_.str.2:                               ## @.str.2
	.asciz	"aout_open_audio_n: failed to allocate buffer"

L_.str.3:                               ## @.str.3
	.asciz	"audio target format fmt:0x%x, channel:0x%x"

L_.str.4:                               ## @.str.4
	.asciz	"audio_session_id = %d\n"

	.comm	_aout_thread,4,2                ## @aout_thread
L_.str.5:                               ## @.str.5
	.asciz	"ff_aout_android"

L_.str.6:                               ## @.str.6
	.asciz	"aout_open_audio_n: failed to create audio thread"

	.no_dead_strip	_aout_open_audio_n
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aout_open_audio_n
_aout_open_audio_n:                     ; @aout_open_audio_n
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_assert
	ldr	x23, [x20]
	ldr	q0, [x22]
	str	q0, [x23, #48]
	mov	x0, x19
	mov	x1, x22
	bl	_SDL_Android_AudioTrack_new_from_sdl_spec
	str	x0, [x23, #16]
	cbz	x0, LBB0_7
; %bb.1:
	bl	_SDL_Android_AudioTrack_get_min_buffer_size
	str	x0, [x23]
	cmp	x0, #0
	b.le	LBB0_8
; %bb.2:
	bl	_malloc
	str	w0, [x23, #44]
	cbz	w0, LBB0_9
; %bb.3:
	cbz	x21, LBB0_5
; %bb.4:
	ldr	x0, [x23, #16]
	mov	x1, x21
	bl	_SDL_Android_AudioTrack_get_target_spec
	ldr	w1, [x21, #8]
	ldr	w2, [x21]
Lloh0:
	adrp	x0, l_.str.3@PAGE
Lloh1:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_SDLTRACE
LBB0_5:
	ldr	x1, [x23, #16]
	mov	x0, x19
	bl	_SDL_Android_AudioTrack_getAudioSessionId
	mov	x1, x0
	str	w0, [x23, #40]
Lloh2:
	adrp	x0, l_.str.4@PAGE
Lloh3:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ALOGI
	mov	w8, #1
	str	w8, [x23, #8]
	str	xzr, [x23, #32]
	add	x0, x23, #28
Lloh4:
	adrp	x8, _aout_thread@GOTPAGE
Lloh5:
	ldr	x8, [x8, _aout_thread@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x3, l_.str.5@PAGE
Lloh8:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x2, x20
	bl	_SDL_CreateThreadEx
	str	w0, [x23, #24]
	cbz	w0, LBB0_10
; %bb.6:
	mov	w0, #0
	b	LBB0_13
LBB0_7:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ALOGE
	b	LBB0_12
LBB0_8:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_11:
	bl	_ALOGE
	ldr	x1, [x23, #16]
	mov	x0, x19
	bl	_SDL_Android_AudioTrack_free
	str	xzr, [x23, #16]
LBB0_12:
	mov	w0, #-1
LBB0_13:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aout_open_audio_n: failed to new AudioTrcak()"

l_.str.1:                               ; @.str.1
	.asciz	"aout_open_audio_n: failed to getMinBufferSize()"

l_.str.2:                               ; @.str.2
	.asciz	"aout_open_audio_n: failed to allocate buffer"

l_.str.3:                               ; @.str.3
	.asciz	"audio target format fmt:0x%x, channel:0x%x"

l_.str.4:                               ; @.str.4
	.asciz	"audio_session_id = %d\n"

	.comm	_aout_thread,4,2                ; @aout_thread
l_.str.5:                               ; @.str.5
	.asciz	"ff_aout_android"

l_.str.6:                               ; @.str.6
	.asciz	"aout_open_audio_n: failed to create audio thread"

	.no_dead_strip	_aout_open_audio_n
.subsections_via_symbols
