	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxt_read_t100_config
_mxt_read_t100_config:                  ## @mxt_read_t100_config
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	48(%rdi), %r14
	movq	_MXT_TOUCH_MULTITOUCHSCREEN_T100@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mxt_get_object
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_MXT_T100_XRANGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	leaq	-40(%rbp), %rcx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	___mxt_read_reg
	testl	%eax, %eax
	jne	LBB0_17
## %bb.3:
	leaq	-40(%rbp), %rdi
	callq	_get_unaligned_le16
	movq	%rax, 40(%r15)
	movq	_MXT_T100_YRANGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	leaq	-36(%rbp), %rcx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	___mxt_read_reg
	testl	%eax, %eax
	jne	LBB0_17
## %bb.4:
	leaq	-36(%rbp), %rdi
	callq	_get_unaligned_le16
	movq	%rax, 32(%r15)
	movq	_MXT_T100_XSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	movq	%r15, %rcx
	callq	___mxt_read_reg
	testl	%eax, %eax
	jne	LBB0_17
## %bb.5:
	movq	_MXT_T100_YSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	leaq	4(%r15), %rcx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	___mxt_read_reg
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movq	_MXT_T100_CFG1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	leaq	-32(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	___mxt_read_reg
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	movl	-32(%rbp), %eax
	movq	_MXT_T100_CFG_SWITCHXY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, 8(%r15)
	movq	_MXT_T100_CFG_INVERTX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, 12(%r15)
	movq	_MXT_T100_CFG_INVERTY@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, 16(%r15)
	movq	_MXT_T100_TCHAUX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	leaq	-28(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	___mxt_read_reg
	testl	%eax, %eax
	jne	LBB0_17
## %bb.8:
	movl	-28(%rbp), %eax
	movq	_MXT_T100_TCHAUX_VECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.10:
	movl	$6, 28(%r15)
	movl	$7, %r8d
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	$6, %r8d
LBB0_11:
	movq	_MXT_T100_TCHAUX_AMPL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movl	%r8d, 24(%r15)
	incl	%r8d
LBB0_13:
	movq	_MXT_T100_TCHAUX_AREA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.15:
	movl	%r8d, 20(%r15)
	jmp	LBB0_16
LBB0_14:
	movl	20(%r15), %r8d
LBB0_16:
	movl	24(%r15), %ecx
	movl	28(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_MXT_TOUCH_MULTITOUCHSCREEN_T100,4,2 ## @MXT_TOUCH_MULTITOUCHSCREEN_T100
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MXT_T100_XRANGE,8,3            ## @MXT_T100_XRANGE
	.comm	_MXT_T100_YRANGE,8,3            ## @MXT_T100_YRANGE
	.comm	_MXT_T100_XSIZE,8,3             ## @MXT_T100_XSIZE
	.comm	_MXT_T100_YSIZE,8,3             ## @MXT_T100_YSIZE
	.comm	_MXT_T100_CFG1,8,3              ## @MXT_T100_CFG1
	.comm	_MXT_T100_CFG_SWITCHXY,4,2      ## @MXT_T100_CFG_SWITCHXY
	.comm	_MXT_T100_CFG_INVERTX,4,2       ## @MXT_T100_CFG_INVERTX
	.comm	_MXT_T100_CFG_INVERTY,4,2       ## @MXT_T100_CFG_INVERTY
	.comm	_MXT_T100_TCHAUX,8,3            ## @MXT_T100_TCHAUX
	.comm	_MXT_T100_TCHAUX_VECT,4,2       ## @MXT_T100_TCHAUX_VECT
	.comm	_MXT_T100_TCHAUX_AMPL,4,2       ## @MXT_T100_TCHAUX_AMPL
	.comm	_MXT_T100_TCHAUX_AREA,4,2       ## @MXT_T100_TCHAUX_AREA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"T100 aux mappings vect:%u ampl:%u area:%u\n"

	.no_dead_strip	_mxt_read_t100_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxt_read_t100_config
_mxt_read_t100_config:                  ; @mxt_read_t100_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	x19, [x0, #48]
Lloh0:
	adrp	x8, _MXT_TOUCH_MULTITOUCHSCREEN_T100@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MXT_TOUCH_MULTITOUCHSCREEN_T100@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mxt_get_object
	cbz	x0, LBB0_13
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _MXT_T100_XRANGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MXT_T100_XRANGE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	___mxt_read_reg
	cbnz	w0, LBB0_14
; %bb.2:
	add	x0, sp, #12
	bl	_get_unaligned_le16
	str	x0, [x20, #40]
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _MXT_T100_YRANGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MXT_T100_YRANGE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	___mxt_read_reg
	cbnz	w0, LBB0_14
; %bb.3:
	add	x0, sp, #8
	bl	_get_unaligned_le16
	str	x0, [x20, #32]
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _MXT_T100_XSIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MXT_T100_XSIZE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #4
	mov	x3, x20
	bl	___mxt_read_reg
	cbnz	w0, LBB0_14
; %bb.4:
	ldr	x8, [x21]
Lloh12:
	adrp	x9, _MXT_T100_YSIZE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MXT_T100_YSIZE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	add	x3, x20, #4
	mov	x0, x19
	mov	w2, #4
	bl	___mxt_read_reg
	cbnz	w0, LBB0_14
; %bb.5:
	ldr	x8, [x21]
Lloh15:
	adrp	x9, _MXT_T100_CFG1@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MXT_T100_CFG1@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	add	x3, sp, #4
	mov	x0, x19
	mov	w2, #1
	bl	___mxt_read_reg
	cbnz	w0, LBB0_14
; %bb.6:
	ldr	w8, [sp, #4]
Lloh18:
	adrp	x9, _MXT_T100_CFG_SWITCHXY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MXT_T100_CFG_SWITCHXY@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh21:
	adrp	x10, _MXT_T100_CFG_INVERTX@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MXT_T100_CFG_INVERTX@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	and	w10, w10, w8
	stp	w9, w10, [x20, #8]
Lloh24:
	adrp	x9, _MXT_T100_CFG_INVERTY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MXT_T100_CFG_INVERTY@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x20, #16]
	ldr	x8, [x21]
Lloh27:
	adrp	x9, _MXT_T100_TCHAUX@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MXT_T100_TCHAUX@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x3, sp
	mov	x0, x19
	mov	w2, #1
	bl	___mxt_read_reg
	cbnz	w0, LBB0_14
; %bb.7:
	ldr	w8, [sp]
Lloh30:
	adrp	x9, _MXT_T100_TCHAUX_VECT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MXT_T100_TCHAUX_VECT@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	mov	w4, #6
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	str	w4, [x20, #28]
	mov	w4, #7
LBB0_9:
Lloh33:
	adrp	x9, _MXT_T100_TCHAUX_AMPL@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MXT_T100_TCHAUX_AMPL@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	str	w4, [x20, #24]
	add	w4, w4, #1
LBB0_11:
Lloh36:
	adrp	x9, _MXT_T100_TCHAUX_AREA@GOTPAGE
Lloh37:
	ldr	x9, [x9, _MXT_T100_TCHAUX_AREA@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.12:
	str	w4, [x20, #20]
	b	LBB0_16
LBB0_13:
Lloh39:
	adrp	x8, _EINVAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	add	sp, sp, #64
	ret
LBB0_15:
	ldr	w4, [x20, #20]
LBB0_16:
	ldp	w3, w2, [x20, #24]
Lloh42:
	adrp	x1, l_.str@PAGE
Lloh43:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_MXT_TOUCH_MULTITOUCHSCREEN_T100,4,2 ; @MXT_TOUCH_MULTITOUCHSCREEN_T100
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MXT_T100_XRANGE,8,3            ; @MXT_T100_XRANGE
	.comm	_MXT_T100_YRANGE,8,3            ; @MXT_T100_YRANGE
	.comm	_MXT_T100_XSIZE,8,3             ; @MXT_T100_XSIZE
	.comm	_MXT_T100_YSIZE,8,3             ; @MXT_T100_YSIZE
	.comm	_MXT_T100_CFG1,8,3              ; @MXT_T100_CFG1
	.comm	_MXT_T100_CFG_SWITCHXY,4,2      ; @MXT_T100_CFG_SWITCHXY
	.comm	_MXT_T100_CFG_INVERTX,4,2       ; @MXT_T100_CFG_INVERTX
	.comm	_MXT_T100_CFG_INVERTY,4,2       ; @MXT_T100_CFG_INVERTY
	.comm	_MXT_T100_TCHAUX,8,3            ; @MXT_T100_TCHAUX
	.comm	_MXT_T100_TCHAUX_VECT,4,2       ; @MXT_T100_TCHAUX_VECT
	.comm	_MXT_T100_TCHAUX_AMPL,4,2       ; @MXT_T100_TCHAUX_AMPL
	.comm	_MXT_T100_TCHAUX_AREA,4,2       ; @MXT_T100_TCHAUX_AREA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"T100 aux mappings vect:%u ampl:%u area:%u\n"

	.no_dead_strip	_mxt_read_t100_config
.subsections_via_symbols
