	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PlayOgg                        ## -- Begin function PlayOgg
	.p2align	4, 0x90
_PlayOgg:                               ## @PlayOgg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_StopOgg
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_mem_open
	movq	_private_ogg@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%r14d, 4(%r15)
	movl	$127, 8(%r15)
	xorps	%xmm0, %xmm0
	testl	%ebx, %ebx
	movl	$-1, %eax
	cmovlel	%eax, %ebx
	movups	%xmm0, 24(%r15)
	movl	%ebx, 12(%r15)
	movq	_callbacks@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	16(%r15), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ov_open_callbacks
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	_ogg_player_thread@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_oggplayer_stack@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_STACKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_h_oggplayer@GOTPCREL(%rip), %rdi
	movq	_private_ogg@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdx
	movl	$80, %r9d
	callq	_LWP_CreateThread
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.5:
	movq	_ogg_thread_running@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	16(%rbx), %rdi
	callq	_ov_clear
	movl	$-1, (%rbx)
	jmp	LBB0_6
LBB0_1:
	movl	$-1, (%r15)
	jmp	LBB0_6
LBB0_3:
	movl	(%r15), %edi
	callq	_mem_close
	movl	$-1, (%r15)
	movq	_ogg_thread_running@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_6:
	movl	$-1, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_private_ogg,40,3               ## @private_ogg
	.comm	_callbacks,4,2                  ## @callbacks
	.comm	_ogg_thread_running,8,3         ## @ogg_thread_running
	.comm	_h_oggplayer,4,2                ## @h_oggplayer
	.comm	_ogg_player_thread,8,3          ## @ogg_player_thread
	.comm	_oggplayer_stack,4,2            ## @oggplayer_stack
	.comm	_STACKSIZE,4,2                  ## @STACKSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PlayOgg                        ; -- Begin function PlayOgg
	.p2align	2
_PlayOgg:                               ; @PlayOgg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	bl	_StopOgg
	mov	x0, x22
	mov	x1, x19
	bl	_mem_open
Lloh0:
	adrp	x19, _private_ogg@GOTPAGE
Lloh1:
	ldr	x19, [x19, _private_ogg@GOTPAGEOFF]
	str	w0, [x19]
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	w8, #127
	stp	w21, w8, [x19, #4]
	stp	xzr, xzr, [x19, #24]
	cmp	w20, #0
	csinv	w8, w20, wzr, gt
	str	w8, [x19, #12]
Lloh2:
	adrp	x8, _callbacks@GOTPAGE
Lloh3:
	ldr	x8, [x8, _callbacks@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
	add	x1, x19, #16
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_ov_open_callbacks
	tbnz	x0, #63, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _ogg_player_thread@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ogg_player_thread@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
Lloh8:
	adrp	x8, _oggplayer_stack@GOTPAGE
Lloh9:
	ldr	x8, [x8, _oggplayer_stack@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x8, _STACKSIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STACKSIZE@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
Lloh14:
	adrp	x0, _h_oggplayer@GOTPAGE
Lloh15:
	ldr	x0, [x0, _h_oggplayer@GOTPAGEOFF]
Lloh16:
	adrp	x19, _private_ogg@GOTPAGE
Lloh17:
	ldr	x19, [x19, _private_ogg@GOTPAGEOFF]
	mov	x2, x19
	mov	w5, #80
	bl	_LWP_CreateThread
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	ldr	w0, [x19]
	bl	_mem_close
	mov	w0, #-1
	str	w0, [x19]
Lloh18:
	adrp	x8, _ogg_thread_running@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ogg_thread_running@GOTPAGEOFF]
Lloh20:
	str	xzr, [x8]
	b	LBB0_7
LBB0_5:
Lloh21:
	adrp	x8, _ogg_thread_running@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ogg_thread_running@GOTPAGEOFF]
Lloh23:
	str	xzr, [x8]
	add	x0, x19, #16
	bl	_ov_clear
LBB0_6:
	mov	w0, #-1
	str	w0, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_private_ogg,40,3               ; @private_ogg
	.comm	_callbacks,4,2                  ; @callbacks
	.comm	_ogg_thread_running,8,3         ; @ogg_thread_running
	.comm	_h_oggplayer,4,2                ; @h_oggplayer
	.comm	_ogg_player_thread,8,3          ; @ogg_player_thread
	.comm	_oggplayer_stack,4,2            ; @oggplayer_stack
	.comm	_STACKSIZE,4,2                  ; @STACKSIZE
.subsections_via_symbols
