	.file	"extr_xcbgrab.c_xcbgrab_read_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xcbgrab_read_packet, @function
xcbgrab_read_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR [rdi]
	call	wait_frame@PLT
	cmp	QWORD PTR 24[rbx], 0
	jne	.L2
	cmp	QWORD PTR [rbx], 0
	je	.L6
.L2:
	mov	rax, QWORD PTR 40[rbx]
	mov	edi, DWORD PTR 32[rbx]
	mov	esi, DWORD PTR [rax]
	call	xcb_query_pointer@PLT
	mov	edi, DWORD PTR 32[rbx]
	mov	r13d, eax
	mov	rax, QWORD PTR 40[rbx]
	mov	esi, DWORD PTR [rax]
	call	xcb_get_geometry@PLT
	mov	edi, DWORD PTR 32[rbx]
	xor	edx, edx
	mov	esi, r13d
	mov	r14d, eax
	call	xcb_query_pointer_reply@PLT
	mov	edi, DWORD PTR 32[rbx]
	xor	edx, edx
	mov	esi, r14d
	mov	r13, rax
	call	xcb_get_geometry_reply@PLT
	cmp	QWORD PTR 24[rbx], 0
	mov	r14, rax
	je	.L3
	cmp	QWORD PTR 0[r13], 0
	jne	.L10
.L3:
	cmp	QWORD PTR 16[rbx], 0
	jne	.L11
.L4:
	xor	r15d, r15d
	cmp	QWORD PTR 8[rbx], 0
	je	.L12
.L5:
	mov	rdi, r13
	call	free@PLT
	mov	rdi, r14
	call	free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	r14d, r14d
	xor	r13d, r13d
	cmp	QWORD PTR 16[rbx], 0
	je	.L4
.L11:
	mov	rdi, rbp
	xor	r15d, r15d
	call	xcbgrab_update_region@PLT
	cmp	QWORD PTR 8[rbx], 0
	jne	.L5
.L12:
	mov	rsi, r12
	mov	rdi, rbp
	call	xcbgrab_frame@PLT
	mov	r15d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, rax
	mov	rsi, r13
	mov	rdi, rbp
	call	xcbgrab_reposition@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	xcbgrab_read_packet, .-xcbgrab_read_packet
	.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_xcbgrab.c_xcbgrab_read_packet.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xcbgrab_read_packet, %function
xcbgrab_read_packet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0]
	mov	r6, r0
	mov	r8, r1
	bl	wait_frame
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L2
	ldr	r5, [r4]
	cmp	r5, #0
	moveq	r7, r5
	bne	.L2
.L3:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L19
.L4:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	movne	r4, #0
	beq	.L20
.L5:
	mov	r0, r7
	bl	free
	mov	r0, r5
	bl	free
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, [r4, #20]
	ldr	r0, [r4, #16]
	ldr	r1, [r3]
	bl	xcb_query_pointer
	ldr	r3, [r4, #20]
	mov	r5, r0
	ldr	r1, [r3]
	ldr	r0, [r4, #16]
	bl	xcb_get_geometry
	mov	r1, r5
	mov	r2, #0
	mov	r5, r0
	ldr	r0, [r4, #16]
	bl	xcb_query_pointer_reply
	mov	r1, r5
	mov	r7, r0
	mov	r2, #0
	ldr	r0, [r4, #16]
	bl	xcb_get_geometry_reply
	ldr	r3, [r4, #12]
	mov	r5, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L3
	mov	r2, r0
	mov	r1, r7
	mov	r0, r6
	bl	xcbgrab_reposition
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L4
.L19:
	mov	r0, r6
	bl	xcbgrab_update_region
	ldr	r3, [r4, #4]
	cmp	r3, #0
	movne	r4, #0
	bne	.L5
.L20:
	mov	r1, r8
	mov	r0, r6
	bl	xcbgrab_frame
	mov	r4, r0
	b	.L5
	.size	xcbgrab_read_packet, .-xcbgrab_read_packet
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
