	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isl29125_read_data
_isl29125_read_data:                    ## @isl29125_read_data
	.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	%rdi, %r14
	movq	8(%rdi), %rdi
	movq	_ISL29125_CONF1@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_isl29125_regs@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movslq	%esi, %r13
	movl	(%rcx,%r13,8), %edx
	orl	(%r14), %edx
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	$101, %edi
	callq	_msleep
	movq	8(%r14), %rdi
	movq	_ISL29125_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.3:
	movq	_ISL29125_STATUS_CONV@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
LBB0_13:
	movq	8(%r14), %rdi
	movq	(%r12), %rax
	movl	4(%rax,%r13,8), %esi
	callq	_i2c_smbus_read_word_data
	movl	%eax, %ebx
LBB0_14:
	movq	8(%r14), %rdi
	movl	(%r15), %esi
	movl	(%r14), %edx
	callq	_i2c_smbus_write_byte_data
	jmp	LBB0_15
LBB0_1:
	movl	%eax, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$20, %edi
	callq	_msleep
	movq	8(%r14), %rdi
	movq	_ISL29125_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.5:
	movq	_ISL29125_STATUS_CONV@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_13
## %bb.6:
	movl	$20, %edi
	callq	_msleep
	movq	8(%r14), %rdi
	movq	_ISL29125_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.7:
	movq	_ISL29125_STATUS_CONV@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_13
## %bb.8:
	movl	$20, %edi
	callq	_msleep
	movq	8(%r14), %rdi
	movq	_ISL29125_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:
	movq	_ISL29125_STATUS_CONV@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_13
## %bb.10:
	movl	$20, %edi
	callq	_msleep
	movq	8(%r14), %rdi
	movq	_ISL29125_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.11:
	movq	_ISL29125_STATUS_CONV@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_13
## %bb.12:
	movl	$20, %edi
	callq	_msleep
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ISL29125_CONF1,4,2             ## @ISL29125_CONF1
	.comm	_isl29125_regs,8,3              ## @isl29125_regs
	.comm	_ISL29125_STATUS,4,2            ## @ISL29125_STATUS
	.comm	_ISL29125_STATUS_CONV,4,2       ## @ISL29125_STATUS_CONV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data not ready\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_isl29125_read_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isl29125_read_data
_isl29125_read_data:                    ; @isl29125_read_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x22, _ISL29125_CONF1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ISL29125_CONF1@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x23, _isl29125_regs@GOTPAGE
Lloh3:
	ldr	x23, [x23, _isl29125_regs@GOTPAGEOFF]
	ldr	w8, [x19]
	ldr	x9, [x23]
	sbfiz	x10, x20, #3, #32
	ldr	w9, [x9, x10]
	orr	w2, w9, w8
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	w0, #101
	bl	_msleep
	ldr	x0, [x19, #8]
Lloh4:
	adrp	x24, _ISL29125_STATUS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ISL29125_STATUS@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh6:
	adrp	x25, _ISL29125_STATUS_CONV@GOTPAGE
Lloh7:
	ldr	x25, [x25, _ISL29125_STATUS_CONV@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w21
	b.eq	LBB0_7
LBB0_3:
	sxtw	x8, w20
	ldr	x0, [x19, #8]
	ldr	x9, [x23]
	add	x8, x9, x8, lsl #3
	ldr	w1, [x8, #4]
	bl	_i2c_smbus_read_word_data
	mov	x21, x0
LBB0_4:
	ldr	x0, [x19, #8]
	ldr	w1, [x22]
	ldr	w2, [x19]
	bl	_i2c_smbus_write_byte_data
	b	LBB0_6
LBB0_5:
	mov	x21, x0
LBB0_6:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #20
	bl	_msleep
	ldr	x0, [x19, #8]
	ldr	w1, [x24]
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.8:
	ldr	w8, [x25]
	tst	w8, w21
	b.ne	LBB0_3
; %bb.9:
	mov	w0, #20
	bl	_msleep
	ldr	x0, [x19, #8]
	ldr	w1, [x24]
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.10:
	ldr	w8, [x25]
	tst	w8, w21
	b.ne	LBB0_3
; %bb.11:
	mov	w0, #20
	bl	_msleep
	ldr	x0, [x19, #8]
	ldr	w1, [x24]
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.12:
	ldr	w8, [x25]
	tst	w8, w21
	b.ne	LBB0_3
; %bb.13:
	mov	w0, #20
	bl	_msleep
	ldr	x0, [x19, #8]
	ldr	w1, [x24]
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.14:
	ldr	w8, [x25]
	tst	w8, w21
	b.ne	LBB0_3
; %bb.15:
	mov	w0, #20
	bl	_msleep
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ISL29125_CONF1,4,2             ; @ISL29125_CONF1
	.comm	_isl29125_regs,8,3              ; @isl29125_regs
	.comm	_ISL29125_STATUS,4,2            ; @ISL29125_STATUS
	.comm	_ISL29125_STATUS_CONV,4,2       ; @ISL29125_STATUS_CONV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data not ready\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_isl29125_read_data
.subsections_via_symbols
