	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitstream_peek                 ## -- Begin function bitstream_peek
	.p2align	4, 0x90
_bitstream_peek:                        ## @bitstream_peek
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r9d
	cmpl	%esi, %r9d
	jge	LBB0_9
## %bb.3:
	cmpl	$24, %r9d
	jg	LBB0_9
## %bb.4:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %r8
	movl	$24, %ecx
	subl	%r9d, %ecx
	addl	$-8, %r9d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	leal	16(%r9), %eax
	movl	%eax, (%rdi)
	addl	$8, %r9d
	addl	$-8, %ecx
	cmpl	$17, %r9d
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r8, %rdx
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rdi), %rax
	movl	(%rax,%rdx,4), %eax
	shll	%cl, %eax
	orl	%eax, 24(%rdi)
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	retq
LBB0_8:
	movq	%rdx, 8(%rdi)
LBB0_9:
	movl	24(%rdi), %eax
	negb	%sil
	movl	%esi, %ecx
	sarl	%cl, %eax
	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_peek                 ; -- Begin function bitstream_peek
	.p2align	2
_bitstream_peek:                        ; @bitstream_peek
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_6
; %bb.1:
	ldr	w11, [x0]
	cmp	w11, w1
	ccmp	w11, #24, #0, lt
	b.gt	LBB0_8
; %bb.2:
	ldp	x8, x9, [x0, #8]
	sub	w10, w11, #8
	mov	w12, #24
	sub	w11, w12, w11
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	add	w12, w10, #16
	str	w12, [x0]
	add	w10, w10, #8
	sub	w11, w11, #8
	cmp	w10, #17
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x0, #32]
	ldr	w12, [x12, x8, lsl #2]
	lsl	w12, w12, w11
	ldr	w13, [x0, #24]
	orr	w12, w13, w12
	str	w12, [x0, #24]
	b	LBB0_3
LBB0_6:
	mov	w0, #0
	ret
LBB0_7:
	str	x8, [x0, #8]
LBB0_8:
	ldr	w8, [x0, #24]
	neg	w9, w1
	asr	w0, w8, w9
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
