	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyapa_gen5_show_baseline
_cyapa_gen5_show_baseline:              ## @cyapa_gen5_show_baseline
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_cyapa_is_pip_app_mode
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_cyapa_pip_suspend_scanning
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	subq	$8, %rsp
	leaq	-152(%rbp), %rax
	leaq	-172(%rbp), %rsi
	leaq	-168(%rbp), %rdx
	leaq	-164(%rbp), %rcx
	leaq	-160(%rbp), %r8
	leaq	-156(%rbp), %r9
	movq	%r15, %rdi
	pushq	%rax
	callq	_cyapa_gen5_read_mutual_idac_data
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-148(%rbp), %rcx
	leaq	-144(%rbp), %r8
	leaq	-140(%rbp), %r9
	movq	%r15, %rdi
	callq	_cyapa_gen5_read_self_idac_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	%r15, %rdi
	callq	_cyapa_gen5_execute_panel_scan
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movq	_GEN5_CMD_RETRIEVE_PANEL_SCAN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_GEN5_PANEL_SCAN_MUTUAL_RAW_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r15), %ecx
	imull	(%r15), %ecx
	leaq	-128(%rbp), %rax
	leaq	-136(%rbp), %r8
	leaq	-132(%rbp), %r9
	movq	%r15, %rdi
	pushq	$0
	pushq	%rax
	callq	_cyapa_gen5_read_panel_scan_raw_data
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movl	(%r12), %esi
	movq	_GEN5_PANEL_SCAN_SELF_RAW_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r15), %ecx
	addl	(%r15), %ecx
	leaq	-116(%rbp), %rax
	leaq	-124(%rbp), %r8
	leaq	-120(%rbp), %r9
	movq	%r15, %rdi
	pushq	$0
	pushq	%rax
	callq	_cyapa_gen5_read_panel_scan_raw_data
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movl	(%r12), %esi
	movq	_GEN5_PANEL_SCAN_MUTUAL_DIFFCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r15), %ecx
	imull	(%r15), %ecx
	leaq	-104(%rbp), %rax
	leaq	-112(%rbp), %r8
	leaq	-108(%rbp), %r9
	movq	%r15, %rdi
	pushq	$0
	pushq	%rax
	callq	_cyapa_gen5_read_panel_scan_raw_data
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movl	(%r12), %esi
	movq	_GEN5_PANEL_SCAN_SELF_DIFFCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r15), %ecx
	addl	(%r15), %ecx
	leaq	-92(%rbp), %rax
	leaq	-100(%rbp), %r8
	leaq	-96(%rbp), %r9
	movq	%r15, %rdi
	pushq	$0
	pushq	%rax
	callq	_cyapa_gen5_read_panel_scan_raw_data
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movl	(%r12), %esi
	movq	_GEN5_PANEL_SCAN_MUTUAL_BASELINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r15), %ecx
	imull	(%r15), %ecx
	leaq	-80(%rbp), %rax
	leaq	-88(%rbp), %r8
	leaq	-84(%rbp), %r9
	movq	%r15, %rdi
	pushq	$0
	pushq	%rax
	callq	_cyapa_gen5_read_panel_scan_raw_data
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	(%r12), %esi
	movq	_GEN5_PANEL_SCAN_SELF_BASELINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r15), %ecx
	addl	(%r15), %ecx
	leaq	-68(%rbp), %rax
	leaq	-76(%rbp), %r8
	leaq	-72(%rbp), %r9
	movq	%r15, %rdi
	pushq	$0
	pushq	%rax
	callq	_cyapa_gen5_read_panel_scan_raw_data
	addq	$16, %rsp
	movl	%eax, %ebx
LBB0_12:
	movq	%r15, %rdi
	callq	_cyapa_pip_resume_scanning
	movl	%eax, %ecx
	orl	%ebx, %ecx
	je	LBB0_14
