	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function interval_store
_interval_store:                        ## @interval_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-48(%rbp), %r12
	movq	_stts751_intervals@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_find_closest_descending
	movl	%eax, %r12d
	movq	8(%r15), %rdi
	movq	-48(%rbp), %rdx
	movq	(%r13), %rax
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r15, %r13
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	cmpl	%r12d, (%r15)
	jne	LBB0_3
LBB0_8:
	movl	%r14d, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	jge	LBB0_5
## %bb.4:
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%r12d, (%r15)
	movq	%r15, %rdi
	callq	_stts751_adjust_resolution
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
LBB0_5:
	movq	8(%r15), %rdi
	movq	_STTS751_REG_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_9:
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	%r12d, (%r15)
	je	LBB0_8
## %bb.7:
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%r12d, (%r15)
	movq	%r15, %rdi
	callq	_stts751_adjust_resolution
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_stts751_intervals,8,3          ## @stts751_intervals
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting interval. req:%lu, idx: %d, val: %d"

L_.str.1:                               ## @.str.1
	.asciz	"lower resolution, then modify convrate"

	.comm	_STTS751_REG_RATE,4,2           ## @STTS751_REG_RATE
L_.str.2:                               ## @.str.2
	.asciz	"modify convrate, then raise resolution"

	.no_dead_strip	_interval_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function interval_store
_interval_store:                        ; @interval_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #24
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtoul
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	x21, [sp, #24]
Lloh0:
	adrp	x23, _stts751_intervals@GOTPAGE
Lloh1:
	ldr	x23, [x23, _stts751_intervals@GOTPAGEOFF]
	ldr	x22, [x23]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_find_closest_descending
	mov	x22, x0
	ldr	x0, [x20, #8]
	ldr	x8, [sp, #24]
	ldr	x9, [x23]
	ldr	w9, [x9, w22, sxtw #2]
	stp	x22, x9, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x20]
	cmp	w8, w22
	b.ne	LBB0_4
LBB0_2:
	mov	x23, x19
	b	LBB0_7
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_8
LBB0_4:
	b.ge	LBB0_6
; %bb.5:
	ldr	x0, [x20, #8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	str	w22, [x20]
	mov	x0, x20
	bl	_stts751_adjust_resolution
	mov	x23, x0
	cbnz	w0, LBB0_7
LBB0_6:
	ldr	x0, [x20, #8]
Lloh9:
	adrp	x8, _STTS751_REG_RATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STTS751_REG_RATE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_i2c_smbus_write_byte_data
	mov	x23, x0
	cbz	w0, LBB0_9
LBB0_7:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	ldr	w8, [x20]
	cmp	w8, w22
	b.eq	LBB0_2
; %bb.10:
	ldr	x0, [x20, #8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	str	w22, [x20]
	mov	x0, x20
	bl	_stts751_adjust_resolution
	mov	x23, x0
	cbnz	w0, LBB0_7
	b	LBB0_2
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_stts751_intervals,8,3          ; @stts751_intervals
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting interval. req:%lu, idx: %d, val: %d"

l_.str.1:                               ; @.str.1
	.asciz	"lower resolution, then modify convrate"

	.comm	_STTS751_REG_RATE,4,2           ; @STTS751_REG_RATE
l_.str.2:                               ; @.str.2
	.asciz	"modify convrate, then raise resolution"

	.no_dead_strip	_interval_store
.subsections_via_symbols
