	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsl2563_adc_to_lux
_tsl2563_adc_to_lux:                    ## @tsl2563_adc_to_lux
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %r8
	movq	_lux_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%r8, %r8
	je	LBB0_4
## %bb.1:
	movq	_ADC_FRAC_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%rsi, %rax
	shlq	%cl, %rax
	movq	%rax, %rcx
	orq	%r8, %rcx
	shrq	$32, %rcx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%r8
	jmp	LBB0_5
LBB0_4:
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_5
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rcx
	addq	$24, %rdi
	cmpq	%rax, (%rcx)
	jb	LBB0_5
## %bb.6:
	imulq	-16(%rdi), %r8
	imulq	-8(%rdi), %rsi
	subq	%rsi, %r8
	movq	_ADC_FRAC_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %r8
	movl	%r8d, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lux_table,8,3                  ## @lux_table
	.comm	_ADC_FRAC_BITS,8,3              ## @ADC_FRAC_BITS
	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
	.no_dead_strip	_tsl2563_adc_to_lux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsl2563_adc_to_lux
_tsl2563_adc_to_lux:                    ; @tsl2563_adc_to_lux
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _lux_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lux_table@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _ADC_FRAC_BITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADC_FRAC_BITS@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x10, [x8]
	lsl	x10, x1, x10
	udiv	x10, x10, x0
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x10, _ULONG_MAX@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ULONG_MAX@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #24
	cmp	x11, x10
	b.lo	LBB0_3
; %bb.4:
	ldp	x10, x9, [x9, #-16]
	mul	x10, x10, x0
	msub	x9, x9, x1, x10
	ldr	x8, [x8]
	lsr	x0, x9, x8
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_lux_table,8,3                  ; @lux_table
	.comm	_ADC_FRAC_BITS,8,3              ; @ADC_FRAC_BITS
	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
	.no_dead_strip	_tsl2563_adc_to_lux
.subsections_via_symbols
