	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tak_parse
_tak_parse:                             ## @tak_parse
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%r8, -96(%rbp)
	movl	%r9d, -44(%rbp)
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	$8, %r15d
	testl	%r9d, %r9d
	je	LBB0_2
## %bb.1:
	movq	_TAK_MAX_FRAME_HEADER_BYTES@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r15d
LBB0_2:
	movq	16(%rbx), %r14
	movl	(%rax), %esi
	movq	%r8, (%rdx)
	movl	%r13d, (%rcx)
	movq	_PARSER_FLAG_COMPLETE_FRAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.3:
	leaq	-52(%rbp), %rdi
	movq	%r8, %rsi
	movl	%r13d, %edx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_30
## %bb.4:
	leaq	-52(%rbp), %rsi
	leaq	-160(%rbp), %rdx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	$127, %ecx
	callq	_ff_tak_decode_frame_header
	testl	%eax, %eax
	jne	LBB0_30
## %bb.5:
	movq	24(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	16(%r14), %rax
LBB0_7:
	movq	%rax, 8(%rbx)
	jmp	LBB0_30
LBB0_8:
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movl	%esi, -100(%rbp)                ## 4-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	32(%r14), %r12
	leaq	8(%r14), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	leaq	-52(%rbp), %rbx
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movl	-44(%rbp), %r13d
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	movl	(%r14), %eax
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_TAK_MAX_FRAME_HEADER_BYTES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leal	(%rdi,%rax), %ecx
	movl	(%r12), %edx
	cmpl	%edx, %ecx
	jle	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r13d, %esi
	callq	_FFMIN
	movl	%eax, -68(%rbp)
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, -160(%rbp)
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	leaq	-160(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	callq	_ff_combine_frame
	cmpq	$-1, %rax
	jne	LBB0_28
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	-68(%rbp), %rax
	addl	%eax, -48(%rbp)                 ## 4-byte Folded Spill
	leaq	(%rbx,%rax,4), %rbx
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -96(%rbp)
	subl	%eax, %r13d
	movl	%r13d, -44(%rbp)
	movl	(%r14), %eax
	movl	32(%r14), %edx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	leaq	-52(%rbp), %rbx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	leal	(%rax,%r15), %ecx
	movl	(%r12), %edx
	xorl	%r13d, %r13d
	cmpl	%edx, %ecx
	jg	LBB0_32
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	leal	(%rax,%r15), %ecx
	cmpl	%edx, %ecx
	jg	LBB0_10
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-120(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_20 Depth=2
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movq	%rax, 8(%rdx)
	movq	_TAK_FRAME_FLAG_HAS_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	andl	(%rsi), %eax
	setne	%cl
	movl	%ecx, 4(%rdx)
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_20 Depth=2
	movl	(%r14), %eax
	movl	32(%r14), %edx
	leaq	-52(%rbp), %rbx
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=2
	leal	(%rax,%r15), %ecx
	incl	%ecx
	incl	%eax
	movl	%eax, (%r14)
                                        ## kill: def $eax killed $eax def $rax
	cmpl	%edx, %ecx
	jg	LBB0_9
LBB0_20:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	40(%r14), %rsi
	movslq	%eax, %rcx
	cmpl	$255, (%rsi,%rcx,4)
	jne	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	cmpl	$160, 4(%rsi,%rcx,4)
	jne	LBB0_19
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=2
	leaq	(%rsi,%rcx,4), %rsi
	subl	%ecx, %edx
	movq	%rbx, %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=2
	cmpl	$0, 48(%r14)
	leaq	-160(%rbp), %rdx
	cmoveq	-128(%rbp), %rdx                ## 8-byte Folded Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$127, %ecx
	callq	_ff_tak_decode_frame_header
	testl	%eax, %eax
	jne	LBB0_18
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=2
	movslq	(%r14), %rbx
	shlq	$2, %rbx
	addq	40(%r14), %rbx
	leaq	-52(%rbp), %rdi
	callq	_get_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$3, %esi
	movq	%rbx, %rdi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	callq	_ff_tak_check_crc
	testl	%eax, %eax
	jne	LBB0_18
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=2
	cmpl	$0, 48(%r14)
	jne	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_20 Depth=2
	movl	$1, 48(%r14)
	movq	24(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_17
## %bb.27:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	16(%r14), %rax
	jmp	LBB0_17
LBB0_28:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_29:
	movq	$0, (%r12)
	movl	$0, (%rax)
	addl	-44(%rbp), %ebx
	movl	%ebx, %r13d
LBB0_30:
	movl	%r13d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movl	$0, 48(%r14)
	movl	(%r14), %r13d
	subl	32(%r14), %r13d
	movl	$0, (%r14)
	cmpl	$0, -44(%rbp)
	sete	%al
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_32:
	movb	$1, %al
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	-100(%rbp), %r13d               ## 4-byte Reload
LBB0_33:
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %r15
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_37
## %bb.34:
	testb	%al, %al
	je	LBB0_37
## %bb.35:
	cmpl	(%r15), %r13d
	je	LBB0_36
LBB0_37:
	leaq	-96(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_ff_combine_frame
	testq	%rax, %rax
	js	LBB0_36
## %bb.38:
	cmpl	(%r15), %r13d
	je	LBB0_40
## %bb.39:
	addl	%ebx, %r13d
	movl	%r13d, %esi
	negl	%esi
	xorl	%edi, %edi
	callq	_FFMAX
	movl	%eax, 52(%r14)
LBB0_40:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-96(%rbp), %rax
	movq	%rax, (%r12)
	movl	-44(%rbp), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_30
LBB0_36:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_END_NOT_FOUND,4,2              ## @END_NOT_FOUND
	.comm	_TAK_MAX_FRAME_HEADER_BYTES,4,2 ## @TAK_MAX_FRAME_HEADER_BYTES
	.comm	_PARSER_FLAG_COMPLETE_FRAMES,4,2 ## @PARSER_FLAG_COMPLETE_FRAMES
	.comm	_TAK_FRAME_FLAG_HAS_INFO,4,2    ## @TAK_FRAME_FLAG_HAS_INFO
	.no_dead_strip	_tak_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tak_parse
_tak_parse:                             ; @tak_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x26, x5
	mov	x25, x4
	mov	x24, x1
	mov	x22, x0
	str	x4, [sp, #72]
	str	w5, [sp, #68]
	ldr	x27, [x0, #16]
Lloh0:
	adrp	x8, _END_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _END_NOT_FOUND@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TAK_MAX_FRAME_HEADER_BYTES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TAK_MAX_FRAME_HEADER_BYTES@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x8]
Lloh5:
	ldr	w8, [x9]
	mov	w9, #8
	cmp	w5, #0
	csel	w19, w9, w8, eq
	str	x4, [x2]
	str	w5, [x3]
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _PARSER_FLAG_COMPLETE_FRAMES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PARSER_FLAG_COMPLETE_FRAMES@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	add	x0, sp, #64
	mov	x1, x25
	mov	x2, x26
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_36
; %bb.2:
	add	x1, sp, #64
	add	x2, sp, #40
	mov	x0, x24
	mov	w3, #127
	bl	_ff_tak_decode_frame_header
	cbnz	w0, LBB0_36
; %bb.3:
	ldr	x8, [x27, #24]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x27, #16]
LBB0_5:
	str	x8, [x22, #8]
	b	LBB0_36
LBB0_6:
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	stp	x2, x3, [sp, #16]               ; 16-byte Folded Spill
	mov	w28, #0
	add	x23, x27, #32
	add	x20, x27, #8
	add	x21, sp, #40
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w26, [sp, #68]
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	ldr	w8, [x27]
	cbz	w26, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh9:
	adrp	x9, _TAK_MAX_FRAME_HEADER_BYTES@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TAK_MAX_FRAME_HEADER_BYTES@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
	ldr	w9, [x23]
	add	w10, w0, w8
	cmp	w10, w9
	b.le	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x26
	bl	_FFMIN
	str	w0, [sp, #36]
	str	x25, [sp, #40]
Lloh12:
	adrp	x8, _END_NOT_FOUND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _END_NOT_FOUND@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #40
	add	x3, sp, #36
	mov	x0, x23
	bl	_ff_combine_frame
	cmn	x0, #1
	b.ne	LBB0_35
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x8, [sp, #36]
	add	w28, w8, w28
	add	x25, x25, x8, lsl #2
	str	x25, [sp, #72]
	sub	w26, w26, w8
	str	w26, [sp, #68]
	ldr	w8, [x27]
	ldr	w9, [x27, #32]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x23]
	add	w10, w8, w19
	cmp	w10, w9
	b.gt	LBB0_27
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w26, #0
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w10, w8, w19
	cmp	w10, w9
	b.gt	LBB0_8
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=2
	str	x8, [x22, #8]
	ldr	w8, [x20]
Lloh15:
	adrp	x9, _TAK_FRAME_FLAG_HAS_INFO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TAK_FRAME_FLAG_HAS_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x22, #4]
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w8, [x27]
	ldr	w9, [x27, #32]
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w8, w8, #1
	str	w8, [x27]
	add	w10, w8, w19
	cmp	w10, w9
	b.gt	LBB0_7
LBB0_18:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x27, #40]
	add	x1, x10, w8, sxtw #2
	ldr	w11, [x1]
	cmp	w11, #255
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	sxtw	x11, w8
	add	x10, x10, x11, lsl #2
	ldr	w10, [x10, #4]
	cmp	w10, #160
	b.ne	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	sub	w2, w9, w8
	add	x0, sp, #64
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_35
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w8, [x27, #48]
	cmp	w8, #0
	csel	x2, x20, x21, eq
	add	x1, sp, #64
	mov	x0, x24
	mov	w3, #127
	bl	_ff_tak_decode_frame_header
	cbnz	w0, LBB0_16
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x8, [x27, #40]
	ldrsw	x9, [x27]
	add	x26, x8, x9, lsl #2
	add	x0, sp, #64
	bl	_get_bits_count
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w1, w8, #3
	mov	x0, x26
	bl	_ff_tak_check_crc
	cbnz	w0, LBB0_16
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w8, [x27, #48]
	cbnz	w8, LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	w8, #1
	str	w8, [x27, #48]
	ldr	x8, [x27, #24]
	cbnz	x8, LBB0_15
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x8, [x27, #16]
	b	LBB0_15
LBB0_26:
	str	wzr, [x27, #48]
	ldr	w8, [x27]
	ldr	w9, [x27, #32]
	sub	w26, w8, w9
	str	wzr, [x27]
	ldr	w8, [sp, #68]
	cmp	w8, #0
	cset	w8, eq
	b	LBB0_28
LBB0_27:
	mov	w8, #1
	ldr	w26, [sp, #12]                  ; 4-byte Folded Reload
LBB0_28:
Lloh18:
	adrp	x19, _END_NOT_FOUND@GOTPAGE
Lloh19:
	ldr	x19, [x19, _END_NOT_FOUND@GOTPAGEOFF]
	cbz	w28, LBB0_31
; %bb.29:
	cbz	w8, LBB0_31
; %bb.30:
	ldr	w8, [x19]
	cmp	w26, w8
	b.eq	LBB0_35
LBB0_31:
	add	x2, sp, #72
	add	x3, sp, #68
	mov	x0, x23
	mov	x1, x26
	bl	_ff_combine_frame
	tbnz	x0, #63, LBB0_35
; %bb.32:
	ldr	w8, [x19]
	cmp	w26, w8
	b.eq	LBB0_34
; %bb.33:
	add	w26, w28, w26
	neg	w1, w26
	mov	w0, #0
	bl	_FFMAX
	str	w0, [x27, #52]
LBB0_34:
	ldp	x10, x9, [sp, #16]              ; 16-byte Folded Reload
	ldr	x8, [sp, #72]
	str	x8, [x10]
	ldr	w8, [sp, #68]
	str	w8, [x9]
	b	LBB0_36
LBB0_35:
	ldp	x9, x8, [sp, #16]               ; 16-byte Folded Reload
	str	xzr, [x9]
	str	wzr, [x8]
	ldr	w8, [sp, #68]
	add	w26, w8, w28
LBB0_36:
	mov	x0, x26
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_END_NOT_FOUND,4,2              ; @END_NOT_FOUND
	.comm	_TAK_MAX_FRAME_HEADER_BYTES,4,2 ; @TAK_MAX_FRAME_HEADER_BYTES
	.comm	_PARSER_FLAG_COMPLETE_FRAMES,4,2 ; @PARSER_FLAG_COMPLETE_FRAMES
	.comm	_TAK_FRAME_FLAG_HAS_INFO,4,2    ; @TAK_FRAME_FLAG_HAS_INFO
	.no_dead_strip	_tak_parse
.subsections_via_symbols
