	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isl29003_get_adc_value
_isl29003_get_adc_value:                ## @isl29003_get_adc_value
	.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, %r15
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	_ISL29003_REG_LSB_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_ISL29003_REG_MSB_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_isl29003_get_range
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_isl29003_get_resolution
	shll	$2, %eax
	shll	$8, %ebx
	orl	%r14d, %ebx
	movq	_gain_range@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r12d, %rdx
	imull	(%rcx,%rdx,4), %ebx
	movb	$16, %cl
	subb	%al, %cl
	sarl	%cl, %ebx
LBB0_4:
	movl	%ebx, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISL29003_REG_LSB_SENSOR,4,2    ## @ISL29003_REG_LSB_SENSOR
	.comm	_ISL29003_REG_MSB_SENSOR,4,2    ## @ISL29003_REG_MSB_SENSOR
	.comm	_gain_range,8,3                 ## @gain_range
	.no_dead_strip	_isl29003_get_adc_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isl29003_get_adc_value
_isl29003_get_adc_value:                ; @isl29003_get_adc_value
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _ISL29003_REG_LSB_SENSOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISL29003_REG_LSB_SENSOR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	x19, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ISL29003_REG_MSB_SENSOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISL29003_REG_MSB_SENSOR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	tbnz	w22, #31, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_isl29003_get_range
	mov	x21, x0
	mov	x0, x20
	bl	_isl29003_get_resolution
	mov	w8, #16
	sub	w8, w8, w0, lsl #2
Lloh6:
	adrp	x9, _gain_range@GOTPAGE
Lloh7:
	ldr	x9, [x9, _gain_range@GOTPAGEOFF]
	orr	w10, w19, w22, lsl #8
Lloh8:
	ldr	x9, [x9]
	ldr	w9, [x9, w21, sxtw #2]
	mul	w9, w9, w10
	asr	w19, w9, w8
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_5
LBB0_4:
	mov	x19, x22
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ISL29003_REG_LSB_SENSOR,4,2    ; @ISL29003_REG_LSB_SENSOR
	.comm	_ISL29003_REG_MSB_SENSOR,4,2    ; @ISL29003_REG_MSB_SENSOR
	.comm	_gain_range,8,3                 ; @gain_range
	.no_dead_strip	_isl29003_get_adc_value
.subsections_via_symbols
