	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm_tmax_store
_pwm_tmax_store:                        ## @pwm_tmax_store
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	24(%rax), %rbx
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	movq	(%r12), %rcx
	imull	$1000, (%rax,%rcx,4), %eax      ## imm = 0x3E8
	addl	$-64000, %eax                   ## imm = 0xFFFF0600
	movq	-56(%rbp), %rdi
	cltq
	subq	%rax, %rdi
	callq	_find_trange_value
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_ADT7462_PWM_RANGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	8(%r13), %rcx
	movq	(%r12), %rdx
	movq	_ADT7462_PWM_HYST_MASK@GOTPCREL(%rip), %rsi
	movq	%rbx, %r15
	movl	(%rsi), %ebx
	andl	(%rcx,%rdx,4), %ebx
	orl	%eax, %ebx
	movq	%r13, %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	8(%r13), %rax
	movq	(%r12), %rdi
	movl	%ebx, (%rax,%rdi,4)
	callq	_ADT7462_REG_PWM_TRANGE
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ADT7462_PWM_RANGE_SHIFT,4,2    ## @ADT7462_PWM_RANGE_SHIFT
	.comm	_ADT7462_PWM_HYST_MASK,4,2      ## @ADT7462_PWM_HYST_MASK
	.no_dead_strip	_pwm_tmax_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm_tmax_store
_pwm_tmax_store:                        ; @pwm_tmax_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x23, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	mov	x21, x0
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x22, x0
	ldr	x20, [x0, #24]
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #10
	bl	_kstrtol
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	ldr	x8, [x22]
	ldr	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
	mov	w9, #1000
	mov	w10, #-64000
	madd	w8, w8, w9, w10
	ldr	x9, [sp, #8]
	sub	x0, x9, w8, sxtw
	bl	_find_trange_value
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _ADT7462_PWM_RANGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADT7462_PWM_RANGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	ldr	x9, [x22, #8]
	ldr	x10, [x21]
	ldr	w9, [x9, x10, lsl #2]
Lloh6:
	adrp	x10, _ADT7462_PWM_HYST_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ADT7462_PWM_HYST_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w23, w9, w8
	add	x24, x22, #16
	mov	x0, x24
	bl	_mutex_lock
	ldr	x8, [x22, #8]
	ldr	x0, [x21]
	str	w23, [x8, x0, lsl #2]
	bl	_ADT7462_REG_PWM_TRANGE
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	bl	_i2c_smbus_write_byte_data
	mov	x0, x24
	bl	_mutex_unlock
	mov	x0, x19
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADT7462_PWM_RANGE_SHIFT,4,2    ; @ADT7462_PWM_RANGE_SHIFT
	.comm	_ADT7462_PWM_HYST_MASK,4,2      ; @ADT7462_PWM_HYST_MASK
	.no_dead_strip	_pwm_tmax_store
.subsections_via_symbols
