	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipvideo_decode_block_opcode_0x8_16
_ipvideo_decode_block_opcode_0x8_16:    ## @ipvideo_decode_block_opcode_0x8_16
	.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
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r12
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_bytestream2_get_le16
	movq	%rax, %rbx
	movl	%ebx, -64(%rbp)
	movq	%r14, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -60(%rbp)
	movq	%r14, %rdi
	testl	$32768, %ebx                    ## imm = 0x8000
	jne	LBB0_6
## %bb.1:
	callq	_bytestream2_get_le16
	movl	%eax, %ecx
	andl	$1, %ecx
	movl	-64(%rbp,%rcx,4), %ecx
	movl	%ecx, (%r12)
	movl	%eax, %ecx
	andl	$2, %ecx
	movl	-64(%rbp,%rcx,2), %ecx
	movl	%ecx, 4(%r12)
	movl	%eax, %ecx
	andl	$4, %ecx
	movl	-64(%rbp,%rcx), %ecx
	movl	%ecx, 8(%r12)
	movq	%rax, %rcx
	shrq	%rcx
	andl	$4, %ecx
	movl	-64(%rbp,%rcx), %ecx
	movl	%ecx, 12(%r12)
	movslq	(%r15), %rcx
	leaq	(%r12,%rcx,4), %r13
	movl	$1, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -64(%rbp)
	movq	%r14, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -60(%rbp)
	movq	%r14, %rdi
	callq	_bytestream2_get_le16
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	andl	$1, %ecx
	movl	-64(%rbp,%rcx,4), %ecx
	movl	%ecx, (%r13)
	movl	%eax, %ecx
	shrl	%ecx
	andl	$1, %ecx
	movl	-64(%rbp,%rcx,4), %ecx
	movl	%ecx, 4(%r13)
	movl	%eax, %ecx
	shrl	$2, %ecx
	andl	$1, %ecx
	movl	-64(%rbp,%rcx,4), %ecx
	movl	%ecx, 8(%r13)
	movl	%eax, %ecx
	shrl	$3, %ecx
	andl	$1, %ecx
	movl	-64(%rbp,%rcx,4), %ecx
	movl	%ecx, 12(%r13)
	movslq	(%r15), %rcx
	leaq	(,%rcx,4), %rdx
	addq	%r13, %rdx
	leal	(,%rcx,8), %ecx
	movl	$4, %esi
	subl	%ecx, %esi
	cmpl	$7, %ebx
	cmovnel	%r12d, %esi
	movslq	%esi, %rcx
	leaq	(%rdx,%rcx,4), %r13
	incl	%ebx
	cmpl	$16, %ebx
	je	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testb	$3, %bl
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	shrl	$4, %eax
	jmp	LBB0_5
LBB0_6:
	callq	_bytestream2_get_le32
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_bytestream2_get_le16
	movq	%rax, %r13
	movl	%r13d, -56(%rbp)
	movq	%r14, %rdi
	callq	_bytestream2_get_le16
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, -52(%rbp)
	testl	$32768, %r13d                   ## imm = 0x8000
	jne	LBB0_7
