	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_hybrid
_decode_hybrid:                         ## @decode_hybrid
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rdi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	%r9d, %r9d
	jle	LBB0_10
## %bb.1:
	movq	%rsi, %r15
	movl	16(%rbp), %r13d
	addl	%ecx, %r9d
	leal	(%r8,%r8,2), %eax
	cltq
	movslq	%r9d, %r14
	movslq	24(%rbp), %rsi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movslq	%ecx, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r14, %rax
	imulq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -48(%rbp)
	testl	%r13d, %r13d
	jg	LBB0_3
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	addq	$4, %rbx
	movq	32(%rbp), %rcx
	movl	(%rcx,%rax,4), %esi
	movq	%r12, %rdi
	callq	_bytestream_put_le24
	decl	%r13d
	je	LBB0_9
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r15, %rbx
	jae	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movslq	(%rbx), %rax
	testb	$-128, %al
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	callq	_AV_RB16
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	andl	$31, %ecx
	movl	%eax, %edx
	shrl	$5, %edx
	andl	$31, %edx
	shrl	$10, %eax
	andl	$-33, %eax
	movl	%ecx, %esi
	shrl	$2, %esi
	leal	(%rsi,%rcx,8), %ecx
	movq	-48(%rbp), %rsi
	movl	%ecx, (%rsi)
	movl	%edx, %ecx
	shrl	$2, %ecx
	leal	(%rcx,%rdx,8), %ecx
	movl	%ecx, 4(%rsi)
	leal	(,%rax,8), %ecx
	shrl	$2, %eax
	orl	%ecx, %eax
	leaq	12(%rsi), %rcx
	movq	%rcx, -48(%rbp)
	movl	%eax, 8(%rsi)
	addq	$8, %rbx
	decl	%r13d
	jne	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%r14
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	movl	16(%rbp), %r13d
	jg	LBB0_2
LBB0_10:
	subq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	shrq	$2, %rbx
	jmp	LBB0_11
LBB0_4:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_hybrid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_hybrid
_decode_hybrid:                         ; @decode_hybrid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
                                        ; kill: def $w7 killed $w7 def $x7
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x20, x0
	mov	x22, x0
	cmp	w5, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x6
	mov	x21, x1
	ldr	x23, [x29, #16]
	add	w8, w5, w3
	add	w9, w4, w4, lsl #1
	sxtw	x24, w8
	sxtw	x25, w7
	sxtw	x26, w3
	movi.2s	v8, #31
	mov	x22, x20
	add	x27, x2, w9, sxtw #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x24, x24, #1
	cmp	x24, x26
	b.le	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mul	x8, x24, x25
	add	x8, x27, x8, lsl #2
	str	x8, [sp, #8]
	cmp	w19, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x19
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x22, x22, #4
	ldr	w1, [x23, x8, lsl #2]
	add	x0, sp, #8
	bl	_bytestream_put_le24
	subs	w28, w28, #1
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x22, x21
	b.hs	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldrsw	x8, [x22]
	tbz	w8, #7, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x22
	bl	_AV_RB16
	lsr	w8, w0, #5
	lsr	w9, w0, #10
	and	w9, w9, #0xffffffdf
	fmov	s0, w0
	mov.s	v0[1], w8
	ldr	x8, [sp, #8]
	and.8b	v0, v0, v8
	shl.2s	v1, v0, #3
	ushr.2s	v0, v0, #2
	orr.8b	v0, v1, v0
	str	d0, [x8]
	lsl	w10, w9, #3
	orr	w9, w10, w9, lsr #2
	add	x10, x8, #12
	str	x10, [sp, #8]
	str	w9, [x8, #8]
	add	x22, x22, #8
	subs	w28, w28, #1
	b.ne	LBB0_6
	b	LBB0_2
LBB0_9:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_10:
	sub	x8, x22, x20
	lsr	x0, x8, #2
LBB0_11:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_hybrid
.subsections_via_symbols
