	.file	"extr_card_utils.c_genwqe_read_app_id.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	genwqe_read_app_id
	.type	genwqe_read_app_id, @function
genwqe_read_app_id:
.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
	mov	r13, rsi
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r14d, DWORD PTR [rdi]
	mov	rdi, r13
	call	memset@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, ebx
	mov	edi, r14d
	neg	eax
	lea	ecx, 24[0+rax*8]
	sar	edi, cl
	mov	r15d, edi
	cmp	dil, 32
	je	.L3
	movsx	edi, dil
	call	isprint@PLT
	test	rax, rax
	mov	eax, 88
	cmove	r15d, eax
	movsx	rax, r12d
	add	r12d, 1
	mov	BYTE PTR 0[r13+rax], r15b
.L3:
	add	ebx, 1
.L2:
	mov	esi, 4
	mov	edi, ebp
	call	min@PLT
	cmp	eax, ebx
	jg	.L5
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	genwqe_read_app_id, .-genwqe_read_app_id
	.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_card_utils.c_genwqe_read_app_id.c"
	.text
	.align	2
	.global	genwqe_read_app_id
	.syntax unified
	.arm
	.fpu softvfp
	.type	genwqe_read_app_id, %function
genwqe_read_app_id:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, #0
	mov	r3, r0
	mov	r8, r1
	mov	r0, r1
	mov	r1, r9
	mov	r6, r2
	ldr	r7, [r3]
	mov	r5, r9
	bl	memset
	b	.L2
.L5:
	cmp	r4, #32
	beq	.L3
	mov	r0, r4
	bl	isprint
	cmp	r0, #0
	moveq	r4, #88
	strb	r4, [r8, r5]
	add	r5, r5, #1
.L3:
	add	r9, r9, #1
.L2:
	mov	r1, #4
	mov	r0, r6
	bl	min
	rsb	r4, r9, r9, lsl #29
	lsl	r4, r4, #3
	add	r4, r4, #24
	asr	r4, r7, r4
	cmp	r0, r9
	and	r4, r4, #255
	bgt	.L5
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	genwqe_read_app_id, .-genwqe_read_app_id
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
