	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isl29501_get_raw
_isl29501_get_raw:                      ## @isl29501_get_raw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_REG_TEMPERATURE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbp
	retq
LBB0_4:
	movq	_REG_DISTANCE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_REG_PHASE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_REG_AMBIENT_LIGHT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_REG_EMITTER_DAC@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	callq	_isl29501_register_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_REG_DISTANCE,4,2               ## @REG_DISTANCE
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_REG_AMBIENT_LIGHT,4,2          ## @REG_AMBIENT_LIGHT
	.comm	_REG_PHASE,4,2                  ## @REG_PHASE
	.comm	_REG_EMITTER_DAC,4,2            ## @REG_EMITTER_DAC
	.comm	_REG_TEMPERATURE,4,2            ## @REG_TEMPERATURE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_isl29501_get_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isl29501_get_raw
_isl29501_get_raw:                      ; @isl29501_get_raw
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x1]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _REG_TEMPERATURE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_TEMPERATURE@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh7:
	adrp	x8, _REG_DISTANCE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REG_DISTANCE@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x8, _REG_PHASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_PHASE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _REG_AMBIENT_LIGHT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_AMBIENT_LIGHT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _REG_EMITTER_DAC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _REG_EMITTER_DAC@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	bl	_isl29501_register_read
Lloh15:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w0, w8, lt
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_REG_DISTANCE,4,2               ; @REG_DISTANCE
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_REG_AMBIENT_LIGHT,4,2          ; @REG_AMBIENT_LIGHT
	.comm	_REG_PHASE,4,2                  ; @REG_PHASE
	.comm	_REG_EMITTER_DAC,4,2            ; @REG_EMITTER_DAC
	.comm	_REG_TEMPERATURE,4,2            ; @REG_TEMPERATURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_isl29501_get_raw
.subsections_via_symbols
