	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_set_recommend_rate          ## -- Begin function do_set_recommend_rate
	.p2align	4, 0x90
_do_set_recommend_rate:                 ## @do_set_recommend_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	movq	_RECOMMEND_MODE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movl	%esi, %r14d
	movl	%edi, %ebx
	callq	_valid_type
	cmpl	$255, %r14d
	ja	LBB0_4
## %bb.2:
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_recommend_rate_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	shll	$8, %ecx
	addl	%r14d, %ecx
	movslq	%ecx, %rcx
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rax,%rcx,8), %xmm0
	subsd	-24(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %rdi
	callq	_fabs
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	movq	_LEV_NEWS_SET_RECOMMEND_RATE@GOTPCREL(%rip), %rax
	movslq	%ebx, %rdi
	addq	(%rax), %rdi
	movl	$8, %esi
	movl	%r14d, %edx
	callq	_alloc_log_event
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rax)
	movq	%rax, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_set_recommend_rate             ## TAILCALL
LBB0_4:
	movl	$-1, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RECOMMEND_MODE,4,2             ## @RECOMMEND_MODE
	.comm	_recommend_rate_tbl,8,3         ## @recommend_rate_tbl
	.comm	_LEV_NEWS_SET_RECOMMEND_RATE,8,3 ## @LEV_NEWS_SET_RECOMMEND_RATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_set_recommend_rate          ; -- Begin function do_set_recommend_rate
	.p2align	2
_do_set_recommend_rate:                 ; @do_set_recommend_rate
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
Lloh0:
	adrp	x8, _RECOMMEND_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RECOMMEND_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
	fmov	d8, d0
	mov	x19, x1
	mov	x20, x0
	bl	_valid_type
	cmp	w19, #255
	b.hi	LBB0_5
; %bb.2:
	cbz	w0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _recommend_rate_tbl@GOTPAGE
Lloh4:
	ldr	x8, [x8, _recommend_rate_tbl@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	w9, w19, w20, lsl #8
	ldr	d0, [x8, w9, sxtw #3]
	scvtf	d0, d0
	fsub	d0, d0, d8
	fcvtzs	x0, d0
	bl	_fabs
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _LEV_NEWS_SET_RECOMMEND_RATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LEV_NEWS_SET_RECOMMEND_RATE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, w20, sxtw
	mov	w1, #8
	mov	x2, x19
	bl	_alloc_log_event
	str	d8, [x0]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	b	_set_recommend_rate
LBB0_5:
	mov	w0, #-1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RECOMMEND_MODE,4,2             ; @RECOMMEND_MODE
	.comm	_recommend_rate_tbl,8,3         ; @recommend_rate_tbl
	.comm	_LEV_NEWS_SET_RECOMMEND_RATE,8,3 ; @LEV_NEWS_SET_RECOMMEND_RATE
.subsections_via_symbols
