	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsb_encode
_rsb_encode:                            ## @rsb_encode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rdi, %r13
	leal	4(%r12), %r15d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	movl	%r15d, %esi
	callq	_MIN
	xorl	%ebx, %ebx
	cmpl	%r12d, %eax
	jle	LBB0_3
## %bb.1:
	movslq	%r12d, %r12
	leaq	(%r13,%r12,8), %r13
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%r14,8), %eax
	movq	_NBBY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%r14d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	callq	_MIN
	cltq
	leaq	(%r12,%r14), %rcx
	incq	%rcx
	incq	%r14
	cmpq	%rax, %rcx
	jl	LBB0_2
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NBBY,4,2                       ## @NBBY
	.no_dead_strip	_rsb_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsb_encode
_rsb_encode:                            ; @rsb_encode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	add	w20, w2, #4
	mov	x0, x1
	mov	x1, x20
	bl	_MIN
	cmp	w0, w22
	b.le	LBB0_3
; %bb.1:
	mov	x24, #0
	mov	w21, #0
	sxtw	x25, w22
Lloh0:
	adrp	x26, _NBBY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NBBY@GOTPAGEOFF]
	add	x22, x23, w22, sxtw #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, x24, lsl #3]
	ldr	w9, [x26]
	mul	w9, w9, w24
	lsl	w8, w8, w9
	orr	w21, w8, w21
	mov	x0, x19
	mov	x1, x20
	bl	_MIN
	add	x24, x24, #1
	add	x8, x25, x24
	cmp	x8, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NBBY,4,2                       ; @NBBY
	.no_dead_strip	_rsb_encode
.subsections_via_symbols
