	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxv_decompress_cocg
_dxv_decompress_cocg:                   ## @dxv_decompress_cocg
	.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
	movl	$8312, %eax                     ## imm = 0x2078
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -8304(%rbp)                ## 8-byte Spill
	movl	%ecx, -8248(%rbp)               ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-2096(%rbp), %rdi
	movl	$2048, %esi                     ## imm = 0x800
	callq	___bzero
	leaq	-4144(%rbp), %rdi
	movl	$2048, %esi                     ## imm = 0x800
	callq	___bzero
	leaq	-6192(%rbp), %rdi
	movl	$2048, %esi                     ## imm = 0x800
	callq	___bzero
	leaq	-8240(%rbp), %rdi
	movl	$2048, %esi                     ## imm = 0x800
	callq	___bzero
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%rax, -8312(%rbp)               ## 8-byte Spill
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%rax, -8296(%rbp)               ## 8-byte Spill
	movq	%r15, %rdi
	callq	_bytestream2_tell
	movl	%eax, -8244(%rbp)               ## 4-byte Spill
	movl	$0, -8272(%rbp)
	movl	$0, -8268(%rbp)
	movl	$0, -8264(%rbp)
	movl	$0, -8260(%rbp)
	cmpl	$12, %ebx
	jl	LBB0_5
## %bb.1:
	addl	$-12, %ebx
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	%eax, %ebx
	jg	LBB0_5
## %bb.2:
	movq	%r12, -8288(%rbp)               ## 8-byte Spill
	movl	16(%rbp), %r12d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bytestream2_skip
	movq	-8312(%rbp), %rdx               ## 8-byte Reload
	cmpl	%r12d, %edx
	ja	LBB0_5
## %bb.3:
	movq	%rbx, -8344(%rbp)               ## 8-byte Spill
	movq	%r15, %rdi
	movq	-8304(%rbp), %rsi               ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dxv_decompress_opcodes
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	-8296(%rbp), %rdx               ## 8-byte Reload
	cmpl	24(%rbp), %edx
	jbe	LBB0_8
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.7:
	movl	%ebx, %eax
	addq	$8312, %rsp                     ## imm = 0x2078
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	movq	-8288(%rbp), %rsi               ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dxv_decompress_opcodes
	testl	%eax, %eax
	js	LBB0_15
## %bb.9:
	movl	%eax, -8256(%rbp)               ## 4-byte Spill
	movl	%ebx, -8252(%rbp)               ## 4-byte Spill
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	-8244(%rbp), %esi               ## 4-byte Reload
	callq	_bytestream2_seek
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_AV_WL32
	leaq	16(%r13), %rbx
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_AV_WL32
	leaq	32(%r13), %r12
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_AV_WL32
	leaq	48(%r13), %rbx
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_AV_WL32
	movq	%r13, %rdi
	callq	_AV_RL16
	imull	$-1640531535, %eax, %eax        ## imm = 0x9E3779B1
	shrl	$24, %eax
	movq	%r13, -4144(%rbp,%rax,8)
	leaq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_AV_RL32
	andl	$16777215, %eax                 ## imm = 0xFFFFFF
	imull	$-1640531535, %eax, %eax        ## imm = 0x9E3779B1
	shrl	$24, %eax
	movq	%rbx, -8240(%rbp,%rax,8)
	movq	%r12, %rdi
	callq	_AV_RL16
	imull	$-1640531535, %eax, %eax        ## imm = 0x9E3779B1
	shrl	$24, %eax
	movq	%r12, -2096(%rbp,%rax,8)
	leaq	40(%r13), %rbx
	movq	%rbx, %rdi
	callq	_AV_RL32
	andl	$16777215, %eax                 ## imm = 0xFFFFFF
	imull	$-1640531535, %eax, %eax        ## imm = 0x9E3779B1
	shrl	$24, %eax
	movq	%rbx, -6192(%rbp,%rax,8)
	movq	%r13, -8280(%rbp)               ## 8-byte Spill
	leaq	64(%r13), %rax
	movq	%rax, -8320(%rbp)
	movl	-8248(%rbp), %r13d              ## 4-byte Reload
	cmpl	$27, %r13d
	jl	LBB0_14
