	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kxsd9_read_raw
_kxsd9_read_raw:                        ## @kxsd9_read_raw
	.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	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	callq	_iio_priv
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_pm_runtime_get_sync
	cmpq	$128, %r14
	je	LBB0_7
## %bb.1:
	cmpq	$130, %r14
	je	LBB0_5
## %bb.2:
	cmpq	$129, %r14
	jne	LBB0_11
## %bb.3:
	movl	4(%r15), %edi
	movl	(%r13), %esi
	leaq	-52(%rbp), %rdx
	movl	$4, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movl	-52(%rbp), %edi
	callq	_be16_to_cpu
	sarl	$4, %eax
	jmp	LBB0_6
LBB0_7:
	movl	4(%r15), %edi
	movq	_KXSD9_REG_CTRL_C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	_kxsd9_micro_scales@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_KXSD9_CTRL_C_FS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	-56(%rbp), %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%r12)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_KXSD9_ZERO_G_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
LBB0_11:
	movl	(%r15), %edi
	callq	_pm_runtime_mark_last_busy
	movl	(%r15), %edi
	callq	_pm_runtime_put_autosuspend
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%eax, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_KXSD9_ZERO_G_OFFSET,4,2        ## @KXSD9_ZERO_G_OFFSET
	.comm	_KXSD9_REG_CTRL_C,4,2           ## @KXSD9_REG_CTRL_C
	.comm	_kxsd9_micro_scales,8,3         ## @kxsd9_micro_scales
	.comm	_KXSD9_CTRL_C_FS_MASK,4,2       ## @KXSD9_CTRL_C_FS_MASK
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_kxsd9_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kxsd9_read_raw
_kxsd9_read_raw:                        ; @kxsd9_read_raw
	.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	x23, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	bl	_iio_priv
	mov	x19, x0
	ldr	w0, [x0]
	bl	_pm_runtime_get_sync
	cmp	x23, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	x23, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	x23, #129
	b.ne	LBB0_10
; %bb.3:
	ldr	w0, [x19, #4]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	w3, #4
	bl	_regmap_bulk_read
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.4:
	ldr	w0, [sp, #8]
	bl	_be16_to_cpu
	asr	w8, w0, #4
	b	LBB0_8
LBB0_5:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _KXSD9_REG_CTRL_C@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KXSD9_REG_CTRL_C@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_11
; %bb.6:
	str	wzr, [x20]
Lloh6:
	adrp	x8, _kxsd9_micro_scales@GOTPAGE
Lloh7:
	ldr	x8, [x8, _kxsd9_micro_scales@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w9, [sp, #12]
Lloh9:
	adrp	x10, _KXSD9_CTRL_C_FS_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _KXSD9_CTRL_C_FS_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	and	x9, x10, x9
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x21]
Lloh12:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh14:
	adrp	x8, _KXSD9_ZERO_G_OFFSET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KXSD9_ZERO_G_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
LBB0_8:
	str	w8, [x20]
Lloh17:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_9:
	ldr	w22, [x8]
	b	LBB0_12
LBB0_10:
	neg	w22, w24
	b	LBB0_12
LBB0_11:
	mov	x22, x0
LBB0_12:
	ldr	w0, [x19]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19]
	bl	_pm_runtime_put_autosuspend
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_KXSD9_ZERO_G_OFFSET,4,2        ; @KXSD9_ZERO_G_OFFSET
	.comm	_KXSD9_REG_CTRL_C,4,2           ; @KXSD9_REG_CTRL_C
	.comm	_kxsd9_micro_scales,8,3         ; @kxsd9_micro_scales
	.comm	_KXSD9_CTRL_C_FS_MASK,4,2       ; @KXSD9_CTRL_C_FS_MASK
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_kxsd9_read_raw
.subsections_via_symbols
