	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max44000_read_raw
_max44000_read_raw:                     ## @max44000_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, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	callq	_iio_priv
	movq	%rax, %r15
	cmpq	$131, %rbx
	je	LBB0_7
## %bb.1:
	cmpq	$133, %rbx
	je	LBB0_11
## %bb.2:
	cmpq	$132, %rbx
	jne	LBB0_10
## %bb.3:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_15
## %bb.4:
	cmpl	$130, %eax
	je	LBB0_17
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_10
## %bb.6:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_max44000_read_alsval
	jmp	LBB0_18
LBB0_7:
	movl	(%r13), %eax
	cmpl	$129, %eax
	je	LBB0_13
## %bb.8:
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.9:
	movl	$10, (%r14)
	jmp	LBB0_20
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_11:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_max44000_read_alstim
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_22
## %bb.12:
	movl	$0, (%r14)
	movq	_max44000_int_time_avail_ns_array@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%r12)
	movq	_IIO_VAL_INT_PLUS_NANO@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_13:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_max44000_read_alspga
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_22
## %bb.14:
	movq	_MAX44000_ALSPGA_MAX_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%edx, (%r14)
	movq	_MAX44000_ALS_TO_LUX_DEFAULT_FRACTION_LOG2@GOTPCREL(%rip), %rcx
	movl	(%rax), %eax
	addl	(%rcx), %eax
	movq	_max44000_alspga_shift@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, %edx
	subl	(%rcx,%rdx,4), %eax
	movl	%eax, (%r12)
	movq	_IIO_VAL_FRACTIONAL_LOG2@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_15:
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	4(%r15), %edi
	movq	_MAX44000_REG_PRX_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_22
## %bb.16:
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_20
LBB0_17:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_max44000_read_led_current_raw
LBB0_18:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_22
## %bb.19:
	movl	%ebx, (%r14)
LBB0_20:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_MAX44000_REG_PRX_DATA,4,2      ## @MAX44000_REG_PRX_DATA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX44000_ALSPGA_MAX_SHIFT,4,2  ## @MAX44000_ALSPGA_MAX_SHIFT
	.comm	_MAX44000_ALS_TO_LUX_DEFAULT_FRACTION_LOG2,4,2 ## @MAX44000_ALS_TO_LUX_DEFAULT_FRACTION_LOG2
	.comm	_max44000_alspga_shift,8,3      ## @max44000_alspga_shift
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ## @IIO_VAL_FRACTIONAL_LOG2
	.comm	_max44000_int_time_avail_ns_array,8,3 ## @max44000_int_time_avail_ns_array
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ## @IIO_VAL_INT_PLUS_NANO
	.no_dead_strip	_max44000_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max44000_read_raw
_max44000_read_raw:                     ; @max44000_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	x22, x3
	mov	x19, x2
	mov	x20, x1
	bl	_iio_priv
	mov	x21, x0
	cmp	x23, #131
	b.eq	LBB0_7
; %bb.1:
	cmp	x23, #133
	b.eq	LBB0_11
; %bb.2:
	cmp	x23, #132
	b.ne	LBB0_10
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_15
; %bb.4:
	cmp	w8, #130
	b.eq	LBB0_17
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x21
	bl	_max44000_read_alsval
	b	LBB0_18
LBB0_7:
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_13
; %bb.8:
	cmp	w8, #130
	b.ne	LBB0_10
; %bb.9:
	mov	w8, #10
	str	w8, [x19]
	b	LBB0_20
LBB0_10:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_22
LBB0_11:
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x21
	bl	_max44000_read_alstim
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_unlock
	tbnz	w20, #31, LBB0_22
; %bb.12:
	str	wzr, [x19]
Lloh3:
	adrp	x8, _max44000_int_time_avail_ns_array@GOTPAGE
Lloh4:
	ldr	x8, [x8, _max44000_int_time_avail_ns_array@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8, w20, uxtw #2]
	str	w8, [x22]
Lloh6:
	adrp	x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGEOFF]
	b	LBB0_21
LBB0_13:
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x21
	bl	_max44000_read_alspga
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_unlock
	tbnz	w20, #31, LBB0_22
; %bb.14:
Lloh8:
	adrp	x8, _MAX44000_ALSPGA_MAX_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX44000_ALSPGA_MAX_SHIFT@GOTPAGEOFF]
	ldr	w9, [x8]
	mov	w10, #1
	lsl	w9, w10, w9
	str	w9, [x19]
Lloh10:
	adrp	x9, _MAX44000_ALS_TO_LUX_DEFAULT_FRACTION_LOG2@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MAX44000_ALS_TO_LUX_DEFAULT_FRACTION_LOG2@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ldr	w8, [x8]
Lloh13:
	adrp	x10, _max44000_alspga_shift@GOTPAGE
Lloh14:
	ldr	x10, [x10, _max44000_alspga_shift@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	ldr	w10, [x10, w20, uxtw #2]
	add	w8, w8, w9
	sub	w8, w8, w10
	str	w8, [x22]
Lloh16:
	adrp	x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGEOFF]
	b	LBB0_21
LBB0_15:
	mov	x0, x21
	bl	_mutex_lock
	ldr	w0, [x21, #4]
Lloh18:
	adrp	x8, _MAX44000_REG_PRX_DATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX44000_REG_PRX_DATA@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_unlock
	tbnz	w20, #31, LBB0_22
; %bb.16:
	ldr	w8, [sp, #12]
	str	w8, [x19]
	b	LBB0_20
LBB0_17:
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x21
	bl	_max44000_read_led_current_raw
LBB0_18:
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_unlock
	tbnz	w20, #31, LBB0_22
; %bb.19:
	str	w20, [x19]
LBB0_20:
Lloh21:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_21:
	ldr	w20, [x8]
LBB0_22:
	mov	x0, x20
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_MAX44000_REG_PRX_DATA,4,2      ; @MAX44000_REG_PRX_DATA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX44000_ALSPGA_MAX_SHIFT,4,2  ; @MAX44000_ALSPGA_MAX_SHIFT
	.comm	_MAX44000_ALS_TO_LUX_DEFAULT_FRACTION_LOG2,4,2 ; @MAX44000_ALS_TO_LUX_DEFAULT_FRACTION_LOG2
	.comm	_max44000_alspga_shift,8,3      ; @max44000_alspga_shift
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ; @IIO_VAL_FRACTIONAL_LOG2
	.comm	_max44000_int_time_avail_ns_array,8,3 ; @max44000_int_time_avail_ns_array
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ; @IIO_VAL_INT_PLUS_NANO
	.no_dead_strip	_max44000_read_raw
.subsections_via_symbols
