	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_rlen_ug                    ## -- Begin function set_rlen_ug
	.p2align	4, 0x90
_set_rlen_ug:                           ## @set_rlen_ug
	.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	%edi, %ebx
	movq	_CC@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %eax
	movq	_MAX_NEWS_BUCKETS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setle	%dil
	callq	_assert
	movq	(%r14), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	jle	LBB0_3
## %bb.1:
	movq	_Rlen@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_Rfirst@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rcx,%rsi,8)
	movl	$-1, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%rax), %r12
	cmpq	%r12, %rsi
	jl	LBB0_2
LBB0_3:
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.4:
	movl	%r12d, %eax
	shrl	$31, %eax
	addl	%r12d, %eax
	sarl	%eax
	movl	%eax, %r12d
LBB0_5:
	movq	_Q_size@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	jle	LBB0_21
## %bb.6:
	leaq	-4(,%r15,4), %r13
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-1(%r15), %r14
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_CC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %eax
	andl	$7, %eax
	cmpl	$3, %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$2, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_Q@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%r14,2), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	$4, %rax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_Q@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r13, %rax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_Q@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%r14,2), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	$8, %rax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%r14,%r14,2), %rax
	shlq	$2, %rax
	movq	_Q@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rax), %ecx
	movl	%ecx, %eax
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	negl	%eax
	cmovsl	%ecx, %eax
	cltd
	idivl	%r12d
	movl	%edx, %ebx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	cltd
	idivl	%r12d
	movl	%edx, %ebx
	testl	%ecx, %ecx
	jns	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r12d, %ebx
	subl	%edx, %ebx
	js	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_CC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	(%rax), %ebx
	setl	%al
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movzbl	%al, %edi
	callq	_assert
	movq	_Rfirst@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %edx
	movq	_QN@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, -4(%rsi,%r15,4)
	decl	%r15d
	movl	%r15d, (%rax,%rcx,4)
	movq	_Rlen@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	(%rax,%rcx,8)
	leaq	1(%r14), %rax
	addq	$-4, %r13
	movq	%r14, %r15
	cmpq	$1, %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	ja	LBB0_7
	jmp	LBB0_21
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CC,8,3                         ## @CC
	.comm	_MAX_NEWS_BUCKETS,4,2           ## @MAX_NEWS_BUCKETS
	.comm	_Rlen,8,3                       ## @Rlen
	.comm	_Rfirst,8,3                     ## @Rfirst
	.comm	_Q_size,4,2                     ## @Q_size
	.comm	_Q,8,3                          ## @Q
	.comm	_QN,8,3                         ## @QN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_rlen_ug                    ; -- Begin function set_rlen_ug
	.p2align	2
_set_rlen_ug:                           ; @set_rlen_ug
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x20, _CC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CC@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _MAX_NEWS_BUCKETS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_NEWS_BUCKETS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, le
	bl	_assert
	ldr	x8, [x20]
	ldr	w9, [x8]
Lloh5:
	adrp	x22, _Rlen@GOTPAGE
Lloh6:
	ldr	x22, [x22, _Rlen@GOTPAGEOFF]
Lloh7:
	adrp	x27, _Rfirst@GOTPAGE
Lloh8:
	ldr	x27, [x27, _Rfirst@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x10, #0
	ldr	x11, [x22]
	ldr	x12, [x27]
	mov	w13, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x11, x10, lsl #3]
	str	w13, [x12, x10, lsl #2]
	add	x10, x10, #1
	ldrsw	x9, [x8]
	cmp	x10, x9
	b.lt	LBB0_2
LBB0_3:
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w8, w8, #1
	cmp	w19, #0
	csel	w23, w8, w9, eq
Lloh9:
	adrp	x8, _Q_size@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Q_size@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
	cmp	w24, #1
	b.lt	LBB0_18
; %bb.4:
	add	x25, x24, #1
	lsl	x8, x24, #2
	sub	x26, x8, #4
Lloh12:
	adrp	x28, _QN@GOTPAGE
Lloh13:
	ldr	x28, [x28, _QN@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x24, x24, #1
	cmp	w19, #0
	b.le	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	and	w8, w8, #0x7
	cmp	w8, #3
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #2
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x8, _Q@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Q@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	mov	w9, #12
	madd	x8, x24, x9, x8
	add	x8, x8, #4
	ldr	w8, [x8]
	cbnz	w19, LBB0_11
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh17:
	adrp	x8, _Q@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Q@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	add	x8, x8, x26
	ldr	w8, [x8]
	cbnz	w19, LBB0_11
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh20:
	adrp	x8, _Q@GOTPAGE
Lloh21:
	ldr	x8, [x8, _Q@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	mov	w9, #12
	madd	x8, x24, x9, x8
	add	x8, x8, #8
	ldr	w8, [x8]
	cbz	w19, LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #0
	cneg	w8, w8, mi
	sdiv	w9, w8, w23
	msub	w21, w9, w23, w8
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh23:
	adrp	x8, _Q@GOTPAGE
Lloh24:
	ldr	x8, [x8, _Q@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	mov	w9, #12
	madd	x8, x24, x9, x8
	ldr	w8, [x8]
	cbnz	w19, LBB0_11
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	sdiv	w9, w8, w23
	msub	w21, w9, w23, w8
	tbz	w8, #31, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	subs	w21, w23, w21
	b.mi	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w21, w8
	cset	w0, lt
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_assert
	mov	x8, x27
	ldr	x8, [x27]
	sbfiz	x9, x21, #2, #32
	ldr	w10, [x8, x9]
	ldr	x11, [x28]
	str	w10, [x11, x26]
	sub	x25, x25, #1
	sub	w10, w25, #1
	str	w10, [x8, x9]
	mov	x8, x22
	ldr	x8, [x22]
	sbfiz	x9, x21, #3, #32
	ldr	x10, [x8, x9]
	add	x10, x10, #1
	str	x10, [x8, x9]
	sub	x26, x26, #4
	cmp	x25, #1
	b.hi	LBB0_5
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	b	LBB0_16
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_CC,8,3                         ; @CC
	.comm	_MAX_NEWS_BUCKETS,4,2           ; @MAX_NEWS_BUCKETS
	.comm	_Rlen,8,3                       ; @Rlen
	.comm	_Rfirst,8,3                     ; @Rfirst
	.comm	_Q_size,4,2                     ; @Q_size
	.comm	_Q,8,3                          ; @Q
	.comm	_QN,8,3                         ; @QN
.subsections_via_symbols
