	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bits_peek
_bits_peek:                             ## @bits_peek
	.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), %r9d
	movl	4(%rdi), %eax
	movl	%r9d, %ecx
	andl	$31, %ecx
	movl	$32, %edx
	subq	%rcx, %rdx
	movl	%edx, %ecx
	subl	%esi, %ecx
	jle	LBB0_2
## %bb.1:
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movq	_bitmask@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%esi, %rdx
	andl	(%rcx,%rdx,4), %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_bitmask@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	andl	(%r8,%rdx,4), %eax
	subl	%edx, %esi
	movl	%esi, %ecx
	shll	%cl, %eax
	testl	%esi, %esi
	jle	LBB0_4
## %bb.3:
	addl	%edx, %r9d
	sarl	$3, %r9d
	movq	8(%rdi), %r10
	movslq	%r9d, %rdx
	movl	(%r10,%rdx,4), %edi
	movl	4(%r10,%rdx,4), %ecx
	shll	$24, %edi
	shll	$16, %ecx
	orl	%edi, %ecx
	movl	8(%r10,%rdx,4), %edi
	shll	$8, %edi
	orl	%ecx, %edi
	orl	12(%r10,%rdx,4), %edi
	movl	%esi, %ecx
	negb	%cl
	sarl	%cl, %edi
	movl	%esi, %ecx
	andl	(%r8,%rcx,4), %edi
	orl	%edi, %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bitmask,8,3                    ## @bitmask
	.no_dead_strip	_bits_peek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bits_peek
_bits_peek:                             ; @bits_peek
	.cfi_startproc
; %bb.0:
	ldp	w10, w11, [x0]
	and	x9, x10, #0x1f
	mov	w12, #32
	sub	x12, x12, x9
	subs	w9, w12, w1
	b.le	LBB0_2
; %bb.1:
	asr	w8, w11, w9
Lloh0:
	adrp	x9, _bitmask@GOTPAGE
Lloh1:
	ldr	x9, [x9, _bitmask@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w9, [x9, w1, sxtw #2]
	and	w0, w9, w8
	ret
LBB0_2:
	mov	x8, x0
Lloh3:
	adrp	x9, _bitmask@GOTPAGE
Lloh4:
	ldr	x9, [x9, _bitmask@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w13, [x9, x12, lsl #2]
	and	w13, w13, w11
	sub	w11, w1, w12
	lsl	w0, w13, w11
	cmp	w11, #1
	b.lt	LBB0_4
; %bb.3:
	add	w10, w12, w10
	asr	w10, w10, #3
	ldr	x8, [x8, #8]
	add	x8, x8, w10, sxtw #2
	ldp	w10, w12, [x8]
	lsl	w12, w12, #16
	orr	w10, w12, w10, lsl #24
	ldp	w12, w8, [x8, #8]
	orr	w10, w10, w12, lsl #8
	orr	w8, w10, w8
	neg	w10, w11
	asr	w8, w8, w10
	ldr	w9, [x9, w11, uxtw #2]
	and	w8, w8, w9
	orr	w0, w8, w0
LBB0_4:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_bitmask,8,3                    ; @bitmask
	.no_dead_strip	_bits_peek
.subsections_via_symbols
