	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IMG_TAPE_SkipToData            ## -- Begin function IMG_TAPE_SkipToData
	.p2align	4, 0x90
_IMG_TAPE_SkipToData:                   ## @IMG_TAPE_SkipToData
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_CassetteFlush
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_2:
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.3:
	movq	8(%r14), %rcx
	leaq	-28(%rbp), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cltd
	idivl	%r8d
	subl	%eax, %ebx
	jle	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	subq	%rcx, %rax
	jle	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	40(%r14), %rdx
	movl	$600, %r8d                      ## imm = 0x258
	movl	$600, %edi                      ## imm = 0x258
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r14), %rdi
	movq	32(%r14), %rsi
	movl	(%rdi,%rsi,4), %edi
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	imull	%ebx, %edi
	movslq	%edi, %rsi
	imulq	$1759218605, %rsi, %rsi         ## imm = 0x68DB8BAD
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$44, %rsi
	addl	%edi, %esi
	movslq	%esi, %rsi
	cmpq	%rsi, %rax
	cmovll	%eax, %esi
	movslq	%esi, %rax
	addq	%rax, %rcx
	imull	$10000, %eax, %eax              ## imm = 0x2710
	movq	%rcx, 8(%r14)
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r14), %rdx
	movq	32(%r14), %rsi
	movl	(%rdx,%rsi,4), %r8d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ReadNextRecord
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, 8(%r14)
	movl	-28(%rbp), %eax
	xorl	%ecx, %ecx
	subl	%eax, %ebx
	jg	LBB0_4
LBB0_11:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_14:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IMG_TAPE_SkipToData            ; -- Begin function IMG_TAPE_SkipToData
	.p2align	2
_IMG_TAPE_SkipToData:                   ; @IMG_TAPE_SkipToData
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_CassetteFlush
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_2:
	cmp	w19, #1
	b.lt	LBB0_15
; %bb.3:
	ldr	x8, [x20, #8]
	mov	w21, #35757
	movk	w21, #26843, lsl #16
	mov	w22, #10000
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldp	x10, x11, [x20, #24]
	ldr	w10, [x10, x11, lsl #2]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mul	w9, w9, w22
	sdiv	w9, w9, w10
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	w19, w19, w9
	cmp	w19, #0
	b.le	LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	subs	x9, x9, x8
	b.le	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x20, #40]
	cbz	x10, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	x11, x12, [x20, #24]
	ldr	w11, [x11, x12, lsl #2]
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #12
	mov	x0, x20
	bl	_ReadNextRecord
	cbz	w0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, #0
	str	xzr, [x20, #8]
	ldr	w9, [sp, #12]
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w11, #600
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	mul	w11, w11, w19
	smull	x11, w11, w21
	lsr	x12, x11, #63
	asr	x11, x11, #44
	add	w11, w11, w12
	cmp	x9, w11, sxtw
	csel	w9, w9, w11, lt
	add	x8, x8, w9, sxtw
	str	x8, [x20, #8]
	cbnz	x10, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w10, #600
	b	LBB0_5
LBB0_15:
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
