	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitstream_flush                ## -- Begin function bitstream_flush
	.p2align	4, 0x90
_bitstream_flush:                       ## @bitstream_flush
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	movl	8(%rdi), %eax
	cmpl	$8, %ecx
	jl	LBB0_2
## %bb.1:
	cmpl	$15, %ecx
	movl	$15, %edx
	cmovll	%ecx, %edx
	negl	%edx
	addl	%edx, %ecx
	addl	$7, %ecx
	shrl	$3, %ecx
	notl	%ecx
	addl	%ecx, %eax
	movl	%eax, 8(%rdi)
LBB0_2:
	movq	$0, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitstream_flush                ; -- Begin function bitstream_flush
	.p2align	2
_bitstream_flush:                       ; @bitstream_flush
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	ldr	w8, [x0, #8]
	cmp	w9, #8
	b.lt	LBB0_2
; %bb.1:
	mov	w10, #15
	cmp	w9, #15
	csel	w10, w9, w10, lt
	sub	w9, w9, w10
	add	w9, w9, #7
	mov	w10, #-1
	eor	w9, w10, w9, lsr #3
	add	w8, w8, w9
	str	w8, [x0, #8]
LBB0_2:
	str	xzr, [x0]
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
