	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipvideo_decode_block_opcode_0xA_16
_ipvideo_decode_block_opcode_0xA_16:    ## @ipvideo_decode_block_opcode_0xA_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r15
	leaq	4(%rdi), %r13
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, %ebx
	movl	%eax, -80(%rbp)
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -76(%rbp)
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -72(%rbp)
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -68(%rbp)
	testl	$32768, %ebx                    ## imm = 0x8000
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	jne	LBB0_6
## %bb.1:
	callq	_bytestream2_get_le32
	movl	%eax, %ecx
	andl	$3, %ecx
	movl	-80(%rbp,%rcx,4), %ecx
	movl	%ecx, (%r15)
	movl	%eax, %ecx
	shrl	$2, %ecx
	andl	$3, %ecx
	movl	-80(%rbp,%rcx,4), %ecx
	movl	%ecx, 4(%r15)
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$3, %ecx
	movl	-80(%rbp,%rcx,4), %ecx
	movl	%ecx, 8(%r15)
	movl	%eax, %ecx
	shrl	$6, %ecx
	andl	$3, %ecx
	movl	-80(%rbp,%rcx,4), %ecx
	movl	%ecx, 12(%r15)
	movslq	(%r12), %rcx
	leaq	(%r15,%rcx,4), %r15
	movl	$1, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -80(%rbp)
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -76(%rbp)
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -72(%rbp)
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -68(%rbp)
	movq	%r13, %rdi
	callq	_bytestream2_get_le32
	movq	-96(%rbp), %r12                 ## 8-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	andl	$3, %ecx
	movl	-80(%rbp,%rcx,4), %ecx
	movl	%ecx, (%r15)
	movl	%eax, %ecx
	shrl	$2, %ecx
	andl	$3, %ecx
	movl	-80(%rbp,%rcx,4), %ecx
	movl	%ecx, 4(%r15)
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$3, %ecx
	movl	-80(%rbp,%rcx,4), %ecx
	movl	%ecx, 8(%r15)
	movl	%eax, %ecx
	shrl	$6, %ecx
	andl	$3, %ecx
	movl	-80(%rbp,%rcx,4), %ecx
	movl	%ecx, 12(%r15)
	movslq	(%r12), %rcx
	leaq	(%r15,%rcx,4), %rdx
	leal	(,%rcx,8), %ecx
	movl	$4, %esi
	subl	%ecx, %esi
	cmpl	$7, %ebx
	cmovnel	%r14d, %esi
	movslq	%esi, %rcx
	leaq	(%rdx,%rcx,4), %r15
	incl	%ebx
	cmpl	$16, %ebx
	je	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testb	$3, %bl
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	sarl	$8, %eax
	jmp	LBB0_5
