	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmbus_reg2data_linear
_pmbus_reg2data_linear:                 ## @pmbus_reg2data_linear
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rcx
	movq	_PSC_VOLTAGE_OUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_2
## %bb.1:
	movq	(%rdi), %rax
	movq	8(%rsi), %rdx
	movl	(%rax,%rdx,4), %edx
	movslq	16(%rsi), %rax
	jmp	LBB0_3
LBB0_2:
	movl	16(%rsi), %eax
	movl	%eax, %edx
	sarl	$11, %edx
	andl	$2047, %eax                     ## imm = 0x7FF
LBB0_3:
	movq	_PSC_FAN@GOTPCREL(%rip), %rsi
	imulq	$1000, %rax, %rdi               ## imm = 0x3E8
	cmpq	(%rsi), %rcx
	cmoveq	%rax, %rdi
	movq	_PSC_POWER@GOTPCREL(%rip), %rsi
	imulq	$1000, %rdi, %rax               ## imm = 0x3E8
	cmpq	(%rsi), %rcx
	cmovneq	%rdi, %rax
	movq	%rax, %rsi
	movl	%edx, %ecx
	shlq	%cl, %rsi
	negb	%cl
	sarq	%cl, %rax
	testl	%edx, %edx
	cmovnsq	%rsi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSC_VOLTAGE_OUT,8,3            ## @PSC_VOLTAGE_OUT
	.comm	_PSC_FAN,8,3                    ## @PSC_FAN
	.comm	_PSC_POWER,8,3                  ## @PSC_POWER
	.no_dead_strip	_pmbus_reg2data_linear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmbus_reg2data_linear
_pmbus_reg2data_linear:                 ; @pmbus_reg2data_linear
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _PSC_VOLTAGE_OUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PSC_VOLTAGE_OUT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x0]
	ldr	x10, [x1, #8]
	ldr	w9, [x9, x10, lsl #2]
	ldrsw	x10, [x1, #16]
	b	LBB0_3
LBB0_2:
	ldr	w10, [x1, #16]
	asr	w9, w10, #11
	and	x10, x10, #0x7ff
LBB0_3:
Lloh3:
	adrp	x11, _PSC_FAN@GOTPAGE
Lloh4:
	ldr	x11, [x11, _PSC_FAN@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	mov	w12, #1000
	mul	x13, x10, x12
	cmp	x8, x11
	csel	x10, x10, x13, eq
Lloh6:
	adrp	x11, _PSC_POWER@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PSC_POWER@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	mul	x12, x10, x12
	cmp	x8, x11
	csel	x8, x12, x10, eq
	lsl	x10, x8, x9
	neg	w11, w9
	asr	x8, x8, x11
	cmp	w9, #0
	csel	x0, x8, x10, lt
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PSC_VOLTAGE_OUT,8,3            ; @PSC_VOLTAGE_OUT
	.comm	_PSC_FAN,8,3                    ; @PSC_FAN
	.comm	_PSC_POWER,8,3                  ; @PSC_POWER
	.no_dead_strip	_pmbus_reg2data_linear
.subsections_via_symbols
