	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv9_read_frame_header
_rv9_read_frame_header:                 ## @rv9_read_frame_header
	.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, %r12
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movq	(%r13), %r14
	movq	_FRAME_HEADER_LEN@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %r15
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_READ_BYTES
	movq	_VC_CONTAINER_ERROR_EOS@GOTPCREL(%rip), %rdx
	cmpl	(%rbx), %eax
	jne	LBB0_9
## %bb.1:
	movl	%eax, 8(%r13)
	movq	(%r13), %rdi
	callq	_BI32
	movl	%eax, 24(%r13)
	movq	(%r13), %rdi
	addq	$16, %rdi
	callq	_BI32
	movq	%rax, 48(%r13)
	movq	(%r13), %rdi
	addq	$32, %rdi
	callq	_BI16
	movq	%rax, 40(%r13)
	movq	(%r13), %rdi
	addq	$40, %rdi
	callq	_BI16
	movq	%rax, 32(%r13)
	movq	(%r13), %rdi
	addq	$64, %rdi
	callq	_BI32
	movl	%eax, 28(%r13)
	leal	(,%rax,8), %edx
	movl	(%rbx), %ecx
	addl	%edx, %ecx
	addl	24(%r13), %ecx
	movl	%ecx, 12(%r13)
	movq	_MAX_NUM_SEGMENTS@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jge	LBB0_2
LBB0_8:
	movl	$-1, 16(%r13)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rdx
	jmp	LBB0_9
LBB0_2:
	leaq	(%r14,%r15,4), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_READ_BYTES
	movl	28(%r13), %ecx
	leal	(,%rcx,8), %edx
	cmpl	%edx, %eax
	movq	_VC_CONTAINER_ERROR_EOS@GOTPCREL(%rip), %rdx
	jne	LBB0_9
## %bb.3:
	addl	%eax, 8(%r13)
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.4:
	xorl	%r15d, %r15d
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_BI32
	movq	%rax, %r14
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_BI32
	cmpq	$1, %r14
	jg	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movslq	28(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jl	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movq	%r12, %rdx
LBB0_9:
	movl	(%rdx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FRAME_HEADER_LEN,4,2           ## @FRAME_HEADER_LEN
	.comm	_VC_CONTAINER_ERROR_EOS,4,2     ## @VC_CONTAINER_ERROR_EOS
	.comm	_MAX_NUM_SEGMENTS,4,2           ## @MAX_NUM_SEGMENTS
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.no_dead_strip	_rv9_read_frame_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv9_read_frame_header
_rv9_read_frame_header:                 ; @rv9_read_frame_header
	.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
	ldr	x8, [x0]
	ldr	x22, [x8]
	ldr	x20, [x22]
Lloh0:
	adrp	x23, _FRAME_HEADER_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FRAME_HEADER_LEN@GOTPAGEOFF]
	ldrsw	x21, [x23]
	mov	x1, x20
	mov	x2, x21
	bl	_READ_BYTES
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.1:
	str	w0, [x22, #8]
	ldr	x0, [x22]
	bl	_BI32
	str	w0, [x22, #24]
	ldr	x8, [x22]
	add	x0, x8, #16
	bl	_BI32
	str	x0, [x22, #48]
	ldr	x8, [x22]
	add	x0, x8, #32
	bl	_BI16
	str	x0, [x22, #40]
	ldr	x8, [x22]
	add	x0, x8, #40
	bl	_BI16
	str	x0, [x22, #32]
	ldr	x8, [x22]
	add	x0, x8, #64
	bl	_BI32
	str	w0, [x22, #28]
	ldr	w8, [x23]
	lsl	w2, w0, #3
	ldr	w9, [x22, #24]
	add	w8, w2, w8
	add	w8, w8, w9
	str	w8, [x22, #12]
Lloh2:
	adrp	x8, _MAX_NUM_SEGMENTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_NUM_SEGMENTS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ge	LBB0_3
LBB0_2:
	mov	w8, #-1
	str	w8, [x22, #16]
Lloh5:
	adrp	x23, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	add	x20, x20, x21, lsl #2
	mov	x0, x19
	mov	x1, x20
	bl	_READ_BYTES
	ldr	w8, [x22, #28]
	cmp	w0, w8, lsl #3
	b.ne	LBB0_8
; %bb.4:
	ldr	w9, [x22, #8]
	add	w9, w9, w0
	str	w9, [x22, #8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.5:
	mov	x24, #0
Lloh7:
	adrp	x23, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh8:
	ldr	x23, [x23, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_BI32
	mov	x21, x0
	add	x19, x20, #16
	mov	x0, x19
	bl	_BI32
	cmp	x21, #1
	b.gt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22, #28]
	add	x20, x19, #16
	cmp	x24, x8
	b.lt	LBB0_6
	b	LBB0_2
LBB0_8:
Lloh9:
	adrp	x23, _VC_CONTAINER_ERROR_EOS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _VC_CONTAINER_ERROR_EOS@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x23]
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FRAME_HEADER_LEN,4,2           ; @FRAME_HEADER_LEN
	.comm	_VC_CONTAINER_ERROR_EOS,4,2     ; @VC_CONTAINER_ERROR_EOS
	.comm	_MAX_NUM_SEGMENTS,4,2           ; @MAX_NUM_SEGMENTS
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_rv9_read_frame_header
.subsections_via_symbols
