	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm95245_set_conversion_rate
_lm95245_set_conversion_rate:           ## @lm95245_set_conversion_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$64, %rsi
	jge	LBB0_2
## %bb.1:
	movq	_RATE_CR0063@GOTPCREL(%rip), %rax
	movl	$63, %r14d
	jmp	LBB0_5
LBB0_2:
	cmpq	$365, %rsi                      ## imm = 0x16D
	jae	LBB0_4
## %bb.3:
	movq	_RATE_CR0364@GOTPCREL(%rip), %rax
	movl	$364, %r14d                     ## imm = 0x16C
	jmp	LBB0_5
LBB0_4:
	cmpq	$1001, %rsi                     ## imm = 0x3E9
	movl	$1000, %eax                     ## imm = 0x3E8
	movl	$2500, %r14d                    ## imm = 0x9C4
	cmovbq	%rax, %r14
	movq	_RATE_CR2500@GOTPCREL(%rip), %rax
	cmovbq	_RATE_CR1000@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movl	8(%rbx), %edi
	movq	_LM95245_REG_RW_CONVERS_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	%r14, (%rbx)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_CR0063,4,2                ## @RATE_CR0063
	.comm	_RATE_CR0364,4,2                ## @RATE_CR0364
	.comm	_RATE_CR1000,4,2                ## @RATE_CR1000
	.comm	_RATE_CR2500,4,2                ## @RATE_CR2500
	.comm	_LM95245_REG_RW_CONVERS_RATE,4,2 ## @LM95245_REG_RW_CONVERS_RATE
	.no_dead_strip	_lm95245_set_conversion_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm95245_set_conversion_rate
_lm95245_set_conversion_rate:           ; @lm95245_set_conversion_rate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _RATE_CR0063@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RATE_CR0063@GOTPAGEOFF]
	mov	w9, #63
Lloh2:
	adrp	x10, _RATE_CR0364@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RATE_CR0364@GOTPAGEOFF]
	mov	w11, #364
	mov	w12, #2500
	mov	w13, #1000
	cmp	x1, #1001
	csel	x12, x13, x12, lo
Lloh4:
	adrp	x13, _RATE_CR2500@GOTPAGE
Lloh5:
	ldr	x13, [x13, _RATE_CR2500@GOTPAGEOFF]
Lloh6:
	adrp	x14, _RATE_CR1000@GOTPAGE
Lloh7:
	ldr	x14, [x14, _RATE_CR1000@GOTPAGEOFF]
	csel	x13, x14, x13, lo
	cmp	x1, #365
	csel	x11, x11, x12, lo
	csel	x10, x10, x13, lo
	cmp	x1, #64
	csel	x20, x9, x11, lt
	csel	x8, x8, x10, lt
	ldr	w2, [x8]
	ldr	w0, [x0, #8]
Lloh8:
	adrp	x8, _LM95245_REG_RW_CONVERS_RATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LM95245_REG_RW_CONVERS_RATE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w0, #0
	str	x20, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_CR0063,4,2                ; @RATE_CR0063
	.comm	_RATE_CR0364,4,2                ; @RATE_CR0364
	.comm	_RATE_CR1000,4,2                ; @RATE_CR1000
	.comm	_RATE_CR2500,4,2                ; @RATE_CR2500
	.comm	_LM95245_REG_RW_CONVERS_RATE,4,2 ; @LM95245_REG_RW_CONVERS_RATE
	.no_dead_strip	_lm95245_set_conversion_rate
.subsections_via_symbols
