	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsc2007_read_raw
_tsc2007_read_raw:                      ## @tsc2007_read_raw
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	callq	_iio_priv
	movq	(%rax), %r15
	movl	(%r13), %ebx
	movq	_tsc2007_iio_channel@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_1
## %bb.2:
	movq	_IIO_CHAN_INFO_RAW@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_1
## %bb.3:
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	(%r13), %eax
	cmpq	$8, %rax
	ja	LBB0_17
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_READ_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_16
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_7:
	movq	_READ_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_16
LBB0_8:
	movq	_READ_Z1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_16
LBB0_9:
	movq	_READ_Z2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_16
LBB0_10:
	movq	_ADC_ON_12BIT@GOTPCREL(%rip), %rax
	movq	_TSC2007_MEASURE_AUX@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_11:
	movq	_READ_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tsc2007_xfer
	movq	%rax, -48(%rbp)
	movq	_READ_Z1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tsc2007_xfer
	movq	%rax, -56(%rbp)
	movq	_READ_Z2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tsc2007_xfer
	movq	%rax, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_tsc2007_calculate_resistance
	movl	%eax, (%r14)
	jmp	LBB0_17
LBB0_12:
	movq	%r15, %rdi
	callq	_tsc2007_is_pen_down
	movl	%eax, (%r14)
	jmp	LBB0_17
LBB0_13:
	movq	_ADC_ON_12BIT@GOTPCREL(%rip), %rax
	movq	_TSC2007_MEASURE_TEMP0@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_14:
	movq	_ADC_ON_12BIT@GOTPCREL(%rip), %rax
	movq	_TSC2007_MEASURE_TEMP1@GOTPCREL(%rip), %rcx
LBB0_15:
	movl	(%rcx), %esi
	orl	(%rax), %esi
LBB0_16:
	movq	%r15, %rdi
	callq	_tsc2007_xfer
	movl	%eax, (%r14)
LBB0_17:
	movq	_PWRDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tsc2007_xfer
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_tsc2007_iio_channel,4,2        ## @tsc2007_iio_channel
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_CHAN_INFO_RAW,8,3          ## @IIO_CHAN_INFO_RAW
	.comm	_READ_X,4,2                     ## @READ_X
	.comm	_READ_Y,4,2                     ## @READ_Y
	.comm	_READ_Z1,4,2                    ## @READ_Z1
	.comm	_READ_Z2,4,2                    ## @READ_Z2
	.comm	_ADC_ON_12BIT,4,2               ## @ADC_ON_12BIT
	.comm	_TSC2007_MEASURE_AUX,4,2        ## @TSC2007_MEASURE_AUX
	.comm	_TSC2007_MEASURE_TEMP0,4,2      ## @TSC2007_MEASURE_TEMP0
	.comm	_TSC2007_MEASURE_TEMP1,4,2      ## @TSC2007_MEASURE_TEMP1
	.comm	_PWRDOWN,4,2                    ## @PWRDOWN
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_tsc2007_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsc2007_read_raw
_tsc2007_read_raw:                      ; @tsc2007_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x4
	mov	x20, x2
	mov	x21, x1
	bl	_iio_priv
	ldr	x19, [x0]
	ldr	w23, [x21]
Lloh0:
	adrp	x8, _tsc2007_iio_channel@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tsc2007_iio_channel@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.ge	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _IIO_CHAN_INFO_RAW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_CHAN_INFO_RAW@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x21]
	cmp	w8, #8
	b.hi	LBB0_16
; %bb.3:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh8:
	adrp	x8, _READ_X@GOTPAGE
Lloh9:
	ldr	x8, [x8, _READ_X@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	b	LBB0_15
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_6:
Lloh14:
	adrp	x8, _READ_Y@GOTPAGE
Lloh15:
	ldr	x8, [x8, _READ_Y@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	b	LBB0_15
LBB0_7:
Lloh17:
	adrp	x8, _READ_Z1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _READ_Z1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	b	LBB0_15
LBB0_8:
Lloh20:
	adrp	x8, _READ_Z2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _READ_Z2@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	b	LBB0_15
LBB0_9:
Lloh23:
	adrp	x8, _ADC_ON_12BIT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ADC_ON_12BIT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _TSC2007_MEASURE_AUX@GOTPAGE
Lloh27:
	ldr	x9, [x9, _TSC2007_MEASURE_AUX@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
Lloh28:
	adrp	x8, _READ_X@GOTPAGE
Lloh29:
	ldr	x8, [x8, _READ_X@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tsc2007_xfer
	str	x0, [sp, #24]
Lloh31:
	adrp	x8, _READ_Z1@GOTPAGE
Lloh32:
	ldr	x8, [x8, _READ_Z1@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tsc2007_xfer
	str	x0, [sp, #16]
Lloh34:
	adrp	x8, _READ_Z2@GOTPAGE
Lloh35:
	ldr	x8, [x8, _READ_Z2@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tsc2007_xfer
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_tsc2007_calculate_resistance
	str	w0, [x20]
	b	LBB0_16
LBB0_11:
	mov	x0, x19
	bl	_tsc2007_is_pen_down
	str	w0, [x20]
	b	LBB0_16
LBB0_12:
Lloh37:
	adrp	x8, _ADC_ON_12BIT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ADC_ON_12BIT@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _TSC2007_MEASURE_TEMP0@GOTPAGE
Lloh41:
	ldr	x9, [x9, _TSC2007_MEASURE_TEMP0@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh42:
	adrp	x8, _ADC_ON_12BIT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ADC_ON_12BIT@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _TSC2007_MEASURE_TEMP1@GOTPAGE
Lloh46:
	ldr	x9, [x9, _TSC2007_MEASURE_TEMP1@GOTPAGEOFF]
LBB0_14:
	ldr	w9, [x9]
	orr	w1, w9, w8
LBB0_15:
	mov	x0, x19
	bl	_tsc2007_xfer
	str	w0, [x20]
LBB0_16:
Lloh47:
	adrp	x8, _PWRDOWN@GOTPAGE
Lloh48:
	ldr	x8, [x8, _PWRDOWN@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tsc2007_xfer
	mov	x0, x19
	bl	_mutex_unlock
Lloh50:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh51:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
                                        ; -- End function
	.comm	_tsc2007_iio_channel,4,2        ; @tsc2007_iio_channel
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_CHAN_INFO_RAW,8,3          ; @IIO_CHAN_INFO_RAW
	.comm	_READ_X,4,2                     ; @READ_X
	.comm	_READ_Y,4,2                     ; @READ_Y
	.comm	_READ_Z1,4,2                    ; @READ_Z1
	.comm	_READ_Z2,4,2                    ; @READ_Z2
	.comm	_ADC_ON_12BIT,4,2               ; @ADC_ON_12BIT
	.comm	_TSC2007_MEASURE_AUX,4,2        ; @TSC2007_MEASURE_AUX
	.comm	_TSC2007_MEASURE_TEMP0,4,2      ; @TSC2007_MEASURE_TEMP0
	.comm	_TSC2007_MEASURE_TEMP1,4,2      ; @TSC2007_MEASURE_TEMP1
	.comm	_PWRDOWN,4,2                    ; @PWRDOWN
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_tsc2007_read_raw
.subsections_via_symbols