## %bb.11:
	movl	$16, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	shll	$3, %eax
	movl	$4, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	leaq	(%r12,%rax,4), %r12
	movq	-56(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	%r14, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %ebx
	decl	%r13d
	je	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	andl	$1, %eax
	movl	-64(%rbp,%rax,4), %eax
	movl	%eax, (%r12)
	movl	%ebx, %eax
	shrl	%eax
	andl	$1, %eax
	movl	-64(%rbp,%rax,4), %eax
	movl	%eax, 4(%r12)
	movl	%ebx, %eax
	shrl	$2, %eax
	andl	$1, %eax
	movl	-64(%rbp,%rax,4), %eax
	movl	%eax, 8(%r12)
	movl	%ebx, %eax
	shrl	$3, %eax
	andl	$1, %eax
	movl	-64(%rbp,%rax,4), %eax
	movl	%eax, 12(%r12)
	movslq	(%r15), %rax
	leaq	(%r12,%rax,4), %r12
	cmpl	$9, %r13d
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	shrl	$4, %ebx
	decl	%r13d
	jne	LBB0_12
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$8, %r13d
	movl	-56(%rbp), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %eax
	andl	$1, %eax
	movl	-64(%rbp,%rax,4), %eax
	movl	%eax, (%r12)
	movl	%ebx, %eax
	shrl	%eax
	andl	$1, %eax
	movl	-64(%rbp,%rax,4), %eax
	movl	%eax, 4(%r12)
	movl	%ebx, %eax
	shrl	$2, %eax
	andl	$1, %eax
	movl	-64(%rbp,%rax,4), %eax
	movl	%eax, 8(%r12)
	movl	%ebx, %eax
	shrl	$3, %eax
	andl	$1, %eax
	movl	-64(%rbp,%rax,4), %eax
	movl	%eax, 12(%r12)
	movl	%ebx, %eax
	shrl	$4, %eax
	andl	$1, %eax
	movl	-64(%rbp,%rax,4), %eax
	movl	%eax, 16(%r12)
	movl	%ebx, %eax
	shrl	$5, %eax
	andl	$1, %eax
	movl	-64(%rbp,%rax,4), %eax
	movl	%eax, 20(%r12)
	movl	%ebx, %eax
	shrl	$6, %eax
	andl	$1, %eax
	movl	-64(%rbp,%rax,4), %eax
	movl	%eax, 24(%r12)
	movl	%ebx, %eax
	shrl	$7, %eax
	andl	$1, %eax
	movl	-64(%rbp,%rax,4), %eax
	movl	%eax, 28(%r12)
	shrl	$8, %ebx
	movslq	4(%r15), %rax
	leaq	(%r12,%rax,4), %r12
	addq	$32, %r12
	decl	%r13d
	je	LBB0_16
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$4, %r13d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -64(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, -60(%rbp)
	movq	%r14, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ipvideo_decode_block_opcode_0x8_16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipvideo_decode_block_opcode_0x8_16
_ipvideo_decode_block_opcode_0x8_16:    ; @ipvideo_decode_block_opcode_0x8_16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x24, [x0, #16]
	add	x20, x0, #8
	mov	x0, x20
	bl	_bytestream2_get_le16
	mov	x21, x0
	str	w21, [sp, #8]
	mov	x0, x20
	bl	_bytestream2_get_le16
	str	w0, [sp, #12]
	mov	x0, x20
	tbnz	w21, #15, LBB0_6
; %bb.1:
	bl	_bytestream2_get_le16
	and	x8, x0, #0x1
	add	x9, sp, #8
	bfi	x9, x8, #2, #1
	ubfx	x8, x0, #1, #1
	add	x10, sp, #8
	bfi	x10, x8, #2, #1
	add	x8, sp, #8
	ldr	w9, [x9]
	ldr	w10, [x10]
	stp	w9, w10, [x24]
	ubfx	x9, x0, #2, #1
	add	x10, sp, #8
	bfi	x10, x9, #2, #1
	ldr	w9, [x10]
	ubfx	x10, x0, #3, #1
	bfi	x8, x10, #2, #1
	ldr	w8, [x8]
	stp	w9, w8, [x24, #8]
	ldrsw	x8, [x19]
	add	x23, x24, x8, lsl #2
	mov	w21, #1
	mov	w22, #4
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_bytestream2_get_le16
	str	w0, [sp, #8]
	mov	x0, x20
	bl	_bytestream2_get_le16
	str	w0, [sp, #12]
	mov	x0, x20
	bl	_bytestream2_get_le16
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w0, #0x1
	add	x9, sp, #8
	bfi	x9, x8, #2, #1
	ldr	w8, [x9]
	ubfx	w9, w0, #1, #1
	add	x10, sp, #8
	bfi	x10, x9, #2, #1
	ldr	w9, [x10]
	stp	w8, w9, [x23]
	ubfx	w8, w0, #2, #1
	add	x9, sp, #8
	bfi	x9, x8, #2, #1
	ubfx	w8, w0, #3, #1
	add	x10, sp, #8
	bfi	x10, x8, #2, #1
	ldr	w8, [x9]
	ldr	w9, [x10]
	stp	w8, w9, [x23, #8]
	ldr	w8, [x19]
	sub	w9, w8, #4
	add	x9, x23, w9, sxtw #2
	sub	w8, w22, w8, lsl #3
	cmp	w21, #7
	csel	w8, w8, wzr, eq
	add	x8, x9, w8, sxtw #2
	add	x23, x8, #16
	add	w21, w21, #1
	cmp	w21, #16
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tst	w21, #0x3
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	w0, w0, #4
	b	LBB0_3
LBB0_6:
	bl	_bytestream2_get_le32
	mov	x21, x0
	mov	x0, x20
	bl	_bytestream2_get_le16
	mov	x23, x0
	str	w23, [sp, #16]
	mov	x0, x20
	bl	_bytestream2_get_le16
	mov	x22, x0
	str	w22, [sp, #20]
	tbnz	w23, #15, LBB0_13
; %bb.7:
	mov	w22, #16
	mov	w23, #4
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	sub	w8, w23, w8, lsl #3
	add	x24, x24, w8, sxtw #2
	ldr	d0, [sp, #16]
	str	d0, [sp, #8]
	mov	x0, x20
	bl	_bytestream2_get_le32
	mov	x21, x0
	subs	w22, w22, #1
	b.eq	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w21, #0x1
	add	x9, sp, #8
	bfi	x9, x8, #2, #1
	ldr	w8, [x9]
	str	w8, [x24]
	ubfx	w8, w21, #1, #1
	add	x9, sp, #8
	bfi	x9, x8, #2, #1
	ldr	w8, [x9]
	str	w8, [x24, #4]
	ubfx	w8, w21, #2, #1
	add	x9, sp, #8
	bfi	x9, x8, #2, #1
	ldr	w8, [x9]
	str	w8, [x24, #8]
	ubfx	w8, w21, #3, #1
	add	x9, sp, #8
	bfi	x9, x8, #2, #1
	ldr	w8, [x9]
	str	w8, [x24, #12]
	ldr	w8, [x19]
	sub	w9, w8, #4
	add	x9, x24, w9, sxtw #2
	add	x24, x9, #16
	cmp	w22, #9
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	lsr	w21, w21, #4
	subs	w22, w22, #1
	b.ne	LBB0_9
LBB0_11:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.12:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	mov	w23, #8
	ldr	w25, [sp, #16]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	and	w8, w21, #0x1
	add	x9, sp, #8
	bfi	x9, x8, #2, #1
	ldr	w8, [x9]
	ubfx	w9, w21, #1, #1
	add	x10, sp, #8
	bfi	x10, x9, #2, #1
	ldr	w9, [x10]
	stp	w8, w9, [x24]
	ubfx	w8, w21, #2, #1
	add	x9, sp, #8
	bfi	x9, x8, #2, #1
	ldr	w8, [x9]
	ubfx	w9, w21, #3, #1
	add	x10, sp, #8
	bfi	x10, x9, #2, #1
	ldr	w9, [x10]
	stp	w8, w9, [x24, #8]
	ubfx	w8, w21, #4, #1
	add	x9, sp, #8
	bfi	x9, x8, #2, #1
	ldr	w8, [x9]
	ubfx	w9, w21, #5, #1
	add	x10, sp, #8
	bfi	x10, x9, #2, #1
	ldr	w9, [x10]
	stp	w8, w9, [x24, #16]
	ubfx	w8, w21, #6, #1
	add	x9, sp, #8
	bfi	x9, x8, #2, #1
	ubfx	w8, w21, #7, #1
	add	x10, sp, #8
	bfi	x10, x8, #2, #1
	ldr	w8, [x9]
	ldr	w9, [x10]
	stp	w8, w9, [x24, #24]
	ldrsw	x8, [x19, #4]
	add	x8, x24, x8, lsl #2
	lsr	w21, w21, #8
	add	x24, x8, #32
	subs	w23, w23, #1
	b.eq	LBB0_11
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	w23, #4
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	stp	w25, w22, [sp, #8]
	mov	x0, x20
	bl	_bytestream2_get_le32
	mov	x21, x0
	b	LBB0_14
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ipvideo_decode_block_opcode_0x8_16
.subsections_via_symbols
