	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isl29018_read_sensor_input
_isl29018_read_sensor_input:            ## @isl29018_read_sensor_input
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_regmap_get_device
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	_ISL29018_REG_ADD_COMMAND1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ISL29018_CMD1_OPMODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	%ebx, %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ISL29018_CONV_TIME_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movl	(%r15), %edi
	movq	_ISL29018_REG_ADD_DATA_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	(%r15), %edi
	movq	_ISL29018_REG_ADD_DATA_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_vdbg
	movl	-28(%rbp), %ebx
	shll	$8, %ebx
	orl	-32(%rbp), %ebx
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ISL29018_REG_ADD_COMMAND1,4,2  ## @ISL29018_REG_ADD_COMMAND1
	.comm	_ISL29018_CMD1_OPMODE_SHIFT,4,2 ## @ISL29018_CMD1_OPMODE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error in setting operating mode err %d\n"

	.comm	_ISL29018_CONV_TIME_MS,4,2      ## @ISL29018_CONV_TIME_MS
	.comm	_ISL29018_REG_ADD_DATA_LSB,4,2  ## @ISL29018_REG_ADD_DATA_LSB
L_.str.1:                               ## @.str.1
	.asciz	"Error in reading LSB DATA with err %d\n"

	.comm	_ISL29018_REG_ADD_DATA_MSB,4,2  ## @ISL29018_REG_ADD_DATA_MSB
L_.str.2:                               ## @.str.2
	.asciz	"Error in reading MSB DATA with error %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"MSB 0x%x and LSB 0x%x\n"

	.no_dead_strip	_isl29018_read_sensor_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isl29018_read_sensor_input
_isl29018_read_sensor_input:            ; @isl29018_read_sensor_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_regmap_get_device
	mov	x19, x0
Lloh0:
	adrp	x8, _ISL29018_REG_ADD_COMMAND1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISL29018_REG_ADD_COMMAND1@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ISL29018_CMD1_OPMODE_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISL29018_CMD1_OPMODE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w2, w20, w8
	bl	_regmap_write
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_3:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_4:
Lloh8:
	adrp	x8, _ISL29018_CONV_TIME_MS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISL29018_CONV_TIME_MS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_msleep
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _ISL29018_REG_ADD_DATA_LSB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ISL29018_REG_ADD_DATA_LSB@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	w0, [x21]
Lloh14:
	adrp	x8, _ISL29018_REG_ADD_DATA_MSB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ISL29018_REG_ADD_DATA_MSB@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_regmap_read
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldp	w2, w3, [sp, #8]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_vdbg
	ldp	w8, w9, [sp, #8]
	orr	w20, w9, w8, lsl #8
	b	LBB0_3
LBB0_7:
	mov	x20, x0
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_8:
	mov	x20, x0
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ISL29018_REG_ADD_COMMAND1,4,2  ; @ISL29018_REG_ADD_COMMAND1
	.comm	_ISL29018_CMD1_OPMODE_SHIFT,4,2 ; @ISL29018_CMD1_OPMODE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error in setting operating mode err %d\n"

	.comm	_ISL29018_CONV_TIME_MS,4,2      ; @ISL29018_CONV_TIME_MS
	.comm	_ISL29018_REG_ADD_DATA_LSB,4,2  ; @ISL29018_REG_ADD_DATA_LSB
l_.str.1:                               ; @.str.1
	.asciz	"Error in reading LSB DATA with err %d\n"

	.comm	_ISL29018_REG_ADD_DATA_MSB,4,2  ; @ISL29018_REG_ADD_DATA_MSB
l_.str.2:                               ; @.str.2
	.asciz	"Error in reading MSB DATA with error %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"MSB 0x%x and LSB 0x%x\n"

	.no_dead_strip	_isl29018_read_sensor_input
.subsections_via_symbols