LBB0_6:
	callq	_bytestream2_get_le64
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%eax, -64(%rbp)
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -60(%rbp)
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -56(%rbp)
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -52(%rbp)
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	-80(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	%r13, %rdi
	callq	_bytestream2_get_le64
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ebx
	movq	%r12, %r15
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	cmpl	$16, %r14d
	je	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	andl	$3, %eax
	movl	%ebx, %ecx
	shrl	$2, %ecx
	andl	$3, %ecx
	movl	%ebx, %edx
	shrl	$4, %edx
	andl	$3, %edx
	movl	%ebx, %esi
	shrl	$6, %esi
	andl	$3, %esi
	leaq	16(%r15), %r12
	sarl	$8, %ebx
	movl	-80(%rbp,%rax,4), %eax
	movl	%eax, (%r15)
	movl	-80(%rbp,%rcx,4), %eax
	movl	%eax, 4(%r15)
	movl	-80(%rbp,%rdx,4), %eax
	movl	%eax, 8(%r15)
	movl	-80(%rbp,%rsi,4), %eax
	movl	%eax, 12(%r15)
	testl	$32768, -84(%rbp)               ## 4-byte Folded Reload
                                        ## imm = 0x8000
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movslq	(%rdi), %rax
	leaq	(%r12,%rax,4), %r15
	addq	$-16, %r15
	cmpl	$7, %r14d
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	shll	$3, %eax
	movl	$4, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	leaq	(%r15,%rax,4), %r12
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, %r14b
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movslq	8(%rdi), %rax
	leaq	(%r12,%rax,4), %r12
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %r15
	cmpl	$7, %r14d
	je	LBB0_13
	jmp	LBB0_14
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ipvideo_decode_block_opcode_0xA_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_0xA_16
_ipvideo_decode_block_opcode_0xA_16:    ; @ipvideo_decode_block_opcode_0xA_16
	.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, 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	x24, [x0, #16]
	add	x20, x0, #4
	mov	x0, x20
	bl	_bytestream2_get_le16
	mov	x21, x0
	str	w0, [sp, #8]
	mov	x0, x20
	bl	_bytestream2_get_le16
	str	w0, [sp, #12]
	mov	x0, x20
	bl	_bytestream2_get_le16
	str	w0, [sp, #16]
	mov	x0, x20
	bl	_bytestream2_get_le16
	str	w0, [sp, #20]
	mov	x0, x20
	tbnz	w21, #15, LBB0_6
; %bb.1:
	bl	_bytestream2_get_le32
	and	w8, w0, #0x3
	add	x21, sp, #8
	ldr	w8, [x21, w8, uxtw #2]
	str	w8, [x24]
	ubfx	w8, w0, #2, #2
	ldr	w8, [x21, w8, uxtw #2]
	str	w8, [x24, #4]
	ubfx	w8, w0, #4, #2
	ldr	w8, [x21, w8, uxtw #2]
	str	w8, [x24, #8]
	ubfx	w8, w0, #6, #2
	ldr	w8, [x21, w8, uxtw #2]
	str	w8, [x24, #12]
	ldrsw	x8, [x19]
	add	x24, x24, x8, lsl #2
	mov	w22, #1
	mov	w23, #4
	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
	str	w0, [sp, #16]
	mov	x0, x20
	bl	_bytestream2_get_le16
	str	w0, [sp, #20]
	mov	x0, x20
	bl	_bytestream2_get_le32
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w0, #0x3
	ldr	w8, [x21, w8, uxtw #2]
	str	w8, [x24]
	ubfx	w8, w0, #2, #2
	ldr	w8, [x21, w8, uxtw #2]
	str	w8, [x24, #4]
	ubfx	w8, w0, #4, #2
	ldr	w8, [x21, w8, uxtw #2]
	str	w8, [x24, #8]
	ubfx	w8, w0, #6, #2
	ldr	w8, [x21, w8, uxtw #2]
	str	w8, [x24, #12]
	ldr	w8, [x19]
	sub	w9, w8, #4
	add	x9, x24, w9, sxtw #2
	sub	w8, w23, w8, lsl #3
	cmp	w22, #7
	csel	w8, w8, wzr, eq
	add	x8, x9, w8, sxtw #2
	add	x24, x8, #16
	add	w22, w22, #1
	cmp	w22, #16
	b.eq	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tst	w22, #0x3
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	asr	w0, w0, #8
	b	LBB0_3
LBB0_6:
	bl	_bytestream2_get_le64
	mov	x23, x0
	mov	x0, x20
	bl	_bytestream2_get_le16
	mov	x21, x0
	add	x25, sp, #8
	add	x22, x25, #16
	str	w0, [sp, #24]
	mov	x0, x20
	bl	_bytestream2_get_le16
	str	w0, [sp, #28]
	mov	x0, x20
	bl	_bytestream2_get_le16
	str	w0, [sp, #32]
	mov	x0, x20
	bl	_bytestream2_get_le16
	mov	w26, #0
	str	w0, [sp, #36]
	mov	w27, #4
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #8
	mov	x1, x22
	mov	w2, #8
	bl	_memcpy
	mov	x0, x20
	bl	_bytestream2_get_le64
	mov	x23, x0
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w26, w26, #1
	cmp	w26, #16
	b.eq	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w23, #0x3
	ldr	w8, [x25, w8, uxtw #2]
	str	w8, [x24]
	ubfx	w8, w23, #2, #2
	ldr	w8, [x25, w8, uxtw #2]
	str	w8, [x24, #4]
	ubfx	w8, w23, #4, #2
	ldr	w8, [x25, w8, uxtw #2]
	str	w8, [x24, #8]
	ubfx	w8, w23, #6, #2
	ldr	w9, [x25, w8, uxtw #2]
	add	x8, x24, #16
	str	w9, [x24, #12]
	asr	w23, w23, #8
	tbnz	w21, #15, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x19]
	sub	w10, w9, #4
	add	x24, x8, w10, sxtw #2
	cmp	w26, #7
	b.ne	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w8, w27, w9, lsl #3
	add	x24, x24, w8, sxtw #2
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x8
	tbz	w26, #0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrsw	x9, [x19, #8]
	add	x24, x8, x9, lsl #2
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w26, #7
	b.eq	LBB0_7
	b	LBB0_8
LBB0_15:
	ldr	x8, [sp, #40]
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.16:
	mov	w0, #0
	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_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_0xA_16
.subsections_via_symbols
