	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rate_change                    ## -- Begin function rate_change
	.p2align	4, 0x90
_rate_change:                           ## @rate_change
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	24(%rdi), %rsi
	movq	32(%rdi), %rdi
	callq	_utree_merge
	leaq	16(%rbx), %r15
	movq	16(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rcx, (%rax)
LBB0_3:
	xorl	%edx, %edx
	cmpq	%rbx, 8(%rcx)
	sete	%dl
	movq	%rax, (%rcx,%rdx,8)
	movl	%r14d, %r12d
	shll	$8, %r12d
	xorl	%eax, %eax
	callq	_lrand48
	movzbl	%al, %eax
	orl	%r12d, %eax
	movl	%eax, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	$0, 16(%r15)
	movq	_rate_tree@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	_utree_insert_node
	movq	%rax, (%r15)
	movq	%r15, (%rax)
	movq	_UserRate@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	%r14d, (%rax,%rcx,4)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_4:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rate_tree,8,3                  ## @rate_tree
	.comm	_UserRate,8,3                   ## @UserRate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rate_change                    ; -- Begin function rate_change
	.p2align	2
_rate_change:                           ; @rate_change
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #32]
	ldr	x1, [x20, #24]
	bl	_utree_merge
	mov	x21, x20
	ldr	x8, [x21, #16]!
	cbz	x0, LBB0_3
; %bb.2:
	str	x8, [x0]
LBB0_3:
	ldr	x9, [x8, #8]
	cmp	x9, x20
	cset	w9, eq
	str	x0, [x8, w9, uxtw #3]
	bl	_lrand48
	bfi	w0, w19, #8, #24
	str	w0, [x20]
	stp	xzr, xzr, [x21, #8]
	str	xzr, [x21]
Lloh0:
	adrp	x21, _rate_tree@GOTPAGE
Lloh1:
	ldr	x21, [x21, _rate_tree@GOTPAGEOFF]
	ldr	x0, [x21]
	mov	x1, x20
	bl	_utree_insert_node
	str	x0, [x21]
	str	x21, [x0]
Lloh2:
	adrp	x8, _UserRate@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UserRate@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	str	w19, [x8, x9, lsl #2]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rate_tree,8,3                  ; @rate_tree
	.comm	_UserRate,8,3                   ; @UserRate
.subsections_via_symbols
