	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bits_get
_bits_get:                              ## @bits_get
	.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
	.cfi_offset %rbx, -24
	movl	(%rdi), %r8d
	movl	4(%rdi), %eax
	movl	%r8d, %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
	jmp	LBB0_4
LBB0_2:
	movq	_bitmask@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	andl	(%r9,%rdx,4), %eax
	movl	%esi, %r10d
	subl	%edx, %r10d
	movl	%r10d, %ecx
	shll	%cl, %eax
	leal	(%rdx,%r8), %ecx
	movl	%ecx, (%rdi)
	sarl	$3, %ecx
	movq	8(%rdi), %r11
	movslq	%ecx, %rcx
	movl	(%r11,%rcx,4), %edx
	movl	4(%r11,%rcx,4), %ebx
	shll	$24, %edx
	shll	$16, %ebx
	orl	%edx, %ebx
	movl	8(%r11,%rcx,4), %edx
	shll	$8, %edx
	orl	%ebx, %edx
	orl	12(%r11,%rcx,4), %edx
	movl	%edx, 4(%rdi)
	testl	%r10d, %r10d
	jle	LBB0_5
## %bb.3:
	movl	%r10d, %ecx
	negb	%cl
	sarl	%cl, %edx
	movl	%r10d, %ecx
	andl	(%r9,%rcx,4), %edx
	orl	%edx, %eax
LBB0_4:
	addl	%esi, %r8d
	movl	%r8d, (%rdi)
LBB0_5:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bitmask,8,3                    ## @bitmask
	.no_dead_strip	_bits_get
.subsections_via_symbols

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