	.file	"extr_zcrypt_cex2a.c_zcrypt_cex2a_queue_probe.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	zcrypt_cex2a_queue_probe, @function
zcrypt_cex2a_queue_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	add	rdi, 4
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	to_ap_queue@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	jne	.L3
	mov	edi, DWORD PTR CEX2A_MAX_RESPONSE_SIZE[rip]
	call	zcrypt_queue_alloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L8
.L4:
	mov	esi, DWORD PTR MSGTYPE50_VARIANT_DEFAULT[rip]
	mov	edi, DWORD PTR MSGTYPE50_NAME[rip]
	call	zcrypt_msgtype@PLT
	mov	QWORD PTR 16[rbp], rbx
	lea	rdi, 8[rbp]
	xor	esi, esi
	mov	DWORD PTR 24[rbp], eax
	mov	DWORD PTR 0[rbp], 1
	call	atomic_set@PLT
	lea	rsi, 4[rbp]
	mov	rdi, rbx
	call	ap_queue_init_reply@PLT
	mov	eax, DWORD PTR CEX2A_CLEANUP_TIME[rip]
	mov	QWORD PTR [rbx], rbp
	mov	rdi, rbp
	mov	DWORD PTR 8[rbx], eax
	call	zcrypt_queue_register@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	QWORD PTR [rbx], 0
	mov	rdi, rbp
	call	zcrypt_queue_free@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR CEX3A_MAX_RESPONSE_SIZE[rip]
	call	zcrypt_queue_alloc@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L4
.L8:
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	zcrypt_cex2a_queue_probe, .-zcrypt_cex2a_queue_probe
	.comm	MSGTYPE50_VARIANT_DEFAULT,4,4
	.comm	MSGTYPE50_NAME,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	CEX3A_MAX_RESPONSE_SIZE,4,4
	.comm	CEX2A_MAX_RESPONSE_SIZE,4,4
	.comm	CEX2A_CLEANUP_TIME,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_zcrypt_cex2a.c_zcrypt_cex2a_queue_probe.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zcrypt_cex2a_queue_probe, %function
zcrypt_cex2a_queue_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	add	r0, r0, #4
	bl	to_ap_queue
	ldr	r3, [r4]
	mov	r6, r0
	cmp	r3, #128
	beq	.L2
	cmp	r3, #129
	bne	.L3
	ldr	r3, .L10
	ldr	r0, [r3]
	bl	zcrypt_queue_alloc
	subs	r4, r0, #0
	beq	.L8
.L4:
	ldr	r2, .L10+4
	ldr	r3, .L10+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	zcrypt_msgtype
	mov	r3, r4
	mov	r2, #1
	str	r0, [r4, #16]
	str	r6, [r4, #12]
	str	r2, [r3], #8
	mov	r0, r3
	mov	r1, #0
	bl	atomic_set
	add	r1, r4, #4
	mov	r0, r6
	bl	ap_queue_init_reply
	ldr	r3, .L10+12
	mov	r0, r4
	ldr	r3, [r3]
	str	r4, [r6]
	str	r3, [r6, #4]
	bl	zcrypt_queue_register
	subs	r5, r0, #0
	beq	.L1
	mov	r3, #0
	mov	r0, r4
	str	r3, [r6]
	bl	zcrypt_queue_free
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, .L10+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L10+20
	ldr	r0, [r3]
	bl	zcrypt_queue_alloc
	subs	r4, r0, #0
	bne	.L4
.L8:
	ldr	r3, .L10+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	CEX2A_MAX_RESPONSE_SIZE
	.word	MSGTYPE50_VARIANT_DEFAULT
	.word	MSGTYPE50_NAME
	.word	CEX2A_CLEANUP_TIME
	.word	ENODEV
	.word	CEX3A_MAX_RESPONSE_SIZE
	.word	ENOMEM
	.size	zcrypt_cex2a_queue_probe, .-zcrypt_cex2a_queue_probe
	.comm	MSGTYPE50_VARIANT_DEFAULT,4,4
	.comm	MSGTYPE50_NAME,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	CEX3A_MAX_RESPONSE_SIZE,4,4
	.comm	CEX2A_MAX_RESPONSE_SIZE,4,4
	.comm	CEX2A_CLEANUP_TIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
