	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convrate_store
_convrate_store:                        ## @convrate_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_lm73_convrates@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	cmpl	$2, %eax
	jl	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rax
	movq	(%r12), %rdi
	cmpq	(%rdi,%rbx,8), %rax
	jbe	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	decl	%eax
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_6:
	movq	%r15, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_LM73_CTRL_TO_MASK@GOTPCREL(%rip), %rax
	movl	(%r15), %edx
	movl	8(%r15), %edi
	andl	(%rax), %edx
	movl	%edx, (%r15)
	movq	_LM73_CTRL_RES_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%edx, %ebx
	movl	%ebx, (%r15)
	movq	_LM73_REG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_mutex_unlock
	testq	%rbx, %rbx
	cmovsq	%rbx, %r14
	jmp	LBB0_7
LBB0_1:
	movq	%rax, %r14
LBB0_7:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lm73_convrates,8,3             ## @lm73_convrates
	.comm	_LM73_CTRL_TO_MASK,4,2          ## @LM73_CTRL_TO_MASK
	.comm	_LM73_CTRL_RES_SHIFT,4,2        ## @LM73_CTRL_RES_SHIFT
	.comm	_LM73_REG_CTRL,4,2              ## @LM73_REG_CTRL
	.no_dead_strip	_convrate_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convrate_store
_convrate_store:                        ; @convrate_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtoul
	tbnz	x0, #63, LBB0_7
; %bb.1:
Lloh0:
	adrp	x21, _lm73_convrates@GOTPAGE
Lloh1:
	ldr	x21, [x21, _lm73_convrates@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #2
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	x0, [x21]
	ldr	x9, [x0, x22, lsl #3]
	cmp	x8, x9
	b.ls	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	cmp	x22, w8, sxtw
	b.lt	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
Lloh2:
	adrp	x8, _LM73_CTRL_TO_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LM73_CTRL_TO_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x20]
	and	w8, w9, w8
	str	w8, [x20]
Lloh5:
	adrp	x9, _LM73_CTRL_RES_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LM73_CTRL_RES_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w9, w22, w9
	orr	w2, w9, w8
	str	w2, [x20]
	ldr	w0, [x20, #8]
Lloh8:
	adrp	x8, _LM73_REG_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LM73_REG_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_i2c_smbus_write_byte_data
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_unlock
	cmp	x20, #0
	csel	x0, x20, x19, lt
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_lm73_convrates,8,3             ; @lm73_convrates
	.comm	_LM73_CTRL_TO_MASK,4,2          ; @LM73_CTRL_TO_MASK
	.comm	_LM73_CTRL_RES_SHIFT,4,2        ; @LM73_CTRL_RES_SHIFT
	.comm	_LM73_REG_CTRL,4,2              ; @LM73_REG_CTRL
	.no_dead_strip	_convrate_store
.subsections_via_symbols
