	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm90_set_convrate
_lm90_set_convrate:                     ## @lm90_set_convrate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_LM90_MAX_CONVRATE_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	$6, %ebx
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	shll	$6, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%rbx,2), %ecx
	shrl	$2, %ecx
	cmpl	%ecx, %edx
	jae	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%esi
	shrl	%ebx
	cmpl	%esi, %eax
	jne	LBB0_3
## %bb.5:
	movl	%eax, %esi
	jmp	LBB0_6
LBB0_1:
	xorl	%esi, %esi
LBB0_6:
	movq	%r14, %rdi
	callq	_lm90_write_convrate
	movl	%eax, %r15d
	movl	%ebx, %edi
	movl	$64, %esi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, 4(%r14)
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM90_MAX_CONVRATE_MS,4,2       ## @LM90_MAX_CONVRATE_MS
	.no_dead_strip	_lm90_set_convrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm90_set_convrate
_lm90_set_convrate:                     ; @lm90_set_convrate
	.cfi_startproc
; %bb.0:
	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
Lloh0:
	adrp	x8, _LM90_MAX_CONVRATE_MS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM90_MAX_CONVRATE_MS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w20, w8, #6
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w1, #0
	lsl	w9, w2, #6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w10, w20, w20, lsl #1
	cmp	w9, w10, lsr #2
	b.hs	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w1, w1, #1
	lsr	w20, w20, #1
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.4:
	mov	x1, x8
	b	LBB0_6
LBB0_5:
	mov	w1, #0
LBB0_6:
	mov	x0, x19
	bl	_lm90_write_convrate
	mov	x21, x0
	mov	x0, x20
	mov	w1, #64
	bl	_DIV_ROUND_CLOSEST
	str	w0, [x19, #4]
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LM90_MAX_CONVRATE_MS,4,2       ; @LM90_MAX_CONVRATE_MS
	.no_dead_strip	_lm90_set_convrate
.subsections_via_symbols
