	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm32181_read_als_it
_cm32181_read_als_it:                   ## @cm32181_read_als_it
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_CM32181_REG_ADDR_CMD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CM32181_CMD_ALS_IT_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	andl	(%rax,%rcx,4), %r12d
	movq	_CM32181_CMD_ALS_IT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	movq	%rsi, %r14
	movq	_als_it_bits@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	cmpl	(%rdi,%rbx,4), %r12d
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	_als_it_value@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM32181_REG_ADDR_CMD,8,3       ## @CM32181_REG_ADDR_CMD
	.comm	_CM32181_CMD_ALS_IT_MASK,4,2    ## @CM32181_CMD_ALS_IT_MASK
	.comm	_CM32181_CMD_ALS_IT_SHIFT,4,2   ## @CM32181_CMD_ALS_IT_SHIFT
	.comm	_als_it_bits,8,3                ## @als_it_bits
	.comm	_als_it_value,8,3               ## @als_it_value
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cm32181_read_als_it
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm32181_read_als_it
_cm32181_read_als_it:                   ; @cm32181_read_als_it
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CM32181_REG_ADDR_CMD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CM32181_REG_ADDR_CMD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w22, [x8, x9, lsl #2]
Lloh3:
	adrp	x8, _CM32181_CMD_ALS_IT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CM32181_CMD_ALS_IT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x8, _CM32181_CMD_ALS_IT_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CM32181_CMD_ALS_IT_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
Lloh9:
	adrp	x20, _als_it_bits@GOTPAGE
Lloh10:
	ldr	x20, [x20, _als_it_bits@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
	and	w8, w24, w22
	asr	w22, w8, w23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	w8, [x0, x21, lsl #2]
	cmp	w22, w8
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_2
LBB0_4:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _als_it_value@GOTPAGE
Lloh15:
	ldr	x8, [x8, _als_it_value@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w8, [x8, x21, lsl #2]
	str	w8, [x19]
Lloh17:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CM32181_REG_ADDR_CMD,8,3       ; @CM32181_REG_ADDR_CMD
	.comm	_CM32181_CMD_ALS_IT_MASK,4,2    ; @CM32181_CMD_ALS_IT_MASK
	.comm	_CM32181_CMD_ALS_IT_SHIFT,4,2   ; @CM32181_CMD_ALS_IT_SHIFT
	.comm	_als_it_bits,8,3                ; @als_it_bits
	.comm	_als_it_value,8,3               ; @als_it_value
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cm32181_read_als_it
.subsections_via_symbols
