	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_bundle
_read_bundle:                           ## @read_bundle
	.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	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_BINK_SRC_COLORS@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_18
## %bb.1:
	movq	16(%r15), %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.2:
	movq	16(%r15), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.3:
	movq	16(%r15), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.4:
	movq	16(%r15), %rsi
	addq	$12, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.5:
	movq	16(%r15), %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.6:
	movq	16(%r15), %rsi
	addq	$20, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.7:
	movq	16(%r15), %rsi
	addq	$24, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.8:
	movq	16(%r15), %rsi
	addq	$28, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.9:
	movq	16(%r15), %rsi
	addq	$32, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.10:
	movq	16(%r15), %rsi
	addq	$36, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.11:
	movq	16(%r15), %rsi
	addq	$40, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.12:
	movq	16(%r15), %rsi
	addq	$44, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.13:
	movq	16(%r15), %rsi
	addq	$48, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.14:
	movq	16(%r15), %rsi
	addq	$52, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.15:
	movq	16(%r15), %rsi
	addq	$56, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.16:
	movq	16(%r15), %rsi
	addq	$60, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	js	LBB0_23
## %bb.17:
	movq	$0, 8(%r15)
LBB0_18:
	movq	_BINK_SRC_INTRA_DC@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_20
## %bb.19:
	movq	_BINK_SRC_INTER_DC@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_20
## %bb.21:
	movq	(%r15), %rax
	movslq	%ebx, %rbx
	movq	%rbx, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$12, %rsi
	movq	%r14, %rdi
	callq	_read_tree
	testl	%eax, %eax
	jns	LBB0_22
	jmp	LBB0_23
LBB0_20:
	movslq	%ebx, %rbx
LBB0_22:
	movq	(%r15), %rax
	shlq	$4, %rbx
	movl	(%rax,%rbx), %ecx
	movl	%ecx, 4(%rax,%rbx)
	movl	%ecx, 8(%rax,%rbx)
	xorl	%eax, %eax
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BINK_SRC_COLORS,4,2            ## @BINK_SRC_COLORS
	.comm	_BINK_SRC_INTRA_DC,4,2          ## @BINK_SRC_INTRA_DC
	.comm	_BINK_SRC_INTER_DC,4,2          ## @BINK_SRC_INTER_DC
	.no_dead_strip	_read_bundle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_bundle
_read_bundle:                           ; @read_bundle
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _BINK_SRC_COLORS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BINK_SRC_COLORS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_18
; %bb.1:
	ldr	x1, [x19, #16]
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.2:
	ldr	x8, [x19, #16]
	add	x1, x8, #4
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.3:
	ldr	x8, [x19, #16]
	add	x1, x8, #8
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.4:
	ldr	x8, [x19, #16]
	add	x1, x8, #12
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.5:
	ldr	x8, [x19, #16]
	add	x1, x8, #16
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.6:
	ldr	x8, [x19, #16]
	add	x1, x8, #20
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.7:
	ldr	x8, [x19, #16]
	add	x1, x8, #24
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.8:
	ldr	x8, [x19, #16]
	add	x1, x8, #28
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.9:
	ldr	x8, [x19, #16]
	add	x1, x8, #32
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.10:
	ldr	x8, [x19, #16]
	add	x1, x8, #36
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.11:
	ldr	x8, [x19, #16]
	add	x1, x8, #40
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.12:
	ldr	x8, [x19, #16]
	add	x1, x8, #44
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.13:
	ldr	x8, [x19, #16]
	add	x1, x8, #48
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.14:
	ldr	x8, [x19, #16]
	add	x1, x8, #52
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.15:
	ldr	x8, [x19, #16]
	add	x1, x8, #56
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.16:
	ldr	x8, [x19, #16]
	add	x1, x8, #60
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.17:
	str	xzr, [x19, #8]
LBB0_18:
Lloh3:
	adrp	x8, _BINK_SRC_INTRA_DC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BINK_SRC_INTRA_DC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _BINK_SRC_INTER_DC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BINK_SRC_INTER_DC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	b.eq	LBB0_21
; %bb.19:
	ldr	x8, [x19]
	add	x8, x8, w20, sxtw #4
	add	x1, x8, #12
	mov	x0, x21
	bl	_read_tree
	tbnz	w0, #31, LBB0_22
; %bb.20:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
LBB0_21:
	sxtw	x8, w20
	mov	w0, #0
	ldr	x9, [x19]
	add	x8, x9, x8, lsl #4
	ldr	w9, [x8]
	stp	w9, w9, [x8, #4]
LBB0_22:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BINK_SRC_COLORS,4,2            ; @BINK_SRC_COLORS
	.comm	_BINK_SRC_INTRA_DC,4,2          ; @BINK_SRC_INTRA_DC
	.comm	_BINK_SRC_INTER_DC,4,2          ; @BINK_SRC_INTER_DC
	.no_dead_strip	_read_bundle
.subsections_via_symbols
