	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kmx61_set_odr
_kmx61_set_odr:                         ## @kmx61_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	%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
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	_KMX61_ACC@GOTPCREL(%rip), %rcx
	movq	_KMX61_MAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rcx), %edx
	leaq	-44(%rbp), %rsi
	callq	_kmx61_get_mode
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_kmx61_convert_freq_to_bit
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movq	_KMX61_ALL_STBY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KMX61_MAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_KMX61_ACC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_kmx61_set_mode
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movq	_KMX61_ACC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_KMX61_ACC_ODR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%ebx, %edx
	shll	%cl, %edx
	testl	%eax, %eax
	cmovel	%eax, %edx
	movq	_KMX61_MAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_KMX61_MAG_ODR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	andl	%r12d, %eax
	testl	%eax, %eax
	cmovel	%eax, %ebx
	orl	%edx, %ebx
	movl	4(%r13), %edi
	movq	_KMX61_REG_ODCNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movl	%ebx, (%r13)
	movq	_KMX61_ACC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r12d, %edx
	movq	_KMX61_MAG@GOTPCREL(%rip), %r12
	je	LBB0_7
## %bb.5:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_kmx61_set_wake_up_odr
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	_KMX61_ACC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_7:
	movl	-44(%rbp), %esi
	orl	(%r12), %edx
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_kmx61_set_mode
LBB0_8:
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KMX61_ACC,4,2                  ## @KMX61_ACC
	.comm	_KMX61_MAG,4,2                  ## @KMX61_MAG
	.comm	_KMX61_ALL_STBY,4,2             ## @KMX61_ALL_STBY
	.comm	_KMX61_ACC_ODR_SHIFT,4,2        ## @KMX61_ACC_ODR_SHIFT
	.comm	_KMX61_MAG_ODR_SHIFT,4,2        ## @KMX61_MAG_ODR_SHIFT
	.comm	_KMX61_REG_ODCNTL,4,2           ## @KMX61_REG_ODCNTL
	.no_dead_strip	_kmx61_set_odr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kmx61_set_odr
_kmx61_set_odr:                         ; @kmx61_set_odr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _KMX61_ACC@GOTPAGE
Lloh1:
	ldr	x26, [x26, _KMX61_ACC@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh2:
	adrp	x25, _KMX61_MAG@GOTPAGE
Lloh3:
	ldr	x25, [x25, _KMX61_MAG@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w2, w9, w8
	add	x1, sp, #12
	bl	_kmx61_get_mode
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_kmx61_convert_freq_to_bit
	mov	x23, x0
	tbnz	w0, #31, LBB0_9
; %bb.2:
Lloh4:
	adrp	x8, _KMX61_ALL_STBY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _KMX61_ALL_STBY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w8, [x26]
	ldr	w9, [x25]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w3, #1
	bl	_kmx61_set_mode
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	w8, [x26]
Lloh7:
	adrp	x9, _KMX61_ACC_ODR_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _KMX61_ACC_ODR_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	lsl	w9, w23, w9
	tst	w8, w22
	csel	w8, wzr, w9, eq
	ldr	w9, [x25]
Lloh10:
	adrp	x10, _KMX61_MAG_ODR_SHIFT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _KMX61_MAG_ODR_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	lsl	w10, w23, w10
	tst	w9, w22
	csel	w9, wzr, w10, eq
	orr	w24, w9, w8
	ldr	w0, [x19, #4]
Lloh13:
	adrp	x8, _KMX61_REG_ODCNTL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KMX61_REG_ODCNTL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x2, x24
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_8
; %bb.4:
	str	w24, [x19]
	ldr	w8, [x26]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_kmx61_set_wake_up_odr
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	w8, [x26]
LBB0_7:
	ldr	w1, [sp, #12]
	ldr	w9, [x25]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w3, #1
	bl	_kmx61_set_mode
LBB0_8:
	mov	x23, x0
LBB0_9:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_KMX61_ACC,4,2                  ; @KMX61_ACC
	.comm	_KMX61_MAG,4,2                  ; @KMX61_MAG
	.comm	_KMX61_ALL_STBY,4,2             ; @KMX61_ALL_STBY
	.comm	_KMX61_ACC_ODR_SHIFT,4,2        ; @KMX61_ACC_ODR_SHIFT
	.comm	_KMX61_MAG_ODR_SHIFT,4,2        ; @KMX61_MAG_ODR_SHIFT
	.comm	_KMX61_REG_ODCNTL,4,2           ; @KMX61_REG_ODCNTL
	.no_dead_strip	_kmx61_set_odr
.subsections_via_symbols
