	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_i2_frame
_decode_i2_frame:                       ## @decode_i2_frame
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movl	4(%rax), %r13d
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	movl	$16, %esi
	callq	_FFALIGN
	movl	%eax, %ebx
	movl	%r13d, %edi
	movl	$16, %esi
	callq	_FFALIGN
	sarl	$4, %eax
	sarl	%ebx
	andl	$-8, %ebx
	imull	%eax, %ebx
	cmpl	%r12d, %ebx
	jle	LBB0_2
## %bb.1:
	movq	8(%r15), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
LBB0_9:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.21:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%r15), %rbx
	leaq	-88(%rbp), %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_bytestream2_init
	testl	%r13d, %r13d
	jle	LBB0_3
## %bb.4:
	movl	%r13d, -76(%rbp)                ## 4-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movslq	%eax, %r13
	shll	$4, %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	shlq	$2, %r13
	xorl	%ecx, %ecx
	leaq	-88(%rbp), %r14
	movl	%r12d, -80(%rbp)                ## 4-byte Spill
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_15 Depth 3
                                        ##         Child Loop BB0_16 Depth 4
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	4(%rbx), %r15
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_15 Depth 3
                                        ##         Child Loop BB0_16 Depth 4
	cmpl	$7, %r12d
	jle	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_bytestream2_get_le16u
	movl	%eax, %r12d
	movl	%eax, -64(%rbp)
	movq	%r14, %rbx
	movq	%r14, %rdi
	callq	_bytestream2_get_le16u
	movl	%eax, %r14d
	movl	%eax, -60(%rbp)
	testl	$32768, %r12d                   ## imm = 0x8000
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	testl	$32768, %r14d                   ## imm = 0x8000
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	callq	_av_log
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_mix
	movl	%eax, -56(%rbp)
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_mix
	movl	%eax, -52(%rbp)
	movq	%rbx, %r14
	movq	%rbx, %rdi
	callq	_bytestream2_get_le32u
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	movl	-80(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_16 Depth 4
	leal	(%r8,%r8), %r9d
	andl	$2147483640, %r9d               ## imm = 0x7FFFFFF8
	movl	$16, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ##       Parent Loop BB0_15 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	%esi, %ecx
	andl	$254, %ecx
	addl	%r9d, %ecx
	movl	%eax, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %edi
	andl	$3, %edi
	movl	-64(%rbp,%rdi,4), %ecx
	movl	%ecx, -4(%rdx,%rsi,8)
	movl	-64(%rbp,%rdi,4), %ecx
	movl	%ecx, (%rdx,%rsi,8)
	incq	%rsi
	addq	$-2, %rbx
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=3
	incq	%r8
	addq	%r13, %rdx
	cmpq	$16, %r8
	jne	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	addq	$64, %rbx
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	addl	$16, %ecx
	addq	$64, %r15
	cmpl	-68(%rbp), %ecx                 ## 4-byte Folded Reload
	jl	LBB0_8
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	subl	%ecx, %eax
	cltq
	leaq	(%rbx,%rax,4), %rbx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	addl	$16, %ecx
	xorl	%eax, %eax
	cmpl	-76(%rbp), %ecx                 ## 4-byte Folded Reload
	jl	LBB0_5
	jmp	LBB0_20
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet size too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"unk bit 1\n"

L_.str.2:                               ## @.str.2
	.asciz	"unk bit 2\n"

	.no_dead_strip	_decode_i2_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_i2_frame
_decode_i2_frame:                       ; @decode_i2_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x0, #8]
	ldp	w22, w21, [x8]
	mov	x0, x22
	mov	w1, #16
	bl	_FFALIGN
	mov	x24, x0
	mov	x0, x21
	mov	w1, #16
	bl	_FFALIGN
	asr	w8, w0, #4
	asr	w9, w24, #1
	and	w9, w9, #0xfffffff8
	mul	w8, w9, w8
	cmp	w8, w19
	b.le	LBB0_5
; %bb.1:
	ldr	x0, [x20, #8]
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_2:
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_3:
	ldr	x8, [sp, #40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	ldr	x26, [x20]
	add	x0, sp, #20
	mov	x1, x23
	mov	x2, x19
	bl	_bytestream2_init
	cmp	w21, #1
	b.lt	LBB0_19
; %bb.6:
	mov	w8, #0
	sxtw	x28, w22
	lsl	w9, w28, #4
	stp	w9, w21, [sp, #8]               ; 8-byte Folded Spill
	lsl	x22, x28, #2
	add	x23, sp, #24
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_15 Depth 3
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	cmp	w28, #1
	b.lt	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w27, #0
	add	x21, x26, #32
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_15 Depth 3
	cmp	w19, #7
	b.le	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x0, sp, #20
	bl	_bytestream2_get_le16u
	mov	x24, x0
	str	w0, [sp, #24]
	add	x0, sp, #20
	bl	_bytestream2_get_le16u
	mov	x25, x0
	str	w0, [sp, #28]
	tbz	w24, #15, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x0, [x20, #8]
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=2
	tbz	w25, #15, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x0, [x20, #8]
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x24
	mov	x1, x25
	bl	_mix
	str	w0, [sp, #32]
	mov	x0, x25
	mov	x1, x24
	bl	_mix
	str	w0, [sp, #36]
	add	x0, sp, #20
	bl	_bytestream2_get_le32u
	mov	x8, #0
	mov	x9, x21
LBB0_15:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	and	w10, w8, #0x7ffffff8
	lsr	w11, w0, w10
	and	w11, w11, #0x3
	lsl	x11, x11, #2
	ldr	w12, [x23, x11]
	stur	w12, [x9, #-32]
	ldr	w12, [x23, x11]
	stur	w12, [x9, #-28]
	ldr	w12, [x23, x11]
	stur	w12, [x9, #-24]
	ldr	w11, [x23, x11]
	stur	w11, [x9, #-20]
	orr	w11, w10, #0x2
	lsr	w11, w0, w11
	and	w11, w11, #0x3
	lsl	x11, x11, #2
	ldr	w12, [x23, x11]
	stur	w12, [x9, #-16]
	ldr	w12, [x23, x11]
	stur	w12, [x9, #-12]
	ldr	w12, [x23, x11]
	stur	w12, [x9, #-8]
	ldr	w11, [x23, x11]
	stur	w11, [x9, #-4]
	orr	w11, w10, #0x4
	lsr	w11, w0, w11
	and	w11, w11, #0x3
	lsl	x11, x11, #2
	ldr	w12, [x23, x11]
	str	w12, [x9]
	ldr	w12, [x23, x11]
	str	w12, [x9, #4]
	ldr	w12, [x23, x11]
	str	w12, [x9, #8]
	ldr	w11, [x23, x11]
	str	w11, [x9, #12]
	orr	w10, w10, #0x6
	lsr	w10, w0, w10
	and	w10, w10, #0x3
	lsl	x10, x10, #2
	ldr	w11, [x23, x10]
	str	w11, [x9, #16]
	ldr	w11, [x23, x10]
	str	w11, [x9, #20]
	ldr	w11, [x23, x10]
	str	w11, [x9, #24]
	ldr	w10, [x23, x10]
	str	w10, [x9, #28]
	add	x8, x8, #2
	add	x9, x9, x22
	cmp	x8, #32
	b.ne	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x26, x26, #64
	add	w27, w27, #16
	add	x21, x21, #64
	cmp	w27, w28
	b.lt	LBB0_9
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w27, #0
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #0
	ldp	w8, w21, [sp, #8]               ; 8-byte Folded Reload
	sub	w8, w8, w27
	add	x26, x26, w8, sxtw #2
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	add	w8, w8, #16
	cmp	w8, w21
	b.lt	LBB0_7
	b	LBB0_3
LBB0_19:
	mov	w0, #0
	b	LBB0_3
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet size too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"unk bit 1\n"

l_.str.2:                               ; @.str.2
	.asciz	"unk bit 2\n"

	.no_dead_strip	_decode_i2_frame
.subsections_via_symbols
