	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sw_get_bits
_sw_get_bits:                           ## @sw_get_bits
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%ecx, %r9d
	movl	%edx, %r8d
	movl	%esi, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movl	%eax, %r15d
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	xorl	%r10d, %r10d
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movl	%r8d, %r11d
	andl	$-2, %r11d
	xorl	%r14d, %r14d
	xorl	%r10d, %r10d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r15d, %r15
	movzbl	(%rdi,%r15), %ecx
	xorl	%ebx, %ebx
	btl	%edx, %ecx
	setb	%bl
	movl	%r10d, %ecx
	shll	%cl, %ebx
	leal	1(%rdx), %esi
	orl	%eax, %ebx
	xorl	%eax, %eax
	cmpl	%r9d, %esi
	sete	%al
	cmovel	%r14d, %esi
	addl	%eax, %r15d
	movslq	%r15d, %r15
	movzbl	(%rdi,%r15), %r12d
	leal	1(%rsi), %edx
	xorl	%eax, %eax
	btl	%esi, %r12d
	setb	%al
	addl	$2, %r10d
	incl	%ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%ebx, %eax
	xorl	%ecx, %ecx
	cmpl	%r9d, %edx
	sete	%cl
	cmovel	%r14d, %edx
	addl	%ecx, %r15d
	cmpl	%r11d, %r10d
	jne	LBB0_5
LBB0_6:
	testb	$1, %r8b
	je	LBB0_8
## %bb.7:
	movslq	%r15d, %rcx
	movzbl	(%rdi,%rcx), %ecx
	xorl	%esi, %esi
	btl	%edx, %ecx
	setb	%sil
	movl	%r10d, %ecx
	shll	%cl, %esi
	orl	%esi, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sw_get_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sw_get_bits
_sw_get_bits:                           ; @sw_get_bits
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_4
; %bb.1:
	mov	x8, x0
	mov	w11, #0
	mov	w0, #0
	sdiv	w9, w1, w3
	msub	w10, w9, w3, w1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x8, w9, sxtw]
	add	w13, w10, #1
	lsr	w12, w12, w10
	and	w12, w12, #0x1
	lsl	w12, w12, w11
	add	w14, w11, #1
	orr	w0, w12, w0
	cmp	w13, w3
	csinc	w10, wzr, w10, eq
	cinc	w9, w9, eq
	mov	x11, x14
	cmp	w2, w14
	b.ne	LBB0_2
; %bb.3:
	ret
LBB0_4:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sw_get_bits
.subsections_via_symbols
