	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kxcjk1013_set_odr
_kxcjk1013_set_odr:                     ## @kxcjk1013_set_odr
	.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
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	-36(%rbp), %rsi
	callq	_kxcjk1013_get_mode
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	(%r14), %rax
	movq	_KXTF9@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_kxtf9_samp_freq_table@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_samp_freq_table@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_kxcjk1013_find_odr_value
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	callq	_PTR_ERR
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_STANDBY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kxcjk1013_set_mode
	testl	%eax, %eax
	js	LBB0_7
## %bb.10:
	movq	8(%r14), %rdi
	movq	_KXCJK1013_REG_DATA_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_16
## %bb.11:
	movl	4(%r15), %eax
	movl	%eax, 16(%r14)
	movq	8(%r14), %rdi
	movq	_KXCJK1013_REG_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_17
## %bb.12:
	movl	-36(%rbp), %esi
	movq	_OPERATION@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_kxcjk1013_set_mode
	testl	%eax, %eax
	js	LBB0_7
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_16:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_8
LBB0_17:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_KXTF9,8,3                      ## @KXTF9
	.comm	_kxtf9_samp_freq_table,4,2      ## @kxtf9_samp_freq_table
	.comm	_samp_freq_table,4,2            ## @samp_freq_table
	.comm	_STANDBY,4,2                    ## @STANDBY
	.comm	_KXCJK1013_REG_DATA_CTRL,4,2    ## @KXCJK1013_REG_DATA_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error writing data_ctrl\n"

	.comm	_KXCJK1013_REG_CTRL2,4,2        ## @KXCJK1013_REG_CTRL2
L_.str.1:                               ## @.str.1
	.asciz	"Error writing reg_ctrl2\n"

	.comm	_OPERATION,4,2                  ## @OPERATION
	.no_dead_strip	_kxcjk1013_set_odr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kxcjk1013_set_odr
_kxcjk1013_set_odr:                     ; @kxcjk1013_set_odr
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	add	x1, sp, #12
	bl	_kxcjk1013_get_mode
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _KXTF9@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KXTF9@GOTPAGEOFF]
Lloh2:
	adrp	x10, _kxtf9_samp_freq_table@GOTPAGE
Lloh3:
	ldr	x10, [x10, _kxtf9_samp_freq_table@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _samp_freq_table@GOTPAGE
Lloh6:
	ldr	x11, [x11, _samp_freq_table@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	bl	_kxcjk1013_find_odr_value
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_PTR_ERR
LBB0_3:
	mov	x20, x0
LBB0_4:
	mov	x0, x20
	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
LBB0_5:
Lloh7:
	adrp	x8, _STANDBY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STANDBY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kxcjk1013_set_mode
	tbnz	w0, #31, LBB0_3
; %bb.6:
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x8, _KXCJK1013_REG_DATA_CTRL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KXCJK1013_REG_DATA_CTRL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x21, #4]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_11
; %bb.7:
	ldp	w2, w8, [x21]
	str	w8, [x19, #16]
	ldr	x0, [x19, #8]
Lloh13:
	adrp	x8, _KXCJK1013_REG_CTRL2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KXCJK1013_REG_CTRL2@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_12
; %bb.8:
	ldr	w1, [sp, #12]
Lloh16:
	adrp	x8, _OPERATION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OPERATION@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_kxcjk1013_set_mode
	tbnz	w0, #31, LBB0_3
LBB0_10:
	mov	w20, #0
	b	LBB0_4
LBB0_11:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_12:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_KXTF9,8,3                      ; @KXTF9
	.comm	_kxtf9_samp_freq_table,4,2      ; @kxtf9_samp_freq_table
	.comm	_samp_freq_table,4,2            ; @samp_freq_table
	.comm	_STANDBY,4,2                    ; @STANDBY
	.comm	_KXCJK1013_REG_DATA_CTRL,4,2    ; @KXCJK1013_REG_DATA_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error writing data_ctrl\n"

	.comm	_KXCJK1013_REG_CTRL2,4,2        ; @KXCJK1013_REG_CTRL2
l_.str.1:                               ; @.str.1
	.asciz	"Error writing reg_ctrl2\n"

	.comm	_OPERATION,4,2                  ; @OPERATION
	.no_dead_strip	_kxcjk1013_set_odr
.subsections_via_symbols
