	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsl2772_read_avail
_tsl2772_read_avail:                    ## @tsl2772_read_avail
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r12
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	callq	_iio_priv
	cmpq	$128, %r14
	je	LBB0_4
## %bb.1:
	cmpq	$129, %r14
	jne	LBB0_5
## %bb.2:
	movl	(%r13), %eax
	movq	_IIO_INTENSITY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.3:
	movq	_tsl2772_int_calibscale_avail@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_4:
	movq	%rax, %rbx
	movq	_tsl2772_int_time_avail@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, (%r12)
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, (%r15)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_AVAIL_RANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_6:
	movq	_tsl2772_prox_calibscale_avail@GOTPCREL(%rip), %rbx
LBB0_7:
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, (%r12)
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_AVAIL_LIST@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_INTENSITY,4,2              ## @IIO_INTENSITY
	.comm	_tsl2772_int_calibscale_avail,8,3 ## @tsl2772_int_calibscale_avail
	.comm	_tsl2772_prox_calibscale_avail,8,3 ## @tsl2772_prox_calibscale_avail
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_AVAIL_LIST,4,2             ## @IIO_AVAIL_LIST
	.comm	_tsl2772_int_time_avail,8,3     ## @tsl2772_int_time_avail
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_IIO_AVAIL_RANGE,4,2            ## @IIO_AVAIL_RANGE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tsl2772_read_avail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsl2772_read_avail
_tsl2772_read_avail:                    ; @tsl2772_read_avail
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x24, x5
	mov	x21, x4
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	bl	_iio_priv
	cmp	x24, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	x24, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _IIO_INTENSITY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IIO_INTENSITY@GOTPAGEOFF]
Lloh2:
	adrp	x10, _tsl2772_prox_calibscale_avail@GOTPAGE
Lloh3:
	ldr	x10, [x10, _tsl2772_prox_calibscale_avail@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x11, _tsl2772_int_calibscale_avail@GOTPAGE
Lloh6:
	ldr	x11, [x11, _tsl2772_int_calibscale_avail@GOTPAGEOFF]
	cmp	w8, w9
	csel	x22, x11, x10, eq
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	str	w0, [x21]
	ldr	x8, [x22]
Lloh7:
	adrp	x9, _IIO_VAL_INT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IIO_VAL_INT@GOTPAGEOFF]
	str	x8, [x20]
Lloh9:
	ldr	w8, [x9]
	str	w8, [x19]
Lloh10:
	adrp	x8, _IIO_AVAIL_LIST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IIO_AVAIL_LIST@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_3:
	mov	x22, x0
Lloh13:
	adrp	x23, _tsl2772_int_time_avail@GOTPAGE
Lloh14:
	ldr	x23, [x23, _tsl2772_int_time_avail@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x0]
	ldr	x0, [x8, x9, lsl #3]
	bl	_ARRAY_SIZE
	str	w0, [x21]
	ldr	x8, [x23]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
Lloh15:
	adrp	x9, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
	str	x8, [x20]
Lloh17:
	ldr	w8, [x9]
	str	w8, [x19]
Lloh18:
	adrp	x8, _IIO_AVAIL_RANGE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IIO_AVAIL_RANGE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_INTENSITY,4,2              ; @IIO_INTENSITY
	.comm	_tsl2772_int_calibscale_avail,8,3 ; @tsl2772_int_calibscale_avail
	.comm	_tsl2772_prox_calibscale_avail,8,3 ; @tsl2772_prox_calibscale_avail
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_AVAIL_LIST,4,2             ; @IIO_AVAIL_LIST
	.comm	_tsl2772_int_time_avail,8,3     ; @tsl2772_int_time_avail
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_IIO_AVAIL_RANGE,4,2            ; @IIO_AVAIL_RANGE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tsl2772_read_avail
.subsections_via_symbols
