	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __tsl2550_show_lux
___tsl2550_show_lux:                    ## @__tsl2550_show_lux
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movq	_TSL2550_READ_ADC0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tsl2550_get_adc_value
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_TSL2550_READ_ADC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tsl2550_get_adc_value
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_tsl2550_calculate_lux
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	cmpl	$1, (%r15)
	leal	(%r12,%r12,4), %edx
	cmovnel	%r12d, %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
LBB0_2:
	movl	%eax, %r12d
LBB0_4:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TSL2550_READ_ADC0,4,2          ## @TSL2550_READ_ADC0
	.comm	_TSL2550_READ_ADC1,4,2          ## @TSL2550_READ_ADC1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.no_dead_strip	___tsl2550_show_lux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __tsl2550_show_lux
___tsl2550_show_lux:                    ; @__tsl2550_show_lux
	.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	x19, x1
	mov	x22, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
Lloh0:
	adrp	x8, _TSL2550_READ_ADC0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TSL2550_READ_ADC0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_tsl2550_get_adc_value
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _TSL2550_READ_ADC1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TSL2550_READ_ADC1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_tsl2550_get_adc_value
	mov	x1, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_tsl2550_calculate_lux
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	w8, [x21]
	add	w9, w20, w20, lsl #2
	cmp	w8, #1
	csel	w2, w9, w20, eq
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_sprintf
LBB0_4:
	mov	x20, x1
LBB0_5:
	mov	x0, x20
	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 AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TSL2550_READ_ADC0,4,2          ; @TSL2550_READ_ADC0
	.comm	_TSL2550_READ_ADC1,4,2          ; @TSL2550_READ_ADC1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.no_dead_strip	___tsl2550_show_lux
.subsections_via_symbols
