	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pa12203001_read_raw
_pa12203001_read_raw:                   ## @pa12203001_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	callq	_iio_priv
	movq	%rax, %r12
	cmpq	$130, %rbx
	je	LBB0_10
## %bb.1:
	cmpq	$131, %rbx
	jne	LBB0_9
## %bb.2:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.4:
	movq	_PA12203001_ALS_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	callq	_pa12203001_set_power_state
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	movl	(%r12), %edi
	movq	_PA12203001_REG_ADL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movl	$2, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	js	LBB0_16
## %bb.6:
	movl	-48(%rbp), %edi
	callq	_le16_to_cpu
	jmp	LBB0_7
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_10:
	movl	(%r12), %edi
	movq	_PA12203001_REG_CFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.11:
	movl	$0, (%r14)
	movq	_PA12203001_AFSR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
	shrl	$2, %eax
	movq	_pa12203001_scales@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andl	$-4, %eax
	movl	(%rcx,%rax), %eax
	movl	%eax, (%r15)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_12:
	movq	_PA12203001_PX_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%r15d, %edx
	callq	_pa12203001_set_power_state
	testl	%eax, %eax
	js	LBB0_8
## %bb.13:
	movl	(%r12), %edi
	movq	_PA12203001_REG_PDH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_16
## %bb.14:
	movl	-44(%rbp), %eax
LBB0_7:
	movl	%eax, (%r14)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_pa12203001_set_power_state
	testl	%eax, %eax
	js	LBB0_8
## %bb.15:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_8:
	movl	%eax, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%eax, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_pa12203001_set_power_state
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_PA12203001_ALS_EN_MASK,4,2     ## @PA12203001_ALS_EN_MASK
	.comm	_PA12203001_REG_ADL,4,2         ## @PA12203001_REG_ADL
	.comm	_PA12203001_PX_EN_MASK,4,2      ## @PA12203001_PX_EN_MASK
	.comm	_PA12203001_REG_PDH,4,2         ## @PA12203001_REG_PDH
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_PA12203001_REG_CFG0,4,2        ## @PA12203001_REG_CFG0
	.comm	_PA12203001_AFSR_MASK,4,2       ## @PA12203001_AFSR_MASK
	.comm	_pa12203001_scales,8,3          ## @pa12203001_scales
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_pa12203001_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pa12203001_read_raw
_pa12203001_read_raw:                   ; @pa12203001_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
	bl	_iio_priv
	mov	x19, x0
	cmp	x23, #130
	b.eq	LBB0_8
; %bb.1:
	cmp	x23, #131
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _PA12203001_ALS_EN_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PA12203001_ALS_EN_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	bl	_pa12203001_set_power_state
	tbnz	w0, #31, LBB0_15
; %bb.5:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _PA12203001_REG_ADL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PA12203001_REG_ADL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #2
	bl	_regmap_bulk_read
	tbnz	w0, #31, LBB0_17
; %bb.6:
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
	str	w0, [x20]
	b	LBB0_13
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_8:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _PA12203001_REG_CFG0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PA12203001_REG_CFG0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_15
; %bb.9:
	str	wzr, [x20]
	ldr	w8, [sp, #12]
Lloh12:
	adrp	x9, _PA12203001_AFSR_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PA12203001_AFSR_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	x8, x9, x8
	str	w8, [sp, #12]
Lloh15:
	adrp	x9, _pa12203001_scales@GOTPAGE
Lloh16:
	ldr	x9, [x9, _pa12203001_scales@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	lsr	x8, x8, #2
	and	x8, x8, #0x3ffffffc
	ldr	w8, [x9, x8]
	str	w8, [x21]
Lloh18:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh20:
	ldr	w22, [x8]
	b	LBB0_16
LBB0_10:
Lloh21:
	adrp	x8, _PA12203001_PX_EN_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PA12203001_PX_EN_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w21, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	bl	_pa12203001_set_power_state
	tbnz	w0, #31, LBB0_15
; %bb.11:
	ldr	w0, [x19]
Lloh24:
	adrp	x8, _PA12203001_REG_PDH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PA12203001_REG_PDH@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_17
; %bb.12:
	ldr	w8, [sp, #12]
	str	w8, [x20]
LBB0_13:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_pa12203001_set_power_state
	tbnz	w0, #31, LBB0_15
; %bb.14:
Lloh27:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh29:
	ldr	w22, [x8]
	b	LBB0_16
LBB0_15:
	mov	x22, x0
LBB0_16:
	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
LBB0_17:
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_pa12203001_set_power_state
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PA12203001_ALS_EN_MASK,4,2     ; @PA12203001_ALS_EN_MASK
	.comm	_PA12203001_REG_ADL,4,2         ; @PA12203001_REG_ADL
	.comm	_PA12203001_PX_EN_MASK,4,2      ; @PA12203001_PX_EN_MASK
	.comm	_PA12203001_REG_PDH,4,2         ; @PA12203001_REG_PDH
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_PA12203001_REG_CFG0,4,2        ; @PA12203001_REG_CFG0
	.comm	_PA12203001_AFSR_MASK,4,2       ; @PA12203001_AFSR_MASK
	.comm	_pa12203001_scales,8,3          ; @pa12203001_scales
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_pa12203001_read_raw
.subsections_via_symbols
