	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scmi_hwmon_scale
_scmi_hwmon_scale:                      ## @scmi_hwmon_scale
	.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	(%rdi), %rbx
	movl	8(%rdi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_4
## %bb.1:
	movl	$19, %ecx
	btl	%eax, %ecx
	jae	LBB0_3
## %bb.2:
	addq	$3, %rbx
	jmp	LBB0_4
LBB0_3:
	addq	$6, %rbx
LBB0_4:
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.5:
	movq	%rbx, %rdi
	callq	_abs
	cmpl	$20, %eax
	jl	LBB0_7
## %bb.6:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_7:
	movq	%rbx, %rdi
	callq	_abs
	movl	%eax, %edi
	callq	___pow10
	movl	%eax, %esi
	movl	(%r14), %eax
	testq	%rbx, %rbx
	jle	LBB0_9
## %bb.8:
	imull	%esi, %eax
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %edi
	callq	_div64_u64
LBB0_10:
	movl	%eax, (%r14)
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E2BIG,4,2                      ## @E2BIG
	.no_dead_strip	_scmi_hwmon_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scmi_hwmon_scale
_scmi_hwmon_scale:                      ; @scmi_hwmon_scale
	.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
	ldr	x8, [x0]
	ldr	w9, [x0, #8]
	sub	w9, w9, #128
	mov	w10, #1
	lsl	w10, w10, w9
	mov	w11, #19
	tst	w10, w11
	add	x10, x8, #3
	add	x11, x8, #6
	csel	x10, x10, x11, ne
	cmp	w9, #4
	csel	x20, x8, x10, hi
	cbz	x20, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x0, x20
	bl	_abs
	cmp	w0, #20
	b.lt	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _E2BIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	mov	x0, x20
	bl	_abs
	bl	___pow10
	mov	x1, x0
	ldr	w0, [x19]
	cmp	x20, #1
	b.lt	LBB0_6
; %bb.5:
	mul	w8, w0, w1
	b	LBB0_7
LBB0_6:
	bl	_div64_u64
	mov	x8, x0
LBB0_7:
	mov	w0, #0
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_E2BIG,4,2                      ; @E2BIG
	.no_dead_strip	_scmi_hwmon_scale
.subsections_via_symbols
