	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FindNextChunk
_FindNextChunk:                         ## @FindNextChunk
	.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	%rdi, %r15
	movq	_last_chunk@GOTPCREL(%rip), %r14
	movq	_iff_end@GOTPCREL(%rip), %r12
	movq	_data_p@GOTPCREL(%rip), %rbx
	movq	_iff_chunk_len@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	cmpq	(%r12), %rax
	jae	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$16, %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	callq	_GetLittleLong
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, (%r13)
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rcx
	leaq	-32(%rcx), %rdi
	movq	%rdi, (%rbx)
	incl	%eax
	andl	$-2, %eax
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, (%r14)
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_1
	jmp	LBB0_5
LBB0_4:
	movq	$0, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_last_chunk,8,3                 ## @last_chunk
	.comm	_data_p,8,3                     ## @data_p
	.comm	_iff_end,8,3                    ## @iff_end
	.comm	_iff_chunk_len,4,2              ## @iff_chunk_len
	.no_dead_strip	_FindNextChunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FindNextChunk
_FindNextChunk:                         ; @FindNextChunk
	.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	x19, x0
Lloh0:
	adrp	x21, _last_chunk@GOTPAGE
Lloh1:
	ldr	x21, [x21, _last_chunk@GOTPAGEOFF]
Lloh2:
	adrp	x22, _iff_end@GOTPAGE
Lloh3:
	ldr	x22, [x22, _iff_end@GOTPAGEOFF]
Lloh4:
	adrp	x20, _data_p@GOTPAGE
Lloh5:
	ldr	x20, [x20, _data_p@GOTPAGEOFF]
Lloh6:
	adrp	x23, _iff_chunk_len@GOTPAGE
Lloh7:
	ldr	x23, [x23, _iff_chunk_len@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x8, #16
	str	x8, [x20]
	bl	_GetLittleLong
	str	w0, [x23]
	tbnz	w0, #31, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x20]
	sub	x8, x9, #32
	str	x8, [x20]
	add	w10, w0, #1
	and	w10, w10, #0xfffffffe
	add	x9, x9, w10, uxtw #2
	str	x9, [x21]
	mov	x0, x8
	mov	x1, x19
	mov	w2, #4
	bl	_strncmp
	cbnz	w0, LBB0_1
	b	LBB0_5
LBB0_4:
	str	xzr, [x20]
LBB0_5:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_last_chunk,8,3                 ; @last_chunk
	.comm	_data_p,8,3                     ; @data_p
	.comm	_iff_end,8,3                    ; @iff_end
	.comm	_iff_chunk_len,4,2              ; @iff_chunk_len
	.no_dead_strip	_FindNextChunk
.subsections_via_symbols
