	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function renorm_cabac_encoder
_renorm_cabac_encoder:                  ## @renorm_cabac_encoder
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$255, (%rdi)
	jg	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movl	4(%rdi), %eax
	movl	$-512, %r14d                    ## imm = 0xFE00
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_put_cabac_bit
	movl	4(%rbx), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %ecx
	leal	(%rcx,%rcx), %edx
	movl	%edx, (%rbx)
	addl	%eax, %eax
	movl	%eax, 4(%rbx)
	cmpl	$128, %ecx
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$255, %eax
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$511, %eax                      ## imm = 0x1FF
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	8(%rbx)
	addl	$-256, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_cabac_bit
	movl	4(%rbx), %eax
	addl	%r14d, %eax
	jmp	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_renorm_cabac_encoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function renorm_cabac_encoder
_renorm_cabac_encoder:                  ; @renorm_cabac_encoder
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cmp	w8, #255
	b.gt	LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_put_cabac_bit
	ldr	w8, [x19, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19]
	lsl	w10, w9, #1
	lsl	w8, w8, #1
	stp	w10, w8, [x19]
	cmp	w9, #128
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #255
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #511
	b.hi	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19, #8]
	add	w9, w9, #1
	str	w9, [x19, #8]
	sub	w8, w8, #256
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w1, #1
	bl	_put_cabac_bit
	ldr	w8, [x19, #4]
	sub	w8, w8, #512
	b	LBB0_3
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_renorm_cabac_encoder
.subsections_via_symbols
