	.file	"242383.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rb"
.LC1:
	.string	"./flag.txt"
.LC2:
	.string	"codepwnda{"
.LC3:
	.string	"}"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movabs	rax, -303675377451623259
	mov	QWORD PTR -38[rbp], rax
	mov	DWORD PTR -30[rbp], 765296621
	mov	WORD PTR -26[rbp], 253
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -52[rbp], 0
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rbx, eax
	lea	rax, -38[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rcx, rax
	mov	rax, rbx
	mov	edx, 0
	div	rcx
	mov	rcx, rdx
	mov	rax, rcx
	movzx	eax, BYTE PTR -38[rbp+rax]
	xor	al, BYTE PTR -53[rbp]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -52[rbp], 1
.L2:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -53[rbp], al
	cmp	BYTE PTR -53[rbp], -1
	jne	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"242383.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"./flag.txt\000"
	.align	2
.LC3:
	.ascii	"codepwnda{\000"
	.global	__aeabi_uidivmod
	.align	2
.LC0:
	.ascii	"\245\234\366g\332 \311\373\355\177\235-\375\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L6+4
	sub	ip, fp, #32
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	ldr	r1, .L6+8
	ldr	r0, .L6+12
	bl	fopen
	str	r0, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r0, .L6+16
	bl	printf
	b	.L2
.L5:
	ldr	r4, [fp, #-40]
	sub	r3, fp, #32
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_uidivmod
	mov	r3, r1
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r2, [r3, #-20]	@ zero_extendqisi2
	ldrb	r3, [fp, #-41]
	eor	r3, r3, r2
	and	r3, r3, #255
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L2:
	ldr	r0, [fp, #-36]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-41]
	b	.L5
.L7:
	.align	2
.L6:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
