	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_audio_Init                  ## -- Begin function gx_audio_Init
	.p2align	4, 0x90
_gx_audio_Init:                         ## @gx_audio_Init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	callq	_ASND_Init
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_DEFAULT_PATH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sprintf
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	movl	-32(%rbp), %esi
	movq	_Bg_music_ogg_size@GOTPCREL(%rip), %rbx
	movl	%esi, (%rbx)
	movl	$32, %edi
	callq	_memalign
	movq	_Bg_music_ogg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edx
	movq	%rax, %rdi
	movl	$1, %esi
	movq	%r14, %rcx
	callq	_fread
LBB0_3:
	movq	%r14, %rdi
	callq	_fclose
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/Bg_music.ogg"

	.comm	_DEFAULT_PATH,8,3               ## @DEFAULT_PATH
L_.str.1:                               ## @.str.1
	.asciz	"rb"

	.comm	_Bg_music_ogg_size,4,2          ## @Bg_music_ogg_size
	.comm	_Bg_music_ogg,8,3               ## @Bg_music_ogg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_audio_Init                  ; -- Begin function gx_audio_Init
	.p2align	2
_gx_audio_Init:                         ; @gx_audio_Init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_ASND_Init
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _DEFAULT_PATH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEFAULT_PATH@GOTPAGEOFF]
Lloh10:
	ldr	x2, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_sprintf
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_fopen
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	sub	x1, x29, #32
	mov	x0, x20
	bl	_stat
	ldur	w1, [x29, #-32]
Lloh15:
	adrp	x20, _Bg_music_ogg_size@GOTPAGE
Lloh16:
	ldr	x20, [x20, _Bg_music_ogg_size@GOTPAGEOFF]
	str	w1, [x20]
	mov	w0, #32
	bl	_memalign
Lloh17:
	adrp	x8, _Bg_music_ogg@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Bg_music_ogg@GOTPAGEOFF]
Lloh19:
	str	x0, [x8]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w2, [x20]
	mov	w1, #1
	mov	x3, x19
	bl	_fread
LBB0_3:
	mov	x0, x19
	bl	_fclose
LBB0_4:
	ldur	x8, [x29, #-24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/Bg_music.ogg"

	.comm	_DEFAULT_PATH,8,3               ; @DEFAULT_PATH
l_.str.1:                               ; @.str.1
	.asciz	"rb"

	.comm	_Bg_music_ogg_size,4,2          ; @Bg_music_ogg_size
	.comm	_Bg_music_ogg,8,3               ; @Bg_music_ogg
.subsections_via_symbols
