	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apds990x_ack_int
_apds990x_ack_int:                      ## @apds990x_ack_int
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	_APDS990x_CMD@GOTPCREL(%rip), %rcx
	movq	_APDS990x_CMD_TYPE_SPE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	andb	$-127, %al
	cmpb	$-128, %al
	jne	LBB0_1
## %bb.2:
	movq	_APDS990X_INT_ACK_PS@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_APDS990X_INT_ACK_BOTH@GOTPCREL(%rip), %rdx
LBB0_3:
	movq	(%rdi), %rdi
	orl	(%rcx), %esi
	cmpb	$-127, %al
	jne	LBB0_5
## %bb.4:
	movq	_APDS990X_INT_ACK_ALS@GOTPCREL(%rip), %rdx
LBB0_5:
	orl	(%rdx), %esi
	popq	%rbp
	jmp	_i2c_smbus_read_byte_data       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_APDS990x_CMD,4,2               ## @APDS990x_CMD
	.comm	_APDS990x_CMD_TYPE_SPE,4,2      ## @APDS990x_CMD_TYPE_SPE
	.comm	_APDS990X_INT_ACK_ALS,4,2       ## @APDS990X_INT_ACK_ALS
	.comm	_APDS990X_INT_ACK_PS,4,2        ## @APDS990X_INT_ACK_PS
	.comm	_APDS990X_INT_ACK_BOTH,4,2      ## @APDS990X_INT_ACK_BOTH
	.no_dead_strip	_apds990x_ack_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apds990x_ack_int
_apds990x_ack_int:                      ; @apds990x_ack_int
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _APDS990x_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APDS990x_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _APDS990x_CMD_TYPE_SPE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _APDS990x_CMD_TYPE_SPE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #129
	and	w10, w1, w10
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _APDS990X_INT_ACK_ALS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _APDS990X_INT_ACK_ALS@GOTPAGEOFF]
Lloh8:
	adrp	x11, _APDS990X_INT_ACK_PS@GOTPAGE
Lloh9:
	ldr	x11, [x11, _APDS990X_INT_ACK_PS@GOTPAGEOFF]
Lloh10:
	adrp	x12, _APDS990X_INT_ACK_BOTH@GOTPAGE
Lloh11:
	ldr	x12, [x12, _APDS990X_INT_ACK_BOTH@GOTPAGEOFF]
	cmp	w10, #128
	csel	x11, x11, x12, eq
	cmp	w10, #129
	csel	x9, x9, x11, eq
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_i2c_smbus_read_byte_data
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_APDS990x_CMD,4,2               ; @APDS990x_CMD
	.comm	_APDS990x_CMD_TYPE_SPE,4,2      ; @APDS990x_CMD_TYPE_SPE
	.comm	_APDS990X_INT_ACK_ALS,4,2       ; @APDS990X_INT_ACK_ALS
	.comm	_APDS990X_INT_ACK_PS,4,2        ; @APDS990X_INT_ACK_PS
	.comm	_APDS990X_INT_ACK_BOTH,4,2      ; @APDS990X_INT_ACK_BOTH
	.no_dead_strip	_apds990x_ack_int
.subsections_via_symbols