## %bb.13:
	testl	%eax, %eax
	cmovnel	%eax, %ebx
	jmp	LBB0_15
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_14:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	-168(%rbp), %ecx
	movl	-172(%rbp), %r8d
	movl	-164(%rbp), %r9d
	movl	-156(%rbp), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-160(%rbp), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-152(%rbp), %r12d
	movl	-48(%rbp), %r13d
	movl	-44(%rbp), %ebx
	movl	-144(%rbp), %r15d
	movl	-148(%rbp), %r10d
	movl	-140(%rbp), %r11d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r10
	pushq	%r15
	pushq	%rbx
	pushq	%r13
	pushq	%r12
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_scnprintf
	addq	$64, %rsp
	movslq	%eax, %rbx
	addq	%rbx, %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%rbx, %rsi
	movl	-132(%rbp), %ecx
	movl	-136(%rbp), %r8d
	movl	-128(%rbp), %r9d
	movl	-120(%rbp), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-124(%rbp), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-116(%rbp), %eax
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	movl	-108(%rbp), %eax
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	movl	-112(%rbp), %eax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	movl	-104(%rbp), %eax
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	movl	-96(%rbp), %eax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movl	-100(%rbp), %eax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movl	-92(%rbp), %eax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movl	-84(%rbp), %r13d
	movl	-88(%rbp), %r10d
	movl	-80(%rbp), %r11d
	movl	-72(%rbp), %r15d
	movq	%r14, %rdi
	movl	-76(%rbp), %r14d
	movl	-68(%rbp), %r12d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	pushq	%r12
	pushq	%r14
	pushq	%r15
	pushq	%r11
	pushq	%r10
	pushq	%r13
	pushq	-184(%rbp)                      ## 8-byte Folded Reload
	pushq	-192(%rbp)                      ## 8-byte Folded Reload
	pushq	-200(%rbp)                      ## 8-byte Folded Reload
	pushq	-208(%rbp)                      ## 8-byte Folded Reload
	pushq	-216(%rbp)                      ## 8-byte Folded Reload
	pushq	-224(%rbp)                      ## 8-byte Folded Reload
	pushq	-232(%rbp)                      ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_scnprintf
	addq	$128, %rsp
	addl	%eax, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GEN5_CMD_RETRIEVE_PANEL_SCAN,4,2 ## @GEN5_CMD_RETRIEVE_PANEL_SCAN
	.comm	_GEN5_PANEL_SCAN_MUTUAL_RAW_DATA,4,2 ## @GEN5_PANEL_SCAN_MUTUAL_RAW_DATA
	.comm	_GEN5_PANEL_SCAN_SELF_RAW_DATA,4,2 ## @GEN5_PANEL_SCAN_SELF_RAW_DATA
	.comm	_GEN5_PANEL_SCAN_MUTUAL_DIFFCOUNT,4,2 ## @GEN5_PANEL_SCAN_MUTUAL_DIFFCOUNT
	.comm	_GEN5_PANEL_SCAN_SELF_DIFFCOUNT,4,2 ## @GEN5_PANEL_SCAN_SELF_DIFFCOUNT
	.comm	_GEN5_PANEL_SCAN_MUTUAL_BASELINE,4,2 ## @GEN5_PANEL_SCAN_MUTUAL_BASELINE
	.comm	_GEN5_PANEL_SCAN_SELF_BASELINE,4,2 ## @GEN5_PANEL_SCAN_SELF_BASELINE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d %d %d %d %d %d %d %d %d %d %d "

L_.str.1:                               ## @.str.1
	.asciz	"%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d\n"

	.no_dead_strip	_cyapa_gen5_show_baseline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyapa_gen5_show_baseline
_cyapa_gen5_show_baseline:              ; @cyapa_gen5_show_baseline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x19, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	bl	_cyapa_is_pip_app_mode
	cbz	w0, LBB0_13
; %bb.1:
	mov	x0, x20
	bl	_cyapa_pip_suspend_scanning
	cbnz	w0, LBB0_15
