	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_FindWavChunk                 ## -- Begin function S_FindWavChunk
	.p2align	4, 0x90
_S_FindWavChunk:                        ## @S_FindWavChunk
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movb	$0, -33(%rbp)
	leaq	-37(%rbp), %rdi
	movl	$4, %esi
	movl	%ebx, %edx
	callq	_FS_Read
	xorl	%r12d, %r12d
	cmpl	$4, %eax
	jne	LBB0_4
## %bb.1:
	movl	%ebx, %edi
	callq	_FGetLittleLong
	cmpl	$268435455, %eax                ## imm = 0xFFFFFFF
	ja	LBB0_4
## %bb.2:
	movl	%eax, %r15d
	leaq	-37(%rbp), %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	incl	%r15d
	andl	$-2, %r15d
	movl	%r15d, %r12d
LBB0_4:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_FindWavChunk                 ; -- Begin function S_FindWavChunk
	.p2align	2
_S_FindWavChunk:                        ; @S_FindWavChunk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	strb	wzr, [sp, #15]
	add	x0, sp, #11
	mov	w1, #4
	mov	x2, x20
	bl	_FS_Read
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #4
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_FGetLittleLong
	lsr	w8, w0, #28
	cbz	w8, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	x20, x0
	add	x0, sp, #11
	mov	x1, x19
	bl	_strcmp
	add	w8, w20, #1
	and	w8, w8, #0xfffffffe
	cmp	x0, #0
	csel	w0, wzr, w8, ne
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
