	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	leal	(%rax,%rax,8), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r13), %eax
	leal	(%rax,%rax,8), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	$0, -64(%rbp)
	leaq	-104(%rbp), %rdi
	movl	$1, %esi
	callq	_av_lfg_init
	movl	(%r13), %edx
	leaq	-100(%rbp), %rdi
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_ff_init_cabac_encoder
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	xorl	%r12d, %r12d
	leaq	-104(%rbp), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %ecx
	shrl	$8, %ecx
	andl	$1, %ecx
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, (%r14,%rbx,4)
	incq	%rbx
	movslq	%eax, %rcx
	addl	$2, %r12d
	cmpq	%rcx, %rbx
	jge	LBB0_4
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, %r12d
	jge	LBB0_24
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_av_lfg_get
	cltq
	imulq	$-1840700269, %rax, %rcx        ## imm = 0x92492493
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$2, %ecx
	addl	%edx, %ecx
	leal	(,%rcx,8), %edx
	subl	%edx, %ecx
	addl	%eax, %ecx
	movl	(%r13), %eax
	jmp	LBB0_25
LBB0_4:
	testl	%eax, %eax
	jle	LBB0_10
## %bb.5:
	xorl	%ebx, %ebx
	leaq	-100(%rbp), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %esi
	andl	$1, %esi
	movq	%r15, %rdi
	callq	_put_cabac_bypass
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
## %bb.7:
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	leaq	-100(%rbp), %r15
	leaq	-96(%rbp), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %edx
	andl	$1, %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_put_cabac
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	leaq	-100(%rbp), %rdi
	movl	$1, %esi
	callq	_put_cabac_terminate
	movl	%eax, %ebx
	leaq	-104(%rbp), %r12
	movq	%r12, %rdi
	callq	_av_lfg_get
	movslq	%ebx, %rbx
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movl	%eax, (%r15,%rbx,4)
	movq	%r12, %rdi
	callq	_av_lfg_get
	movl	%eax, 4(%r15,%rbx,4)
	movl	(%r13), %edx
	leaq	-100(%rbp), %rdi
	movq	%r15, %rsi
	callq	_ff_init_cabac_decoder
	leaq	-96(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	cmpl	$0, (%r13)
	jle	LBB0_20
## %bb.11:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movq	%r12, %r13
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r12
	movl	(%r14,%rbx,4), %r13d
	andl	$1, %r13d
	leaq	-100(%rbp), %rdi
	callq	_get_cabac_bypass
	cmpl	%eax, %r13d
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %r15d
	jmp	LBB0_14
LBB0_15:
	testl	%eax, %eax
	jle	LBB0_20
## %bb.16:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	movq	%r12, %rax
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %r13d
	andl	$1, %r13d
	leaq	-100(%rbp), %rdi
	leaq	-96(%rbp), %rsi
	callq	_get_cabac_noinline
	cmpl	%eax, %r13d
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %r15d
	jmp	LBB0_19
LBB0_20:
	leaq	-100(%rbp), %rdi
	callq	_get_cabac_terminate
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, %r15d
LBB0_22:
	movq	-120(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_26
## %bb.23:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE,4,2                       ## @SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CABAC bypass failure at %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"CABAC failure at %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"where's the Terminator?\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #64
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x22, _SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w8, w8, w8, lsl #3
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	w8, [x22]
	add	w8, w8, w8, lsl #3
	lsl	x8, x8, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	stur	xzr, [x29, #-80]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x29, #-112]
	sub	x0, x29, #120
	mov	w1, #1
	bl	_av_lfg_init
	ldr	w2, [x22]
	sub	x0, x29, #116
	mov	x1, x19
	bl	_ff_init_cabac_encoder
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	w20, #0
	mov	x24, #0
	mov	w25, #9363
	movk	w25, #37449, lsl #16
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ubfx	w9, w24, #8, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x23, x24, lsl #2]
	add	x24, x24, #1
	add	w20, w20, #2
	cmp	x24, w8, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, w8
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x0, x29, #120
	bl	_av_lfg_get
	smull	x8, w0, w25
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #2
	add	w8, w9, w8, lsr #31
	sub	w8, w8, w8, lsl #3
	add	w9, w0, w8
	ldr	w8, [x22]
	b	LBB0_3
LBB0_6:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, x20, lsl #2]
	and	w1, w8, #0x1
	sub	x0, x29, #116
	bl	_put_cabac_bypass
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_8
; %bb.9:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x20, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, x20, lsl #2]
	and	w2, w8, #0x1
	sub	x0, x29, #116
	sub	x1, x29, #112
	bl	_put_cabac
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_11
LBB0_12:
	sub	x0, x29, #116
	mov	w1, #1
	bl	_put_cabac_terminate
	mov	x20, x0
	sub	x0, x29, #120
	bl	_av_lfg_get
	add	x20, x19, w20, sxtw #2
	str	w0, [x20]
	sub	x0, x29, #120
	bl	_av_lfg_get
	str	w0, [x20, #4]
	ldr	w2, [x22]
	sub	x0, x29, #116
	mov	x1, x19
	bl	_ff_init_cabac_decoder
	sub	x0, x29, #112
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w8, [x22]
Lloh9:
	adrp	x24, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x24, [x24, _AV_LOG_ERROR@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.13:
	mov	x25, #0
	mov	w19, #0
Lloh11:
	adrp	x20, l_.str@PAGE
Lloh12:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x22]
	cmp	x25, x8
	b.ge	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, x25, lsl #2]
	and	w26, w8, #0x1
	sub	x0, x29, #116
	bl	_get_cabac_bypass
	cmp	w26, w0
	b.eq	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w1, [x24]
	str	x25, [sp, #-16]!
	mov	x0, #0
	mov	x2, x20
	bl	_av_log
	add	sp, sp, #16
	mov	w19, #1
	b	LBB0_14
LBB0_17:
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.18:
	mov	x25, #0
Lloh13:
	adrp	x20, l_.str.1@PAGE
Lloh14:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x22]
	cmp	x25, x8
	b.ge	LBB0_23
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, x25, lsl #2]
	and	w26, w8, #0x1
	sub	x0, x29, #116
	sub	x1, x29, #112
	bl	_get_cabac_noinline
	cmp	w26, w0
	b.eq	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w1, [x24]
	str	x25, [sp, #-16]!
	mov	x0, #0
	mov	x2, x20
	bl	_av_log
	add	sp, sp, #16
	mov	w19, #1
	b	LBB0_19
LBB0_22:
	mov	w19, #0
LBB0_23:
	sub	x0, x29, #116
	bl	_get_cabac_terminate
	cbnz	w0, LBB0_25
; %bb.24:
	ldr	w1, [x24]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_av_log
	mov	w19, #1
LBB0_25:
	mov	sp, x21
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	mov	x0, x19
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE,4,2                       ; @SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CABAC bypass failure at %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"CABAC failure at %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"where's the Terminator?\n"

.subsections_via_symbols
