	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max6621_write
_max6621_write:                         ## @max6621_write
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %ebx
	callq	_dev_get_drvdata
	cmpl	$130, %ebx
	jne	LBB0_6
## %bb.1:
	movq	%rax, %r14
	cmpl	$129, %r13d
	je	LBB0_5
## %bb.2:
	cmpl	$128, %r13d
	jne	LBB0_6
## %bb.3:
	movq	_MAX6621_TEMP_INPUT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX6621_TEMP_INPUT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_clamp_val
	movq	%rax, %rdi
	callq	_max6621_temp_mc2reg
	movl	(%r14), %edi
	movq	_MAX6621_CONFIG2_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdx
	jmp	LBB0_4
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_MAX6621_TEMP_ALERT_CHAN_SHIFT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%r12d, %rcx
	subq	%rax, %rcx
	movq	_max6621_temp_alert_chan2reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %ebx
	movq	_MAX6621_TEMP_INPUT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX6621_TEMP_INPUT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_clamp_val
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	imulq	%rcx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	movl	(%r14), %edi
	movl	%ebx, %esi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX6621_TEMP_INPUT_MIN,4,2     ## @MAX6621_TEMP_INPUT_MIN
	.comm	_MAX6621_TEMP_INPUT_MAX,4,2     ## @MAX6621_TEMP_INPUT_MAX
	.comm	_MAX6621_CONFIG2_REG,4,2        ## @MAX6621_CONFIG2_REG
	.comm	_MAX6621_TEMP_ALERT_CHAN_SHIFT,4,2 ## @MAX6621_TEMP_ALERT_CHAN_SHIFT
	.comm	_max6621_temp_alert_chan2reg,8,3 ## @max6621_temp_alert_chan2reg
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_max6621_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max6621_write
_max6621_write:                         ; @max6621_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	bl	_dev_get_drvdata
	cmp	w23, #130
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	cmp	w22, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w22, #128
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _MAX6621_TEMP_INPUT_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX6621_TEMP_INPUT_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MAX6621_TEMP_INPUT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX6621_TEMP_INPUT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_clamp_val
	bl	_max6621_temp_mc2reg
	mov	x2, x0
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _MAX6621_CONFIG2_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX6621_CONFIG2_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh12:
	adrp	x8, _MAX6621_TEMP_ALERT_CHAN_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX6621_TEMP_ALERT_CHAN_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	sub	w8, w21, w8
Lloh15:
	adrp	x9, _max6621_temp_alert_chan2reg@GOTPAGE
Lloh16:
	ldr	x9, [x9, _max6621_temp_alert_chan2reg@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	w21, [x9, w8, sxtw #2]
Lloh18:
	adrp	x8, _MAX6621_TEMP_INPUT_MIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX6621_TEMP_INPUT_MIN@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _MAX6621_TEMP_INPUT_MAX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX6621_TEMP_INPUT_MAX@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_clamp_val
	mov	x8, #63439
	movk	x8, #58195, lsl #16
	movk	x8, #39845, lsl #32
	movk	x8, #8388, lsl #48
	smulh	x8, x0, x8
	asr	x9, x8, #7
	add	x2, x9, x8, lsr #63
	ldr	w0, [x19]
	mov	x1, x21
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_regmap_write
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX6621_TEMP_INPUT_MIN,4,2     ; @MAX6621_TEMP_INPUT_MIN
	.comm	_MAX6621_TEMP_INPUT_MAX,4,2     ; @MAX6621_TEMP_INPUT_MAX
	.comm	_MAX6621_CONFIG2_REG,4,2        ; @MAX6621_CONFIG2_REG
	.comm	_MAX6621_TEMP_ALERT_CHAN_SHIFT,4,2 ; @MAX6621_TEMP_ALERT_CHAN_SHIFT
	.comm	_max6621_temp_alert_chan2reg,8,3 ; @max6621_temp_alert_chan2reg
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_max6621_write
.subsections_via_symbols
