	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsl2563_get_adc
_tsl2563_get_adc:                       ## @tsl2563_get_adc
	.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
	cmpq	$0, 32(%rdi)
	je	LBB0_1
LBB0_13:
	xorl	%r12d, %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r14
	movq	40(%rdi), %r15
	cmpl	$0, 4(%rdi)
	jne	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	callq	_cancel_delayed_work
	movq	%r14, %rdi
	callq	_tsl2563_get_power
	testl	%eax, %eax
	je	LBB0_3
LBB0_6:
	movq	_TSL2563_CMD@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_TSL2563_REG_DATA0LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r13), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_word_data
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_TSL2563_REG_DATA1LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r13), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_word_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_tsl2563_adjust_gainlevel
	testl	%eax, %eax
	jne	LBB0_7
## %bb.11:
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_tsl2563_normalize_adc
	movq	%rax, 24(%r14)
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_tsl2563_normalize_adc
	movq	%rax, 16(%r14)
	cmpl	$0, 4(%r14)
	jne	LBB0_13
## %bb.12:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %esi
	movq	%r14, %rdi
	callq	_schedule_delayed_work
	jmp	LBB0_13
LBB0_9:
	movl	%ebx, %r12d
	jmp	LBB0_14
LBB0_3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_tsl2563_set_power
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movq	%r14, %rdi
	callq	_tsl2563_configure
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movq	%r14, %rdi
	callq	_tsl2563_wait_adc
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_TSL2563_CMD,4,2                ## @TSL2563_CMD
	.comm	_TSL2563_REG_DATA0LOW,4,2       ## @TSL2563_REG_DATA0LOW
	.comm	_TSL2563_REG_DATA1LOW,4,2       ## @TSL2563_REG_DATA1LOW
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_tsl2563_get_adc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsl2563_get_adc
_tsl2563_get_adc:                       ; @tsl2563_get_adc
	.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
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w21, #0
LBB0_2:
	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_3:
	mov	x19, x0
	ldr	x20, [x0, #40]
	ldr	w8, [x0, #4]
	cbnz	w8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_cancel_delayed_work
	mov	x0, x19
	bl	_tsl2563_get_power
	cbz	w0, LBB0_12
LBB0_5:
Lloh0:
	adrp	x23, _TSL2563_CMD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TSL2563_CMD@GOTPAGEOFF]
Lloh2:
	adrp	x24, _TSL2563_REG_DATA0LOW@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TSL2563_REG_DATA0LOW@GOTPAGEOFF]
Lloh4:
	adrp	x25, _TSL2563_REG_DATA1LOW@GOTPAGE
Lloh5:
	ldr	x25, [x25, _TSL2563_REG_DATA1LOW@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_i2c_smbus_read_word_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x25]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_i2c_smbus_read_word_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_tsl2563_adjust_gainlevel
	cbnz	w0, LBB0_6
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_tsl2563_normalize_adc
	str	x0, [x19, #24]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	x0, x22
	bl	_tsl2563_normalize_adc
	str	x0, [x19, #16]
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_1
; %bb.10:
Lloh6:
	adrp	x8, _HZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w1, w8, w8, lsl #2
	mov	x0, x19
	bl	_schedule_delayed_work
	b	LBB0_1
LBB0_11:
	mov	x21, x22
	b	LBB0_2
LBB0_12:
	mov	x0, x19
	mov	w1, #1
	bl	_tsl2563_set_power
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.13:
	mov	x0, x19
	bl	_tsl2563_configure
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.14:
	mov	x0, x19
	bl	_tsl2563_wait_adc
	b	LBB0_5
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TSL2563_CMD,4,2                ; @TSL2563_CMD
	.comm	_TSL2563_REG_DATA0LOW,4,2       ; @TSL2563_REG_DATA0LOW
	.comm	_TSL2563_REG_DATA1LOW,4,2       ; @TSL2563_REG_DATA1LOW
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_tsl2563_get_adc
.subsections_via_symbols