## %bb.10:
	movslq	%r13d, %rax
	movq	-8280(%rbp), %rcx               ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -8328(%rbp)               ## 8-byte Spill
	leaq	-8320(%rbp), %r12
	movq	%r14, -8336(%rbp)               ## 8-byte Spill
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-8280(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	movq	-8304(%rbp), %r8                ## 8-byte Reload
	leaq	-8272(%rbp), %r9
	pushq	$8
	leaq	-8240(%rbp), %rax
	pushq	%rax
	leaq	-4144(%rbp), %rax
	pushq	%rax
	leaq	-8264(%rbp), %rax
	pushq	%rax
	pushq	%r12
	pushq	-8312(%rbp)                     ## 8-byte Folded Reload
	callq	_dxv_decompress_cgo
	addq	$48, %rsp
	testl	%eax, %eax
	js	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	movq	-8288(%rbp), %r8                ## 8-byte Reload
	leaq	-8268(%rbp), %r9
	pushq	$8
	leaq	-6192(%rbp), %rax
	pushq	%rax
	leaq	-2096(%rbp), %rax
	pushq	%rax
	leaq	-8260(%rbp), %rax
	pushq	%rax
	movq	%r12, %rbx
	pushq	%r12
	pushq	-8296(%rbp)                     ## 8-byte Folded Reload
	callq	_dxv_decompress_cgo
	addq	$48, %rsp
	testl	%eax, %eax
	js	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-8320(%rbp), %rax
	addq	$40, %rax
	cmpq	-8328(%rbp), %rax               ## 8-byte Folded Reload
	movl	-8248(%rbp), %r13d              ## 4-byte Reload
	movq	-8336(%rbp), %r14               ## 8-byte Reload
	movq	%rbx, %r12
	jb	LBB0_11
LBB0_14:
	movq	-8344(%rbp), %rsi               ## 8-byte Reload
	addl	-8244(%rbp), %esi               ## 4-byte Folded Reload
	addl	-8252(%rbp), %esi               ## 4-byte Folded Reload
	addl	-8256(%rbp), %esi               ## 4-byte Folded Reload
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_bytestream2_seek
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_15:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_dxv_decompress_cocg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxv_decompress_cocg
_dxv_decompress_cocg:                   ; @dxv_decompress_cocg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w9, #8288
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #96
	mov	x21, x7
	mov	x28, x6
	stp	x5, x4, [sp, #40]               ; 16-byte Folded Spill
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x24, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	x0, sp, #1, lsl #12             ; =4096
	add	x0, x0, #2128
	mov	w1, #2048
	bl	_bzero
	add	x0, sp, #1, lsl #12             ; =4096
	add	x0, x0, #80
	mov	w1, #2048
	bl	_bzero
	add	x0, sp, #2128
	mov	w1, #2048
	bl	_bzero
	add	x0, sp, #80
	mov	w1, #2048
	bl	_bzero
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x20, x0
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x25, x0
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x26, x0
	mov	x0, x19
	bl	_bytestream2_tell
	stp	xzr, xzr, [sp, #56]
	subs	w20, w20, #12
	b.lt	LBB0_5
; %bb.1:
	mov	x27, x0
	mov	x0, x19
	bl	_bytestream2_get_bytes_left
	cmp	w20, w0
	b.gt	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_bytestream2_skip
	cmp	w25, w28
	b.hi	LBB0_5
; %bb.3:
	mov	x0, x19
	ldr	x1, [sp, #48]                   ; 8-byte Folded Reload
	mov	x2, x25
	bl	_dxv_decompress_opcodes
	mov	x28, x0
	tbnz	w0, #31, LBB0_6
; %bb.4:
	cmp	w26, w21
	b.ls	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w28, [x8]
LBB0_6:
	ldur	x8, [x29, #-96]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.7:
	mov	x0, x28
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #96
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, x26
	bl	_dxv_decompress_opcodes
	tbnz	w0, #31, LBB0_15
; %bb.9:
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
Lloh11:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x27
	bl	_bytestream2_seek
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	mov	x0, x23
	bl	_AV_WL32
	add	x21, x23, #16
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	mov	x0, x21
	bl	_AV_WL32
	add	x21, x23, #32
	str	x21, [sp, #32]                  ; 8-byte Folded Spill
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	mov	x0, x21
	bl	_AV_WL32
	add	x21, x23, #48
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	mov	x0, x21
	bl	_AV_WL32
	mov	x0, x23
	bl	_AV_RL16
	mov	w8, #31153
	movk	w8, #40503, lsl #16
	mul	w8, w0, w8
	lsr	w8, w8, #24
	add	x9, sp, #1, lsl #12             ; =4096
	add	x9, x9, #80
	str	x23, [x9, w8, uxtw #3]
	add	x21, x23, #8
	mov	x0, x21
	bl	_AV_RL32
	and	w8, w0, #0xffffff
	mov	w9, #31153
	movk	w9, #40503, lsl #16
	mul	w8, w8, w9
	lsr	w8, w8, #24
	add	x9, sp, #80
	str	x21, [x9, w8, uxtw #3]
	ldr	x21, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x21
	bl	_AV_RL16
	mov	w8, #31153
	movk	w8, #40503, lsl #16
	mul	w8, w0, w8
	lsr	w8, w8, #24
	add	x9, sp, #1, lsl #12             ; =4096
	add	x9, x9, #2128
	str	x21, [x9, w8, uxtw #3]
	add	x21, x23, #40
	mov	x0, x21
	bl	_AV_RL32
	and	w8, w0, #0xffffff
	mov	w9, #31153
	movk	w9, #40503, lsl #16
	mul	w8, w8, w9
	lsr	w8, w8, #24
	add	x9, sp, #2128
	str	x21, [x9, w8, uxtw #3]
	add	x8, x23, #64
	str	x8, [sp, #72]
	cmp	w22, #27
	b.lt	LBB0_14
; %bb.10:
	mov	w8, #8
	add	x9, x23, w22, sxtw #2
	str	x9, [sp, #32]                   ; 8-byte Folded Spill
	mov	w21, #8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	str	w8, [sp, #24]
	add	x8, sp, #80
	str	x8, [sp, #16]
	add	x5, sp, #68
	add	x7, sp, #72
	add	x8, sp, #1, lsl #12             ; =4096
	add	x8, x8, #80
	str	x8, [sp, #8]
	add	x8, sp, #60
	str	x8, [sp]
	mov	x0, x24
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	ldr	x4, [sp, #48]                   ; 8-byte Folded Reload
	mov	x6, x25
	bl	_dxv_decompress_cgo
	tbnz	w0, #31, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	str	w21, [sp, #24]
	add	x8, sp, #2128
	str	x8, [sp, #16]
	add	x5, sp, #64
	add	x7, sp, #72
	add	x8, sp, #1, lsl #12             ; =4096
	add	x8, x8, #2128
	str	x8, [sp, #8]
	add	x8, sp, #56
	str	x8, [sp]
	mov	x0, x24
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	ldr	x4, [sp, #40]                   ; 8-byte Folded Reload
	mov	x6, x26
	bl	_dxv_decompress_cgo
	tbnz	w0, #31, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #72]
	add	x8, x8, #40
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x8, x9
	mov	w8, #8
	b.lo	LBB0_11
LBB0_14:
	add	w8, w20, w27
	add	w8, w8, w28
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	add	w1, w8, w9
Lloh14:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bytestream2_seek
	mov	w28, #0
	b	LBB0_6
LBB0_15:
	mov	x28, x0
	b	LBB0_6
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_dxv_decompress_cocg
.subsections_via_symbols
