	.file	"extr_cyapa_gen5.c_cyapa_gen5_execute_panel_scan.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cyapa_gen5_execute_panel_scan, @function
cyapa_gen5_execute_panel_scan:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, 28
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 96
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	lea	rbp, 48[rsp]
	lea	r13, 16[rsp]
	mov	rdi, rbp
	call	memset@PLT
	mov	edi, DWORD PTR PIP_OUTPUT_REPORT_ADDR[rip]
	lea	rsi, 60[rsp]
	call	put_unaligned_le16@PLT
	lea	rsi, 56[rsp]
	mov	edi, 26
	call	put_unaligned_le16@PLT
	mov	rcx, r13
	mov	edx, 28
	mov	rdi, r12
	mov	eax, DWORD PTR PIP_APP_CMD_REPORT_ID[rip]
	mov	DWORD PTR 12[rsp], 24
	mov	r9d, 500
	mov	rsi, rbp
	mov	DWORD PTR 52[rsp], eax
	mov	eax, DWORD PTR GEN5_CMD_EXECUTE_PANEL_SCAN[rip]
	mov	DWORD PTR 48[rsp], eax
	mov	eax, DWORD PTR cyapa_sort_tsg_pip_app_resp_data[rip]
	push	1
	.cfi_def_cfa_offset 136
	push	rax
	.cfi_def_cfa_offset 144
	lea	r8, 28[rsp]
	call	cyapa_i2c_pip_cmd_irq_sync@PLT
	pop	rdx
	.cfi_def_cfa_offset 136
	pop	rcx
	.cfi_def_cfa_offset 128
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	cmp	DWORD PTR 12[rsp], 24
	je	.L13
.L3:
	mov	r12d, DWORD PTR EAGAIN[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 96
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	esi, DWORD PTR GEN5_CMD_EXECUTE_PANEL_SCAN[rip]
	mov	rdi, r13
	call	VALID_CMD_RESP_HEADER@PLT
	test	eax, eax
	je	.L3
	mov	rdi, r13
	call	PIP_CMD_COMPLETE_SUCCESS@PLT
	test	eax, eax
	jne	.L1
	jmp	.L3
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cyapa_gen5_execute_panel_scan, .-cyapa_gen5_execute_panel_scan
	.comm	cyapa_sort_tsg_pip_app_resp_data,4,4
	.comm	PIP_OUTPUT_REPORT_ADDR,4,4
	.comm	PIP_APP_CMD_REPORT_ID,4,4
	.comm	GEN5_CMD_EXECUTE_PANEL_SCAN,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cyapa_gen5.c_cyapa_gen5_execute_panel_scan.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cyapa_gen5_execute_panel_scan, %function
cyapa_gen5_execute_panel_scan:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	ldr	r2, .L15
	sub	sp, sp, #80
	mov	r4, r0
	ldr	r0, [r2]
	ldr	r2, .L15+4
	add	r1, sp, #60
	ldr	r2, [r2]
	str	r2, [sp, #76]
	mov	r2,#0
	str	r3, [sp, #48]
	str	r3, [sp, #52]
	str	r3, [sp, #56]
	str	r3, [sp, #60]
	str	r3, [sp, #64]
	str	r3, [sp, #68]
	str	r3, [sp, #72]
	bl	put_unaligned_le16
	add	r1, sp, #56
	mov	r0, #26
	bl	put_unaligned_le16
	mov	r2, #1
	mov	ip, #24
	mov	lr, #500
	ldr	r3, .L15+8
	ldr	r1, .L15+12
	ldr	r5, .L15+16
	ldr	r3, [r3]
	ldr	r6, [r1]
	str	r2, [sp, #12]
	ldr	r2, [r5]
	str	r3, [sp, #52]
	add	r3, sp, #20
	mov	r0, r4
	str	r3, [sp]
	str	r2, [sp, #48]
	add	r1, sp, #48
	mov	r2, #28
	str	r6, [sp, #8]
	str	lr, [sp, #4]
	add	r3, sp, ip
	str	ip, [sp, #20]
	bl	cyapa_i2c_pip_cmd_irq_sync
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, [sp, #20]
	cmp	r3, #24
	beq	.L13
.L3:
	ldr	r3, .L15+20
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #80
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r1, [r5]
	add	r0, sp, #24
	bl	VALID_CMD_RESP_HEADER
	cmp	r0, #0
	beq	.L3
	add	r0, sp, #24
	bl	PIP_CMD_COMPLETE_SUCCESS
	cmp	r0, #0
	bne	.L1
	b	.L3
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	PIP_OUTPUT_REPORT_ADDR
	.word	.LC0
	.word	PIP_APP_CMD_REPORT_ID
	.word	cyapa_sort_tsg_pip_app_resp_data
	.word	GEN5_CMD_EXECUTE_PANEL_SCAN
	.word	EAGAIN
	.size	cyapa_gen5_execute_panel_scan, .-cyapa_gen5_execute_panel_scan
	.comm	cyapa_sort_tsg_pip_app_resp_data,4,4
	.comm	PIP_OUTPUT_REPORT_ADDR,4,4
	.comm	PIP_APP_CMD_REPORT_ID,4,4
	.comm	GEN5_CMD_EXECUTE_PANEL_SCAN,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
