	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function SNDWavInit
LCPI0_0:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	44100                           ## 0xac44
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_SNDWavInit:                            ## @SNDWavInit
	.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	$96, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -24(%rbp)
	movq	_wavefilename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
LBB0_1:
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	_wavefp@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	$0, -96(%rbp)
	leaq	L_.str.3(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_wavefp@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r8
	leaq	-24(%rbp), %r14
	leaq	-104(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$24, %ecx
	callq	_ywrite
	leaq	L_.str.4(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	$16, -40(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,2,44100,16]
	movaps	%xmm0, -64(%rbp)
	movabsq	$757632231014404, %rax          ## imm = 0x2B11000000004
	movq	%rax, -48(%rbp)
	movq	(%rbx), %r8
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$32, %ecx
	callq	_ywrite
	leaq	L_.str.5(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	$0, -80(%rbp)
	movq	(%rbx), %r8
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$16, %ecx
	callq	_ywrite
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movl	$-1, %eax
LBB0_5:
	addq	$96, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wavefilename,8,3               ## @wavefilename
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wb"

	.comm	_wavefp,8,3                     ## @wavefp
L_.str.1:                               ## @.str.1
	.asciz	"scsp.wav"

L_.str.2:                               ## @.str.2
	.asciz	"RIFF"

L_.str.3:                               ## @.str.3
	.asciz	"WAVE"

L_.str.4:                               ## @.str.4
	.asciz	"fmt "

L_.str.5:                               ## @.str.5
	.asciz	"data"

	.no_dead_strip	_SNDWavInit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function SNDWavInit
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	44100                           ; 0xac44
	.long	16                              ; 0x10
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	4                               ; 0x4
	.long	176400                          ; 0x2b110
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_SNDWavInit:                            ; @SNDWavInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _wavefilename@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wavefilename@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x19, _wavefp@GOTPAGE
Lloh4:
	ldr	x19, [x19, _wavefp@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_2:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_memcpy
	stur	xzr, [x29, #-32]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #4
	bl	_memcpy
	ldr	x4, [x19]
	add	x0, sp, #8
	sub	x1, x29, #40
	mov	w2, #1
	mov	w3, #24
	bl	_ywrite
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #4
	bl	_memcpy
	mov	w8, #16
	str	w8, [sp, #56]
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp, #32]
Lloh17:
	adrp	x8, lCPI0_1@PAGE
Lloh18:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #48]
	ldr	x4, [x19]
	add	x0, sp, #8
	add	x1, sp, #32
	mov	w2, #1
	mov	w3, #32
	bl	_ywrite
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #4
	bl	_memcpy
	str	xzr, [sp, #16]
	ldr	x4, [x19]
	add	x0, sp, #8
	add	x1, sp, #16
	mov	w2, #1
	mov	w3, #16
	bl	_ywrite
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpAdrp	Lloh15, Lloh17
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_wavefilename,8,3               ; @wavefilename
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wb"

	.comm	_wavefp,8,3                     ; @wavefp
l_.str.1:                               ; @.str.1
	.asciz	"scsp.wav"

l_.str.2:                               ; @.str.2
	.asciz	"RIFF"

l_.str.3:                               ; @.str.3
	.asciz	"WAVE"

l_.str.4:                               ; @.str.4
	.asciz	"fmt "

l_.str.5:                               ; @.str.5
	.asciz	"data"

	.no_dead_strip	_SNDWavInit
.subsections_via_symbols
