	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apds9960_get_thres_reg
_apds9960_get_thres_reg:                ## @apds9960_get_thres_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$131, %esi
	je	LBB0_7
## %bb.1:
	cmpl	$130, %esi
	jne	LBB0_11
## %bb.2:
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.4:
	movq	_APDS9960_REG_PIHT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.9:
	movq	_APDS9960_REG_PILT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_6:
	movq	_APDS9960_REG_AIHTL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_10:
	movq	_APDS9960_REG_AILTL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APDS9960_REG_PIHT,4,2          ## @APDS9960_REG_PIHT
	.comm	_APDS9960_REG_AIHTL,4,2         ## @APDS9960_REG_AIHTL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_APDS9960_REG_PILT,4,2          ## @APDS9960_REG_PILT
	.comm	_APDS9960_REG_AILTL,4,2         ## @APDS9960_REG_AILTL
	.no_dead_strip	_apds9960_get_thres_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apds9960_get_thres_reg
_apds9960_get_thres_reg:                ; @apds9960_get_thres_reg
	.cfi_startproc
; %bb.0:
	cmp	w1, #131
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #130
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.4:
	mov	w0, #0
Lloh0:
	adrp	x8, _APDS9960_REG_PIHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APDS9960_REG_PIHT@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
Lloh2:
	adrp	x8, _APDS9960_REG_PILT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APDS9960_REG_PILT@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_9:
	mov	w0, #0
Lloh7:
	adrp	x8, _APDS9960_REG_AIHTL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _APDS9960_REG_AIHTL@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
Lloh9:
	adrp	x8, _APDS9960_REG_AILTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _APDS9960_REG_AILTL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x2]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_APDS9960_REG_PIHT,4,2          ; @APDS9960_REG_PIHT
	.comm	_APDS9960_REG_AIHTL,4,2         ; @APDS9960_REG_AIHTL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_APDS9960_REG_PILT,4,2          ; @APDS9960_REG_PILT
	.comm	_APDS9960_REG_AILTL,4,2         ; @APDS9960_REG_AILTL
	.no_dead_strip	_apds9960_get_thres_reg
.subsections_via_symbols
