	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_cabac_bypass
_put_cabac_bypass:                      ## @put_cabac_bypass
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	addl	%eax, %eax
	movl	%eax, (%rdi)
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	addl	8(%rbx), %eax
	movl	%eax, (%rbx)
LBB0_2:
	cmpl	$511, %eax                      ## imm = 0x1FF
	jg	LBB0_3
## %bb.7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_put_cabac_bit                  ## TAILCALL
LBB0_3:
	cmpl	$1023, %eax                     ## imm = 0x3FF
	ja	LBB0_5
## %bb.4:
	incl	4(%rbx)
	addl	$-512, %eax                     ## imm = 0xFE00
	movl	%eax, (%rbx)
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_cabac_bit
	addl	$-1024, (%rbx)                  ## imm = 0xFC00
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_put_cabac_bypass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_cabac_bypass
_put_cabac_bypass:                      ; @put_cabac_bypass
	.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
	mov	x19, x0
	ldr	w8, [x0]
	lsl	w8, w8, #1
	str	w8, [x0]
	cbz	w1, LBB0_2
; %bb.1:
	ldr	w9, [x19, #8]
	add	w8, w8, w9
	str	w8, [x19]
LBB0_2:
	cmp	w8, #511
	b.gt	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_put_cabac_bit
LBB0_4:
	cmp	w8, #1023
	b.hi	LBB0_6
; %bb.5:
	ldr	w9, [x19, #4]
	add	w9, w9, #1
	sub	w8, w8, #512
	str	w9, [x19, #4]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	w1, #1
	bl	_put_cabac_bit
	ldr	w8, [x19]
	sub	w8, w8, #1024
LBB0_7:
	str	w8, [x19]
	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	_put_cabac_bypass
.subsections_via_symbols
