	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apds990x_configure
_apds990x_configure:                    ## @apds990x_configure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_APDS990X_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_APDS990X_EN_DISABLE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_apds990x_write_byte
	movq	_APDS990X_PTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_APDS990X_PTIME_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_apds990x_write_byte
	movq	_APDS990X_WTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_APDS990X_WTIME_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_apds990x_write_byte
	movq	_APDS_LUX_AVERAGING_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_apds990x_set_atime
	movq	_APDS990X_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_apds990x_write_byte
	movq	_APDS990X_PERS@GOTPCREL(%rip), %rax
	movq	_APDS990X_APERS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	(%rbx), %edi
	shll	%cl, %edi
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	_APDS990X_PPERS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	orl	%edi, %edx
	movq	%rbx, %rdi
	callq	_apds990x_write_byte
	movq	_APDS990X_PPCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%rbx), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_apds990x_write_byte
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%rbx)
	movq	_APDS990X_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %eax
	movl	20(%rbx), %ecx
	shll	$6, %eax
	shll	$4, %ecx
	orl	%eax, %ecx
	movl	24(%rbx), %edx
	shll	$2, %edx
	orl	%ecx, %edx
	orl	$1, %edx
	movq	%rbx, %rdi
	callq	_apds990x_write_byte
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APDS990X_ENABLE,4,2            ## @APDS990X_ENABLE
	.comm	_APDS990X_EN_DISABLE_ALL,4,2    ## @APDS990X_EN_DISABLE_ALL
	.comm	_APDS990X_PTIME,4,2             ## @APDS990X_PTIME
	.comm	_APDS990X_PTIME_DEFAULT,4,2     ## @APDS990X_PTIME_DEFAULT
	.comm	_APDS990X_WTIME,4,2             ## @APDS990X_WTIME
	.comm	_APDS990X_WTIME_DEFAULT,4,2     ## @APDS990X_WTIME_DEFAULT
	.comm	_APDS_LUX_AVERAGING_TIME,4,2    ## @APDS_LUX_AVERAGING_TIME
	.comm	_APDS990X_CONFIG,4,2            ## @APDS990X_CONFIG
	.comm	_APDS990X_PERS,4,2              ## @APDS990X_PERS
	.comm	_APDS990X_APERS_SHIFT,4,2       ## @APDS990X_APERS_SHIFT
	.comm	_APDS990X_PPERS_SHIFT,4,2       ## @APDS990X_PPERS_SHIFT
	.comm	_APDS990X_PPCOUNT,4,2           ## @APDS990X_PPCOUNT
	.comm	_APDS990X_CONTROL,4,2           ## @APDS990X_CONTROL
	.no_dead_strip	_apds990x_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apds990x_configure
_apds990x_configure:                    ; @apds990x_configure
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _APDS990X_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APDS990X_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _APDS990X_EN_DISABLE_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APDS990X_EN_DISABLE_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_apds990x_write_byte
Lloh6:
	adrp	x8, _APDS990X_PTIME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _APDS990X_PTIME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _APDS990X_PTIME_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _APDS990X_PTIME_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_apds990x_write_byte
Lloh12:
	adrp	x8, _APDS990X_WTIME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _APDS990X_WTIME@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _APDS990X_WTIME_DEFAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _APDS990X_WTIME_DEFAULT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_apds990x_write_byte
Lloh18:
	adrp	x8, _APDS_LUX_AVERAGING_TIME@GOTPAGE
Lloh19:
	ldr	x8, [x8, _APDS_LUX_AVERAGING_TIME@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_apds990x_set_atime
Lloh21:
	adrp	x8, _APDS990X_CONFIG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _APDS990X_CONFIG@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_apds990x_write_byte
Lloh24:
	adrp	x8, _APDS990X_PERS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _APDS990X_PERS@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _APDS990X_APERS_SHIFT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _APDS990X_APERS_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldp	w9, w10, [x19]
	lsl	w8, w9, w8
Lloh30:
	adrp	x9, _APDS990X_PPERS_SHIFT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _APDS990X_PPERS_SHIFT@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w2, w9, w8
	mov	x0, x19
	bl	_apds990x_write_byte
Lloh33:
	adrp	x8, _APDS990X_PPCOUNT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _APDS990X_PPCOUNT@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	x8, [x19, #32]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_apds990x_write_byte
	movi.2s	v0, #1
	str	d0, [x19, #8]
Lloh36:
	adrp	x8, _APDS990X_CONTROL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _APDS990X_CONTROL@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldp	w8, w9, [x19, #16]
	lsl	w8, w8, #6
	ldr	w10, [x19, #24]
	orr	w8, w8, w9, lsl #4
	orr	w8, w8, w10, lsl #2
	orr	w2, w8, #0x1
	mov	x0, x19
	bl	_apds990x_write_byte
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_APDS990X_ENABLE,4,2            ; @APDS990X_ENABLE
	.comm	_APDS990X_EN_DISABLE_ALL,4,2    ; @APDS990X_EN_DISABLE_ALL
	.comm	_APDS990X_PTIME,4,2             ; @APDS990X_PTIME
	.comm	_APDS990X_PTIME_DEFAULT,4,2     ; @APDS990X_PTIME_DEFAULT
	.comm	_APDS990X_WTIME,4,2             ; @APDS990X_WTIME
	.comm	_APDS990X_WTIME_DEFAULT,4,2     ; @APDS990X_WTIME_DEFAULT
	.comm	_APDS_LUX_AVERAGING_TIME,4,2    ; @APDS_LUX_AVERAGING_TIME
	.comm	_APDS990X_CONFIG,4,2            ; @APDS990X_CONFIG
	.comm	_APDS990X_PERS,4,2              ; @APDS990X_PERS
	.comm	_APDS990X_APERS_SHIFT,4,2       ; @APDS990X_APERS_SHIFT
	.comm	_APDS990X_PPERS_SHIFT,4,2       ; @APDS990X_PPERS_SHIFT
	.comm	_APDS990X_PPCOUNT,4,2           ; @APDS990X_PPCOUNT
	.comm	_APDS990X_CONTROL,4,2           ; @APDS990X_CONTROL
	.no_dead_strip	_apds990x_configure
.subsections_via_symbols
