	.file	"extr_rdp.c_process_demand_active.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	process_demand_active, @function
process_demand_active:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR 8[rdi]
	mov	edi, ebp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	in_uint32_le@PLT
	mov	esi, r14d
	mov	edi, ebp
	call	in_uint16_le@PLT
	mov	esi, r13d
	mov	edi, ebp
	call	in_uint16_le@PLT
	mov	esi, r14d
	mov	edi, ebp
	call	in_uint8s@PLT
	movsx	rdi, DWORD PTR 8[r12]
	call	DEBUG@PLT
	mov	rdi, r12
	mov	edx, r13d
	mov	esi, ebp
	call	rdp_process_server_caps@PLT
	mov	rdi, r12
	call	rdp_send_confirm_active@PLT
	test	eax, eax
	jne	.L2
.L41:
	mov	eax, DWORD PTR False[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L43
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	rdp_send_synchronise@PLT
	test	eax, eax
	je	.L41
	mov	esi, DWORD PTR RDP_CTL_COOPERATE[rip]
	mov	rdi, r12
	call	rdp_send_control@PLT
	test	eax, eax
	je	.L41
	mov	esi, DWORD PTR RDP_CTL_REQUEST_CONTROL[rip]
	mov	rdi, r12
	call	rdp_send_control@PLT
	test	eax, eax
	je	.L41
	lea	rbp, 4[rsp]
	mov	rdi, r12
	mov	rsi, rbp
	call	rdp_recv@PLT
	test	eax, eax
	je	.L41
	mov	rsi, rbp
	mov	rdi, r12
	call	rdp_recv@PLT
	test	eax, eax
	je	.L41
	mov	rsi, rbp
	mov	rdi, r12
	call	rdp_recv@PLT
	test	eax, eax
	je	.L41
	mov	edx, DWORD PTR RDP_INPUT_SYNCHRONIZE[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	xor	esi, esi
	mov	rdi, r12
	call	rdp_send_input@PLT
	test	eax, eax
	je	.L41
	cmp	QWORD PTR [r12], 0
	je	.L5
	mov	rdi, r12
	call	rdp_enum_bmpcache2@PLT
	test	eax, eax
	je	.L41
	mov	esi, 3
	mov	rdi, r12
	call	rdp_send_fonts@PLT
	test	eax, eax
	je	.L41
.L8:
	mov	rsi, rbp
	mov	rdi, r12
	call	rdp_recv@PLT
	test	eax, eax
	je	.L41
	mov	rdi, r12
	call	reset_order_state@PLT
	mov	eax, DWORD PTR True[rip]
	jmp	.L1
.L5:
	mov	esi, 1
	mov	rdi, r12
	call	rdp_send_fonts@PLT
	test	eax, eax
	je	.L41
	mov	esi, 2
	mov	rdi, r12
	call	rdp_send_fonts@PLT
	test	eax, eax
	jne	.L8
	jmp	.L41
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	process_demand_active, .-process_demand_active
	.comm	True,4,4
	.comm	RDP_INPUT_SYNCHRONIZE,4,4
	.comm	RDP_CTL_REQUEST_CONTROL,4,4
	.comm	RDP_CTL_COOPERATE,4,4
	.comm	False,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_rdp.c_process_demand_active.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_demand_active, %function
process_demand_active:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r1
	mov	r7, #0
	mov	r5, r0
	ldr	r3, .L44
	sub	sp, sp, #20
	ldr	r1, [r0, #4]
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	in_uint32_le
	mov	r1, r7
	mov	r0, r4
	bl	in_uint16_le
	mov	r1, r7
	mov	r0, r4
	bl	in_uint16_le
	mov	r1, r7
	mov	r0, r4
	bl	in_uint8s
	ldr	r0, [r5, #4]
	bl	DEBUG
	mov	r2, r7
	mov	r1, r4
	mov	r0, r5
	bl	rdp_process_server_caps
	mov	r0, r5
	bl	rdp_send_confirm_active
	cmp	r0, r7
	bne	.L2
.L41:
	ldr	r3, .L44+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L43
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r0, r5
	bl	rdp_send_synchronise
	cmp	r0, #0
	beq	.L41
	ldr	r3, .L44+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	rdp_send_control
	cmp	r0, #0
	beq	.L41
	ldr	r3, .L44+12
	mov	r0, r5
	ldr	r1, [r3]
	bl	rdp_send_control
	cmp	r0, #0
	beq	.L41
	mov	r0, r5
	add	r1, sp, #8
	bl	rdp_recv
	cmp	r0, #0
	beq	.L41
	mov	r0, r5
	add	r1, sp, #8
	bl	rdp_recv
	cmp	r0, #0
	beq	.L41
	mov	r0, r5
	add	r1, sp, #8
	bl	rdp_recv
	cmp	r0, #0
	beq	.L41
	mov	r3, #0
	ldr	r2, .L44+16
	str	r3, [sp, #4]
	str	r3, [sp]
	mov	r1, r3
	mov	r0, r5
	ldr	r2, [r2]
	bl	rdp_send_input
	cmp	r0, #0
	beq	.L41
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L5
	mov	r0, r5
	bl	rdp_enum_bmpcache2
	cmp	r0, #0
	beq	.L41
	mov	r1, #3
	mov	r0, r5
	bl	rdp_send_fonts
	cmp	r0, #0
	beq	.L41
.L8:
	mov	r0, r5
	add	r1, sp, #8
	bl	rdp_recv
	cmp	r0, #0
	beq	.L41
	mov	r0, r5
	bl	reset_order_state
	ldr	r3, .L44+20
	ldr	r0, [r3]
	b	.L1
.L5:
	mov	r1, #1
	mov	r0, r5
	bl	rdp_send_fonts
	cmp	r0, #0
	beq	.L41
	mov	r1, #2
	mov	r0, r5
	bl	rdp_send_fonts
	cmp	r0, #0
	bne	.L8
	b	.L41
.L43:
	bl	__stack_chk_fail
.L45:
	.align	2
.L44:
	.word	.LC0
	.word	False
	.word	RDP_CTL_COOPERATE
	.word	RDP_CTL_REQUEST_CONTROL
	.word	RDP_INPUT_SYNCHRONIZE
	.word	True
	.size	process_demand_active, .-process_demand_active
	.comm	True,4,4
	.comm	RDP_INPUT_SYNCHRONIZE,4,4
	.comm	RDP_CTL_REQUEST_CONTROL,4,4
	.comm	RDP_CTL_COOPERATE,4,4
	.comm	False,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
