	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_group3_1d_line
_decode_group3_1d_line:                 ## @decode_group3_1d_line
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -48(%rbp)
	movq	%rcx, -56(%rbp)
	movl	$0, -44(%rbp)
	xorl	%eax, %eax
	movq	_ccitt_vlc@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
                                        ## implicit-def: $r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_9
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %eax
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	cltq
	movl	(%rcx,%rax,4), %esi
	movq	%rbx, %rdi
	movl	$9, %edx
	movl	$2, %ecx
	callq	_get_vlc2
	addl	%eax, %r14d
	cmpl	$63, %eax
	ja	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rcx
	leaq	4(%rcx), %rax
	movq	%rax, -56(%rbp)
	movl	%r14d, (%rcx)
	cmpq	%r15, %rax
	jae	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %ecx
	subl	%r14d, %ecx
	jbe	LBB0_6
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	cmpl	$0, -44(%rbp)
	movl	%ecx, -48(%rbp)
	sete	%al
	movl	%eax, -44(%rbp)
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_show_bits
	cmpl	$15, %eax
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_skip_bits
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r15, %r8
	leaq	-44(%rbp), %r9
	callq	_decode_uncompressed
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	cmovsl	%eax, %r12d
	addl	%ecx, %ecx
	testl	%eax, %eax
	movl	$1, %eax
	cmovsl	%eax, %ecx
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.11:
	cmpl	$2, %ecx
	jne	LBB0_14
## %bb.12:
	movq	-56(%rbp), %rax
	jmp	LBB0_13
LBB0_3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_4
LBB0_6:
	jne	LBB0_7
LBB0_13:
	leaq	4(%rax), %rcx
	movq	%rcx, -56(%rbp)
	movl	$0, (%rax)
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_4
LBB0_15:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_4:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ccitt_vlc,8,3                  ## @ccitt_vlc
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Run overrun\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Run went out of bounds\n"

L_.str.2:                               ## @.str.2
	.asciz	"Incorrect code\n"

	.no_dead_strip	_decode_group3_1d_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_group3_1d_line
_decode_group3_1d_line:                 ; @decode_group3_1d_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x4
	mov	x22, x1
	mov	x19, x0
	mov	w8, #0
	mov	w23, #0
	str	w2, [sp, #28]
	str	x3, [sp, #16]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x24, _ccitt_vlc@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ccitt_vlc@GOTPAGEOFF]
                                        ; implicit-def: $w20
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmn	w0, #1
	b.eq	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	ldr	w1, [x9, w8, sxtw #2]
	mov	x0, x22
	mov	w2, #9
	mov	w3, #2
	bl	_get_vlc2
	add	w23, w0, w23
	cmp	w0, #63
	b.hi	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #16]
	str	w23, [x8], #4
	str	x8, [sp, #16]
	cmp	x8, x21
	b.hs	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [sp, #28]
	subs	w9, w9, w23
	b.ls	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #0
	str	w9, [sp, #28]
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [sp, #12]
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	w1, #12
	bl	_show_bits
	cmp	w0, #15
	b.ne	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	w1, #12
	bl	_skip_bits
	add	x2, sp, #28
	add	x3, sp, #16
	add	x5, sp, #12
	mov	x0, x19
	mov	x1, x22
	mov	x4, x21
	bl	_decode_uncompressed
	cmp	w0, #0
	csel	w20, w0, w20, lt
	cset	w8, ne
	lsl	w8, w8, #1
	csinc	w8, w8, wzr, ge
	cbz	w8, LBB0_2
; %bb.9:
	cmp	w8, #2
	b.ne	LBB0_17
; %bb.10:
	ldr	x8, [sp, #16]
	b	LBB0_13
LBB0_11:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_16
LBB0_12:
	b.ne	LBB0_14
LBB0_13:
	mov	w20, #0
	str	wzr, [x8], #4
	str	x8, [sp, #16]
	b	LBB0_17
LBB0_14:
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh12:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_av_log
Lloh17:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ccitt_vlc,8,3                  ; @ccitt_vlc
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Run overrun\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Run went out of bounds\n"

l_.str.2:                               ; @.str.2
	.asciz	"Incorrect code\n"

	.no_dead_strip	_decode_group3_1d_line
.subsections_via_symbols
