	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IsTOCValid                     ## -- Begin function IsTOCValid
	.p2align	4, 0x90
_IsTOCValid:                            ## @IsTOCValid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	movl	%r8d, %ecx
	andl	$16777215, %ecx                 ## imm = 0xFFFFFF
	xorl	%eax, %eax
	cmpl	$150, %ecx
	jne	LBB0_16
## %bb.1:
	movl	$2, %ecx
	movl	$16777215, %r9d                 ## imm = 0xFFFFFF
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rdi,%rcx,4), %edx
	cmpl	$-1, %edx
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-8(%rdi,%rcx,4), %esi
	andl	%r9d, %esi
	andl	$16777215, %edx                 ## imm = 0xFFFFFF
	cmpl	%edx, %esi
	jae	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdi,%rcx,4), %edx
	cmpl	$-1, %edx
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-4(%rdi,%rcx,4), %esi
	andl	%r9d, %esi
	andl	$16777215, %edx                 ## imm = 0xFFFFFF
	cmpl	%edx, %esi
	jae	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$2, %rcx
	cmpq	$100, %rcx
	jne	LBB0_2
## %bb.7:
	movl	$99, %ecx
	jmp	LBB0_9
LBB0_8:
	decq	%rcx
LBB0_9:
	movl	396(%rdi), %edx
	movl	%edx, %esi
	andl	$16777215, %esi                 ## imm = 0xFFFFFF
	cmpl	$65536, %esi                    ## imm = 0x10000
	jne	LBB0_16
## %bb.10:
	xorl	%r8d, %edx
	cmpl	$16777215, %edx                 ## imm = 0xFFFFFF
	ja	LBB0_16
## %bb.11:
	movl	400(%rdi), %edx
	testw	%dx, %dx
	je	LBB0_12
LBB0_16:
	popq	%rbp
	retq
LBB0_12:
	movl	%edx, %esi
	shrl	$16, %esi
	movzbl	%sil, %esi
	cmpl	%ecx, %esi
	jne	LBB0_16
## %bb.13:
	andl	$-16777216, %edx                ## imm = 0xFF000000
	movslq	%ecx, %rcx
	movl	-4(%rdi,%rcx,4), %esi
	movl	%esi, %ecx
	andl	$-16777216, %ecx                ## imm = 0xFF000000
	cmpl	%ecx, %edx
	jne	LBB0_16
## %bb.14:
	movl	404(%rdi), %ecx
	movl	%ecx, %edi
	andl	$16777215, %edi                 ## imm = 0xFFFFFF
	andl	$16777215, %esi                 ## imm = 0xFFFFFF
	cmpl	%esi, %edi
	jbe	LBB0_16
## %bb.15:
	andl	$-16777216, %ecx                ## imm = 0xFF000000
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	sete	%al
	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	_IsTOCValid                     ; -- Begin function IsTOCValid
	.p2align	2
_IsTOCValid:                            ; @IsTOCValid
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	and	w9, w8, #0xffffff
	cmp	w9, #150
	b.ne	LBB0_13
; %bb.1:
	mov	x9, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x0, x9, lsl #2
	ldr	w10, [x10, #4]
	cmn	w10, #1
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w11, [x0, x9, lsl #2]
	and	w11, w11, #0xffffff
	and	w10, w10, #0xffffff
	cmp	w11, w10
	b.hs	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x9, #98
	b.ne	LBB0_2
; %bb.5:
	mov	w9, #99
	b	LBB0_7
LBB0_6:
	add	w9, w9, #1
LBB0_7:
	ldr	w10, [x0, #396]
	and	w11, w10, #0xffffff
	eor	w8, w10, w8
	cmp	w11, #16, lsl #12               ; =65536
	lsr	w8, w8, #24
	ccmp	w8, #0, #0, eq
	b.ne	LBB0_13
; %bb.8:
	ldr	w8, [x0, #400]
	tst	w8, #0xffff
	b.ne	LBB0_13
; %bb.9:
	lsr	w10, w8, #16
	cmp	w9, w10, uxtb
	b.ne	LBB0_13
; %bb.10:
	and	w8, w8, #0xff000000
	sub	w9, w9, #1
	ldr	w9, [x0, w9, sxtw #2]
	and	w10, w9, #0xff000000
	cmp	w8, w10
	b.ne	LBB0_13
; %bb.11:
	ldr	w10, [x0, #404]
	and	w11, w10, #0xffffff
	and	w9, w9, #0xffffff
	cmp	w11, w9
	b.ls	LBB0_13
; %bb.12:
	and	w9, w10, #0xff000000
	cmp	w9, w8
	cset	w0, eq
	ret
LBB0_13:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