; %bb.2:
	stur	xzr, [x29, #-80]
	sub	x1, x29, #52
	sub	x2, x29, #56
	sub	x3, x29, #60
	sub	x4, x29, #64
	sub	x5, x29, #68
	sub	x6, x29, #72
	mov	x0, x20
	bl	_cyapa_gen5_read_mutual_idac_data
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.3:
	sub	x1, x29, #76
	sub	x2, x29, #80
	sub	x3, x29, #84
	sub	x4, x29, #88
	sub	x5, x29, #92
	mov	x0, x20
	bl	_cyapa_gen5_read_self_idac_data
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.4:
	mov	x0, x20
	bl	_cyapa_gen5_execute_panel_scan
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.5:
Lloh0:
	adrp	x22, _GEN5_CMD_RETRIEVE_PANEL_SCAN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GEN5_CMD_RETRIEVE_PANEL_SCAN@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _GEN5_PANEL_SCAN_MUTUAL_RAW_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GEN5_PANEL_SCAN_MUTUAL_RAW_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldp	w8, w9, [x20]
	mul	w3, w9, w8
	sub	x4, x29, #96
	sub	x5, x29, #100
	sub	x6, x29, #104
	mov	x0, x20
	mov	x7, #0
	bl	_cyapa_gen5_read_panel_scan_raw_data
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _GEN5_PANEL_SCAN_SELF_RAW_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GEN5_PANEL_SCAN_SELF_RAW_DATA@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldp	w8, w9, [x20]
	add	w3, w9, w8
	sub	x4, x29, #108
	sub	x5, x29, #112
	sub	x6, x29, #116
	mov	x0, x20
	mov	x7, #0
	bl	_cyapa_gen5_read_panel_scan_raw_data
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.7:
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _GEN5_PANEL_SCAN_MUTUAL_DIFFCOUNT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GEN5_PANEL_SCAN_MUTUAL_DIFFCOUNT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldp	w8, w9, [x20]
	mul	w3, w9, w8
	sub	x4, x29, #120
	sub	x5, x29, #124
	add	x6, sp, #128
	mov	x0, x20
	mov	x7, #0
	bl	_cyapa_gen5_read_panel_scan_raw_data
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.8:
	ldr	w1, [x22]
Lloh11:
	adrp	x8, _GEN5_PANEL_SCAN_SELF_DIFFCOUNT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GEN5_PANEL_SCAN_SELF_DIFFCOUNT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldp	w8, w9, [x20]
	add	w3, w9, w8
	add	x4, sp, #124
	add	x5, sp, #120
	add	x6, sp, #116
	mov	x0, x20
	mov	x7, #0
	bl	_cyapa_gen5_read_panel_scan_raw_data
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.9:
	ldr	w1, [x22]
Lloh14:
	adrp	x8, _GEN5_PANEL_SCAN_MUTUAL_BASELINE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GEN5_PANEL_SCAN_MUTUAL_BASELINE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldp	w8, w9, [x20]
	mul	w3, w9, w8
	add	x4, sp, #112
	add	x5, sp, #108
	add	x6, sp, #104
	mov	x0, x20
	mov	x7, #0
	bl	_cyapa_gen5_read_panel_scan_raw_data
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	w1, [x22]
Lloh17:
	adrp	x8, _GEN5_PANEL_SCAN_SELF_BASELINE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GEN5_PANEL_SCAN_SELF_BASELINE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	ldp	w8, w9, [x20]
	add	w3, w9, w8
	add	x4, sp, #100
	add	x5, sp, #96
	add	x6, sp, #92
	mov	x0, x20
	mov	x7, #0
	bl	_cyapa_gen5_read_panel_scan_raw_data
	mov	x21, x0
LBB0_11:
	mov	x0, x20
	bl	_cyapa_pip_resume_scanning
	orr	w8, w0, w21
	cbz	w8, LBB0_14
; %bb.12:
	cmp	w0, #0
	csel	w0, w0, w21, ne
	b	LBB0_15
LBB0_13:
Lloh20:
	adrp	x8, _EBUSY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_14:
Lloh23:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh24:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x1, [x21]
	ldp	w3, w4, [x29, #-56]
	ldp	w7, w5, [x29, #-64]
	ldp	w8, w6, [x29, #-72]
	ldp	w10, w9, [x29, #-80]
	ldp	w11, w12, [x29, #-88]
	ldur	w13, [x29, #-92]
	stp	w12, w13, [sp, #16]
	stp	w10, w11, [sp, #8]
Lloh25:
	adrp	x2, l_.str@PAGE
Lloh26:
	add	x2, x2, l_.str@PAGEOFF
	stp	w8, w9, [sp]
	mov	x0, x19
	bl	_scnprintf
	mov	x20, x0
	ldr	x8, [x21]
	sxtw	x9, w20
	add	x0, x19, x9
	ldp	w3, w4, [x29, #-100]
	sub	x1, x8, x9
	ldp	w7, w5, [x29, #-108]
	ldp	w8, w6, [x29, #-116]
	ldp	w9, w10, [x29, #-124]
	ldp	w13, w11, [sp, #124]
	ldp	w14, w12, [sp, #116]
	ldp	w15, w16, [sp, #108]
	ldp	w19, w17, [sp, #100]
	ldp	w21, w2, [sp, #92]
	stp	x19, x21, [sp, #64]
	stp	x17, x2, [sp, #48]
	stp	x15, x16, [sp, #32]
	str	x14, [sp, #24]
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
	stp	w12, w13, [sp, #16]
	stp	w10, w11, [sp, #8]
	stp	w8, w9, [sp]
	bl	_scnprintf
	add	w0, w0, w20
LBB0_15:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, 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 AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GEN5_CMD_RETRIEVE_PANEL_SCAN,4,2 ; @GEN5_CMD_RETRIEVE_PANEL_SCAN
	.comm	_GEN5_PANEL_SCAN_MUTUAL_RAW_DATA,4,2 ; @GEN5_PANEL_SCAN_MUTUAL_RAW_DATA
	.comm	_GEN5_PANEL_SCAN_SELF_RAW_DATA,4,2 ; @GEN5_PANEL_SCAN_SELF_RAW_DATA
	.comm	_GEN5_PANEL_SCAN_MUTUAL_DIFFCOUNT,4,2 ; @GEN5_PANEL_SCAN_MUTUAL_DIFFCOUNT
	.comm	_GEN5_PANEL_SCAN_SELF_DIFFCOUNT,4,2 ; @GEN5_PANEL_SCAN_SELF_DIFFCOUNT
	.comm	_GEN5_PANEL_SCAN_MUTUAL_BASELINE,4,2 ; @GEN5_PANEL_SCAN_MUTUAL_BASELINE
	.comm	_GEN5_PANEL_SCAN_SELF_BASELINE,4,2 ; @GEN5_PANEL_SCAN_SELF_BASELINE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d %d %d %d %d %d %d %d %d %d %d "

l_.str.1:                               ; @.str.1
	.asciz	"%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d\n"

	.no_dead_strip	_cyapa_gen5_show_baseline
.subsections_via_symbols
