	.file	"extr_shimdbg.c_HandleDumpAttributes.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error: no image name specified\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Dumping attributes for %s\n"
.LC2:
	.string	"<%ls>0x%lx</%ls>\n"
.LC3:
	.string	"<%ls>%ls</%ls>\n"
.LC4:
	.string	"<%ls>0x%I64x</%ls>\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"<!-- Unknown tag type: 0x%x (from 0x%x)\n"
	.section	.rodata.str1.1
.LC6:
	.string	"Done\n"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"Unable to get attributes from %s\n"
	.text
	.p2align 4
	.globl	HandleDumpAttributes
	.type	HandleDumpAttributes, @function
HandleDumpAttributes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, 1
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	r14d, DWORD PTR [rdx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	InitApphelp@PLT
	test	eax, eax
	jne	.L22
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 72
	.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
.L22:
	.cfi_restore_state
	movsx	rdx, r14d
	sal	rdx, 3
	lea	rcx, 0[rbp+rdx]
	mov	QWORD PTR 24[rsp], rdx
	mov	rdi, QWORD PTR [rcx]
	mov	QWORD PTR 16[rsp], rcx
	call	strlen@PLT
	mov	rdi, r12
	mov	DWORD PTR 12[rsp], eax
	call	strlen@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	rdx, QWORD PTR 24[rsp]
	add	eax, 1
	cmp	DWORD PTR 12[rsp], eax
	jg	.L24
	add	r14d, 1
	cmp	r14d, r13d
	jge	.L25
	mov	rbp, QWORD PTR 8[rbp+rdx]
	add	DWORD PTR [rbx], 1
.L4:
	lea	r12, 36[rsp]
	mov	rsi, rbp
	mov	rdi, r12
	call	RtlCreateUnicodeStringFromAsciiz@PLT
	mov	edi, DWORD PTR 36[rsp]
	lea	rsi, 40[rsp]
	lea	rdx, 48[rsp]
	call	pSdbGetFileAttributes@PLT
	mov	rsi, rbp
	test	rax, rax
	je	.L6
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	xprintf@PLT
	cmp	QWORD PTR 48[rsp], 0
	je	.L7
	xor	ebx, ebx
	xor	ebp, ebp
	lea	r13, .LC4[rip]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L8:
	add	rbp, 1
	add	rbx, 24
	cmp	QWORD PTR 48[rsp], rbp
	jbe	.L7
.L13:
	mov	rax, QWORD PTR 40[rsp]
	mov	rcx, QWORD PTR ATTRIBUTE_AVAILABLE[rip]
	add	rax, rbx
	cmp	QWORD PTR [rax], rcx
	jne	.L8
	mov	edi, DWORD PTR 8[rax]
	call	pSdbTagToString@PLT
	mov	r8d, DWORD PTR TAG_TYPE_MASK[rip]
	mov	esi, eax
	mov	rax, QWORD PTR 40[rsp]
	add	rax, rbx
	mov	edx, DWORD PTR 8[rax]
	and	r8d, edx
	cmp	r8d, 129
	je	.L9
	cmp	r8d, 130
	je	.L10
	cmp	r8d, 128
	je	.L26
	mov	esi, r8d
	lea	rdi, .LC5[rip]
	xor	eax, eax
	add	rbp, 1
	call	xprintf@PLT
	add	rbx, 24
	cmp	QWORD PTR 48[rsp], rbp
	ja	.L13
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	xprintf@PLT
.L14:
	mov	rdi, r12
	xor	r15d, r15d
	call	RtlFreeUnicodeString@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	xprintf@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, r12
	mov	rbp, QWORD PTR [rcx]
	call	strlen@PLT
	cdqe
	add	rbp, rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edx, DWORD PTR 16[rax]
	mov	ecx, esi
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	xprintf@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, DWORD PTR 20[rax]
	mov	ecx, esi
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	xprintf@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, DWORD PTR 12[rax]
	mov	ecx, esi
	mov	rdi, r13
	xor	eax, eax
	call	xprintf@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	xprintf@PLT
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	HandleDumpAttributes, .-HandleDumpAttributes
	.comm	TAG_TYPE_MASK,4,4
	.comm	ATTRIBUTE_AVAILABLE,8,8
	.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_shimdbg.c_HandleDumpAttributes.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error: no image name specified\012\000"
	.align	2
.LC1:
	.ascii	"Dumping attributes for %s\012\000"
	.align	2
.LC2:
	.ascii	"<%ls>0x%lx</%ls>\012\000"
	.align	2
.LC3:
	.ascii	"<%ls>%ls</%ls>\012\000"
	.align	2
.LC4:
	.ascii	"<%ls>0x%I64x</%ls>\012\000"
	.align	2
.LC5:
	.ascii	"<!-- Unknown tag type: 0x%x (from 0x%x)\012\000"
	.align	2
.LC6:
	.ascii	"Done\012\000"
	.align	2
.LC7:
	.ascii	"Unable to get attributes from %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	HandleDumpAttributes
	.syntax unified
	.arm
	.fpu softvfp
	.type	HandleDumpAttributes, %function
HandleDumpAttributes:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r3
	ldr	r3, .L27
	sub	sp, sp, #20
	mov	r4, r2
	mov	r8, r0
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r9, [r2]
	bl	InitApphelp
	cmp	r0, #0
	moveq	r0, #1
	beq	.L1
	ldr	r7, [r5, r9, lsl #2]
	lsl	r10, r9, #2
	mov	r0, r7
	bl	strlen
	mov	r3, r0
	mov	r0, r6
	mov	r6, r3
	bl	strlen
	add	r3, r0, #1
	cmp	r6, r3
	addgt	r7, r7, r0
	bgt	.L4
	add	r9, r9, #1
	cmp	r9, r8
	bge	.L24
	ldr	r3, [r4]
	add	r5, r5, r10
	add	r3, r3, #1
	ldr	r7, [r5, #4]
	str	r3, [r4]
.L4:
	mov	r1, r7
	mov	r0, sp
	bl	RtlCreateUnicodeStringFromAsciiz
	add	r1, sp, #4
	ldr	r0, [sp]
	add	r2, sp, #8
	bl	pSdbGetFileAttributes
	cmp	r0, #0
	mov	r1, r7
	beq	.L6
	ldr	r0, .L27+4
	bl	xprintf
	ldr	r0, [sp, #8]
	cmp	r0, #0
	beq	.L7
	mov	r4, #0
	ldr	r6, .L27+8
	mov	r5, r4
	ldr	r7, .L27+12
	ldr	fp, .L27+16
	ldr	r10, .L27+20
	ldr	r9, .L27+24
	ldr	r8, .L27+28
	b	.L13
.L8:
	add	r5, r5, #1
	cmp	r0, r5
	add	r4, r4, #20
	bls	.L7
.L13:
	ldr	r3, [sp, #4]
	ldr	r2, [r6]
	ldr	r1, [r3, r4]
	add	r3, r3, r4
	cmp	r1, r2
	bne	.L8
	ldr	r0, [r3, #4]
	bl	pSdbTagToString
	ldr	ip, [sp, #4]
	ldr	r1, [r7]
	add	ip, ip, r4
	ldr	r2, [ip, #4]
	mov	r3, r0
	and	r1, r1, r2
	cmp	r1, #129
	beq	.L9
	cmp	r1, #130
	beq	.L10
	cmp	r1, #128
	beq	.L25
	mov	r0, r9
	bl	xprintf
	ldr	r0, [sp, #8]
	add	r5, r5, #1
	cmp	r0, r5
	add	r4, r4, #20
	bhi	.L13
.L7:
	ldr	r0, .L27+32
	bl	xprintf
	mov	r0, sp
	bl	RtlFreeUnicodeString
	mov	r0, #0
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r0, .L27+36
	bl	xprintf
	mov	r0, sp
	bl	RtlFreeUnicodeString
	mov	r0, #0
	b	.L1
.L25:
	mov	r1, r0
	ldr	r2, [ip, #12]
	mov	r0, r8
	bl	xprintf
	ldr	r0, [sp, #8]
	b	.L8
.L10:
	mov	r1, r0
	ldr	r2, [ip, #16]
	mov	r0, r10
	bl	xprintf
	ldr	r0, [sp, #8]
	b	.L8
.L9:
	mov	r1, r0
	ldr	r2, [ip, #8]
	mov	r0, fp
	bl	xprintf
	ldr	r0, [sp, #8]
	b	.L8
.L24:
	ldr	r0, .L27+40
	bl	xprintf
	mov	r0, #1
	b	.L1
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC8
	.word	.LC1
	.word	ATTRIBUTE_AVAILABLE
	.word	TAG_TYPE_MASK
	.word	.LC4
	.word	.LC2
	.word	.LC5
	.word	.LC3
	.word	.LC6
	.word	.LC7
	.word	.LC0
	.size	HandleDumpAttributes, .-HandleDumpAttributes
	.comm	TAG_TYPE_MASK,4,4
	.comm	ATTRIBUTE_AVAILABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
