	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyapa_gen5_read_panel_scan_raw_data
_cyapa_gen5_read_panel_scan_raw_data:   ## @cyapa_gen5_read_panel_scan_raw_data
	.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	$2296, %rsp                     ## imm = 0x8F8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -2232(%rbp)                ## 8-byte Spill
	movq	%r8, -2224(%rbp)                ## 8-byte Spill
	movq	%rdi, -2312(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GEN5_CMD_RETRIEVE_PANEL_SCAN@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_5
## %bb.1:
	cmpq	$0, 16(%rbp)
	je	LBB0_5
## %bb.2:
	cmpq	$0, -2232(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_5
## %bb.3:
	cmpq	$0, -2224(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movq	%rdx, %r12
	movq	_GEN5_PANEL_SCAN_SELF_DIFFCOUNT@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jl	LBB0_5
## %bb.8:
	movq	%rsi, %r13
	movl	%ecx, -2212(%rbp)               ## 4-byte Spill
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-2224(%rbp), %rcx               ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-2232(%rbp), %rcx               ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$256, %ecx                      ## imm = 0x100
	subl	%eax, %ecx
	movl	$259, %r15d                     ## imm = 0x103
	subl	%eax, %r15d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r15d
	movl	%r15d, %r14d
	sarl	$2, %r14d
	andl	$-4, %r15d
	movq	_PIP_OUTPUT_REPORT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-120(%rbp), %rsi
	callq	_put_unaligned_le16
	leaq	-124(%rbp), %rsi
	movl	$94, %edi
	callq	_put_unaligned_le16
	movq	_PIP_APP_CMD_REPORT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movq	%r13, -136(%rbp)
	movq	-144(%rbp), %rax
	leaq	12(%rax), %rcx
	movq	%rcx, -2296(%rbp)               ## 8-byte Spill
	movq	%rax, -2304(%rbp)               ## 8-byte Spill
	addq	$8, %rax
	movq	%rax, -2288(%rbp)               ## 8-byte Spill
	xorl	%edi, %edi
	movl	$0, -2196(%rbp)                 ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -2208(%rbp)               ## 8-byte Spill
	movq	%r12, -2280(%rbp)               ## 8-byte Spill
	movq	%r13, -2272(%rbp)               ## 8-byte Spill
	jmp	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.32:
	movl	%ecx, %eax
	addq	$2296, %rsp                     ## imm = 0x8F8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %r14
LBB0_31:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-2248(%rbp), %rdi               ## 8-byte Reload
	addl	%ecx, %edi
	movl	%r14d, %r15d
	imull	%ebx, %r15d
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
	movq	%rdi, -2248(%rbp)               ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	movq	-2296(%rbp), %rsi               ## 8-byte Reload
	callq	_put_unaligned_le16
	movl	%r14d, %edi
	movq	-2288(%rbp), %rsi               ## 8-byte Reload
	callq	_put_unaligned_le16
	movq	-2304(%rbp), %rax               ## 8-byte Reload
	movq	%r12, (%rax)
	movq	_GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movl	%r15d, -2216(%rbp)
	movq	_cyapa_sort_tsg_pip_app_resp_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-2312(%rbp), %rdi               ## 8-byte Reload
	leaq	-144(%rbp), %rsi
	movl	$96, %edx
	leaq	-2192(%rbp), %rcx
	leaq	-2216(%rbp), %r8
	movl	$500, %r9d                      ## imm = 0x1F4
	pushq	$1
	pushq	%rax
	callq	_cyapa_i2c_pip_cmd_irq_sync
	addq	$16, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-2216(%rbp), %eax
	movq	_GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	-2192(%rbp), %rdi
	movq	%r13, %rsi
	callq	_VALID_CMD_RESP_HEADER
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	-2192(%rbp), %rdi
	callq	_PIP_CMD_COMPLETE_SUCCESS
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r12, -2144(%rbp)
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	-2136(%rbp), %rdi
	callq	_get_unaligned_le16
	testl	%eax, %eax
	je	LBB0_16
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %ecx
	movq	-2120(%rbp), %rdi
	movq	_GEN5_PWC_DATA_ELEMENT_SIZE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	andq	%rdi, %rbx
	movq	_GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ecx, %esi
	imull	%ebx, %esi
	movq	%rsi, %rdx
	movq	%rsi, -2336(%rbp)               ## 8-byte Spill
	testl	%esi, %esi
	jle	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%ecx, -2236(%rbp)               ## 4-byte Spill
	movslq	%eax, %r13
	movslq	%ebx, %rdx
	movq	-2208(%rbp), %rcx               ## 8-byte Reload
	movslq	%ecx, %rcx
	movq	24(%rbp), %rax
	leaq	(%rax,%rcx,8), %rax
	movq	%rax, -2264(%rbp)               ## 8-byte Spill
	incl	%ecx
	movq	%rcx, -2208(%rbp)               ## 8-byte Spill
	leaq	-2192(,%r13,8), %r14
	addq	%rbp, %r14
	leaq	(,%rdx,8), %rax
	movq	%rax, -2320(%rbp)               ## 8-byte Spill
	movq	%rdx, -2328(%rbp)               ## 8-byte Spill
	addq	%rdx, %r13
	movq	%rbx, -2256(%rbp)               ## 8-byte Spill
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_cyapa_parse_structure_data
	movq	%rax, %r12
	movq	-2232(%rbp), %r15               ## 8-byte Reload
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_min
	movl	%eax, (%r15)
	movq	-2224(%rbp), %rbx               ## 8-byte Reload
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_max
	movl	%eax, (%rbx)
	cmpq	$0, 24(%rbp)
	movq	-2264(%rbp), %rbx               ## 8-byte Reload
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_put_unaligned_le32
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=2
	movl	-2196(%rbp), %edx               ## 4-byte Reload
	addl	%r12d, %edx
	movq	_GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-2336(%rbp), %rcx               ## 8-byte Reload
	addl	%eax, %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %r13
	movl	%edx, -2196(%rbp)               ## 4-byte Spill
	jge	LBB0_26
## %bb.33:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	-2120(%rbp), %rdi
	addq	$8, %rbx
	movq	%rbx, -2264(%rbp)               ## 8-byte Spill
	movq	-2208(%rbp), %rax               ## 8-byte Reload
	incl	%eax
	movq	%rax, -2208(%rbp)               ## 8-byte Spill
	addq	-2320(%rbp), %r14               ## 8-byte Folded Reload
	addq	-2328(%rbp), %r13               ## 8-byte Folded Reload
	movq	-2256(%rbp), %rbx               ## 8-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-2212(%rbp), %edi               ## 4-byte Reload
	movq	-2280(%rbp), %r12               ## 8-byte Reload
	movq	-2272(%rbp), %r13               ## 8-byte Reload
	movl	-2236(%rbp), %ecx               ## 4-byte Reload
	movq	-2256(%rbp), %rbx               ## 8-byte Reload
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-2212(%rbp), %edi               ## 4-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-2208(%rbp), %rsi               ## 8-byte Reload
	cmpl	%edi, %esi
	jge	LBB0_17
## %bb.28:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	%eax, %rdx
	movl	$2048, %eax                     ## imm = 0x800
	subq	%rdx, %rax
	movslq	%ebx, %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_9 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %r14d
	jmp	LBB0_31
LBB0_14:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	testl	%r14d, %r14d
	cmovnel	%r14d, %ecx
	jmp	LBB0_6
LBB0_16:
	movq	-2208(%rbp), %rsi               ## 8-byte Reload
LBB0_17:
	xorl	%ecx, %ecx
	movl	$0, %eax
	testl	%esi, %esi
	je	LBB0_19
## %bb.18:
	movl	-2196(%rbp), %eax               ## 4-byte Reload
	cltd
	idivl	%esi
LBB0_19:
	movq	16(%rbp), %rdx
	movl	%eax, (%rdx)
	jmp	LBB0_6
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN5_CMD_RETRIEVE_PANEL_SCAN,8,3 ## @GEN5_CMD_RETRIEVE_PANEL_SCAN
	.comm	_GEN5_PANEL_SCAN_SELF_DIFFCOUNT,8,3 ## @GEN5_PANEL_SCAN_SELF_DIFFCOUNT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INT_MIN,4,2                    ## @INT_MIN
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_GEN5_RESP_DATA_STRUCTURE_OFFSET,4,2 ## @GEN5_RESP_DATA_STRUCTURE_OFFSET
	.comm	_PIP_OUTPUT_REPORT_ADDR,4,2     ## @PIP_OUTPUT_REPORT_ADDR
	.comm	_PIP_APP_CMD_REPORT_ID,4,2      ## @PIP_APP_CMD_REPORT_ID
	.comm	_cyapa_sort_tsg_pip_app_resp_data,4,2 ## @cyapa_sort_tsg_pip_app_resp_data
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_GEN5_PWC_DATA_ELEMENT_SIZE_MASK,8,3 ## @GEN5_PWC_DATA_ELEMENT_SIZE_MASK
	.no_dead_strip	_cyapa_gen5_read_panel_scan_raw_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyapa_gen5_read_panel_scan_raw_data
_cyapa_gen5_read_panel_scan_raw_data:   ; @cyapa_gen5_read_panel_scan_raw_data
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #2288
	stp	x5, x7, [sp, #96]               ; 16-byte Folded Spill
	str	x4, [sp, #88]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _GEN5_CMD_RETRIEVE_PANEL_SCAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN5_CMD_RETRIEVE_PANEL_SCAN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_21
; %bb.1:
	cbz	x6, LBB0_21
; %bb.2:
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_21
; %bb.3:
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_21
; %bb.4:
	mov	x24, x2
Lloh6:
	adrp	x8, _GEN5_PANEL_SCAN_SELF_DIFFCOUNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GEN5_PANEL_SCAN_SELF_DIFFCOUNT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x2
	b.lt	LBB0_21
; %bb.5:
	mov	x22, x3
	mov	x25, x1
	mov	x26, x0
	str	x6, [sp, #8]                    ; 8-byte Folded Spill
	sub	x20, x29, #192
Lloh9:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [sp, #88]                   ; 8-byte Folded Reload
	str	w8, [x9]
Lloh12:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [sp, #96]                   ; 8-byte Folded Reload
	str	w8, [x9]
Lloh15:
	adrp	x8, _GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	w9, #256
	sub	w9, w9, w8
	mov	w10, #259
	sub	w8, w10, w8
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w23, w8, #2
	and	w19, w8, #0xfffffffc
Lloh18:
	adrp	x8, _PIP_OUTPUT_REPORT_ADDR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PIP_OUTPUT_REPORT_ADDR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	sub	x21, x29, #192
	add	x1, x21, #24
	bl	_put_unaligned_le16
	add	x1, x21, #20
	mov	w0, #94
	bl	_put_unaligned_le16
	mov	w28, #0
	mov	w27, #0
	mov	w21, #0
Lloh21:
	adrp	x8, _PIP_APP_CMD_REPORT_ID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PIP_APP_CMD_REPORT_ID@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	stur	w8, [x29, #-176]
	str	x25, [x20, #8]
	ldr	x8, [x20]
	add	x9, x8, #12
	stp	x9, x8, [sp, #72]               ; 16-byte Folded Spill
	add	x8, x8, #8
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	add	x8, sp, #128
	add	x8, x8, #56
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	str	w22, [sp, #44]                  ; 4-byte Folded Spill
	stp	x25, x24, [sp, #24]             ; 16-byte Folded Spill
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mov	x0, x28
	ldr	x1, [sp, #72]                   ; 8-byte Folded Reload
	bl	_put_unaligned_le16
	mov	x0, x23
	ldr	x1, [sp, #64]                   ; 8-byte Folded Reload
	bl	_put_unaligned_le16
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	str	x24, [x8]
Lloh24:
	adrp	x8, _GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	add	w8, w8, w19
	str	w8, [sp, #124]
Lloh27:
	adrp	x8, _cyapa_sort_tsg_pip_app_resp_data@GOTPAGE
Lloh28:
	ldr	x8, [x8, _cyapa_sort_tsg_pip_app_resp_data@GOTPAGEOFF]
Lloh29:
	ldr	w6, [x8]
	sub	x1, x29, #192
	add	x3, sp, #128
	add	x4, sp, #124
	mov	x0, x26
	mov	w2, #96
	mov	w5, #500
	mov	w7, #1
	bl	_cyapa_i2c_pip_cmd_irq_sync
	mov	x19, x0
	cbnz	w0, LBB0_24
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #124]
Lloh30:
	adrp	x9, _GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPAGE
Lloh31:
	ldr	x9, [x9, _GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_24
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #128
	mov	x1, x25
	bl	_VALID_CMD_RESP_HEADER
	cbz	w0, LBB0_24
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #128
	bl	_PIP_CMD_COMPLETE_SUCCESS
	cbz	w0, LBB0_24
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #176]
	cmp	x8, x24
	b.ne	LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	bl	_get_unaligned_le16
	cbz	w0, LBB0_25
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x9, x0
	ldr	x0, [sp, #200]
Lloh33:
	adrp	x8, _GEN5_PWC_DATA_ELEMENT_SIZE_MASK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GEN5_PWC_DATA_ELEMENT_SIZE_MASK@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	and	x10, x8, x0
Lloh36:
	adrp	x8, _GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPAGE
Lloh37:
	ldr	x8, [x8, _GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	mul	w20, w9, w10
	str	x10, [sp, #112]                 ; 8-byte Folded Spill
	sxtw	x10, w10
	cmp	w20, #1
	b.lt	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	stp	w9, w28, [sp, #56]              ; 8-byte Folded Spill
	sxtw	x8, w8
	ldr	x9, [sp, #104]                  ; 8-byte Folded Reload
	add	x23, x9, w21, sxtw #3
	add	w21, w21, #1
	lsl	x28, x10, #3
	mov	x19, x10
	add	x22, x8, x10
	add	x9, sp, #128
	add	x26, x9, x8, lsl #3
LBB0_14:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, x26
	ldr	x2, [sp, #112]                  ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_cyapa_parse_structure_data
	mov	x25, x0
	ldr	x24, [sp, #96]                  ; 8-byte Folded Reload
	ldr	w1, [x24]
	bl	_min
	str	w0, [x24]
	ldr	x24, [sp, #88]                  ; 8-byte Folded Reload
	ldr	w1, [x24]
	mov	x0, x25
	bl	_max
	str	w0, [x24]
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	cbz	x8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x25
	mov	x1, x23
	bl	_put_unaligned_le32
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=2
	add	w27, w27, w25
Lloh39:
	adrp	x8, _GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPAGE
Lloh40:
	ldr	x8, [x8, _GEN5_RESP_DATA_STRUCTURE_OFFSET@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	add	w9, w8, w20
	cmp	x22, w9, sxtw
	mov	x10, x19
	b.ge	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x0, [sp, #200]
	add	x23, x23, #8
	add	w21, w21, #1
	add	x26, x26, x28
	add	x22, x22, x10
	b	LBB0_14
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w22, [sp, #44]                  ; 4-byte Folded Reload
	ldp	x25, x24, [sp, #24]             ; 16-byte Folded Reload
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
	ldp	w9, w28, [sp, #56]              ; 8-byte Folded Reload
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w21, w22
	b.ge	LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w28, w9, w28
	mov	w9, #2048
	sub	x8, x9, w8, sxtw
	udiv	x23, x8, x10
	ldr	x8, [sp, #112]                  ; 8-byte Folded Reload
	mul	w19, w23, w8
	b	LBB0_6
LBB0_21:
Lloh42:
	adrp	x8, _EINVAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	ldur	x8, [x29, #-96]
Lloh45:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh46:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.23:
	add	sp, sp, #2288
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
Lloh48:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	cmp	w19, #0
	csneg	w0, w19, w8, ne
	b	LBB0_22
LBB0_25:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cbz	w21, LBB0_27
; %bb.26:
	sdiv	w8, w27, w21
	b	LBB0_28
LBB0_27:
	mov	w8, #0
LBB0_28:
	mov	w0, #0
	str	w8, [x9]
	b	LBB0_22
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN5_CMD_RETRIEVE_PANEL_SCAN,8,3 ; @GEN5_CMD_RETRIEVE_PANEL_SCAN
	.comm	_GEN5_PANEL_SCAN_SELF_DIFFCOUNT,8,3 ; @GEN5_PANEL_SCAN_SELF_DIFFCOUNT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INT_MIN,4,2                    ; @INT_MIN
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_GEN5_RESP_DATA_STRUCTURE_OFFSET,4,2 ; @GEN5_RESP_DATA_STRUCTURE_OFFSET
	.comm	_PIP_OUTPUT_REPORT_ADDR,4,2     ; @PIP_OUTPUT_REPORT_ADDR
	.comm	_PIP_APP_CMD_REPORT_ID,4,2      ; @PIP_APP_CMD_REPORT_ID
	.comm	_cyapa_sort_tsg_pip_app_resp_data,4,2 ; @cyapa_sort_tsg_pip_app_resp_data
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_GEN5_PWC_DATA_ELEMENT_SIZE_MASK,8,3 ; @GEN5_PWC_DATA_ELEMENT_SIZE_MASK
	.no_dead_strip	_cyapa_gen5_read_panel_scan_raw_data
.subsections_via_symbols
