	.file	"808360.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"<%s> filename\n"
.LC1:
	.string	"wb"
	.align 8
.LC2:
	.string	"put  -> s[%d].a = %d s[%d].b = %d\n"
.LC3:
	.string	"rb"
.LC4:
	.string	"failed to open %s \n"
	.align 8
.LC5:
	.string	"get -> s_[%d].a %d s_[%d].b %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 688
	mov	DWORD PTR -676[rbp], edi
	mov	QWORD PTR -688[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -676[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -688[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L10
.L2:
	mov	rax, QWORD PTR -688[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -664[rbp], rax
	cmp	QWORD PTR -664[rbp], 0
	jne	.L4
	mov	eax, -1
	jmp	.L10
.L4:
	mov	DWORD PTR -668[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -668[rbp]
	cdqe
	mov	edx, DWORD PTR -668[rbp]
	mov	DWORD PTR -656[rbp+rax*8], edx
	mov	eax, DWORD PTR -668[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -668[rbp]
	cdqe
	mov	DWORD PTR -652[rbp+rax*8], edx
	mov	eax, DWORD PTR -668[rbp]
	cdqe
	mov	esi, DWORD PTR -652[rbp+rax*8]
	mov	eax, DWORD PTR -668[rbp]
	cdqe
	mov	edx, DWORD PTR -656[rbp+rax*8]
	mov	ecx, DWORD PTR -668[rbp]
	mov	eax, DWORD PTR -668[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -668[rbp], 1
.L5:
	mov	eax, DWORD PTR -668[rbp]
	cmp	eax, 39
	jbe	.L6
	mov	rdx, QWORD PTR -664[rbp]
	lea	rax, -656[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 320
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -664[rbp]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -664[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -688[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -664[rbp], rax
	cmp	QWORD PTR -664[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR -688[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L10
.L7:
	lea	rax, -336[rbp]
	mov	edx, 320
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR -664[rbp]
	lea	rax, -336[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 320
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -668[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -668[rbp]
	cdqe
	mov	esi, DWORD PTR -332[rbp+rax*8]
	mov	eax, DWORD PTR -668[rbp]
	cdqe
	mov	edx, DWORD PTR -336[rbp+rax*8]
	mov	ecx, DWORD PTR -668[rbp]
	mov	eax, DWORD PTR -668[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -668[rbp], 1
.L8:
	mov	eax, DWORD PTR -668[rbp]
	cmp	eax, 39
	jbe	.L9
	mov	rax, QWORD PTR -664[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"808360.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"<%s> filename\012\000"
	.align	2
.LC1:
	.ascii	"wb\000"
	.align	2
.LC2:
	.ascii	"put  -> s[%d].a = %d s[%d].b = %d\012\000"
	.align	2
.LC3:
	.ascii	"rb\000"
	.align	2
.LC4:
	.ascii	"failed to open %s \012\000"
	.align	2
.LC5:
	.ascii	"get -> s_[%d].a %d s_[%d].b %d\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 664
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #672
	str	r0, [fp, #-664]
	str	r1, [fp, #-668]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-664]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L12+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-668]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L12+8
	bl	fprintf
	mvn	r3, #0
	b	.L10
.L2:
	ldr	r3, [fp, #-668]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L12+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-652]
	ldr	r3, [fp, #-652]
	cmp	r3, #0
	bne	.L4
	mvn	r3, #0
	b	.L10
.L4:
	mov	r3, #0
	str	r3, [fp, #-656]
	b	.L5
.L6:
	ldr	r3, [fp, #-656]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-656]
	str	r2, [r3, #-644]
	ldr	r3, [fp, #-656]
	add	r2, r3, #1
	ldr	r3, [fp, #-656]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-640]
	ldr	r3, [fp, #-656]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-644]
	ldr	r3, [fp, #-656]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-640]
	str	r3, [sp]
	ldr	r3, [fp, #-656]
	ldr	r1, [fp, #-656]
	ldr	r0, .L12+16
	bl	printf
	ldr	r3, [fp, #-656]
	add	r3, r3, #1
	str	r3, [fp, #-656]
.L5:
	ldr	r3, [fp, #-656]
	cmp	r3, #39
	bls	.L6
	sub	r0, fp, #648
	ldr	r3, [fp, #-652]
	mov	r2, #1
	mov	r1, #320
	bl	fwrite
	ldr	r0, [fp, #-652]
	bl	fflush
	ldr	r0, [fp, #-652]
	bl	fclose
	ldr	r3, [fp, #-668]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L12+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-652]
	ldr	r3, [fp, #-652]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L12+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-668]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L12+24
	bl	fprintf
	mvn	r3, #0
	b	.L10
.L7:
	sub	r3, fp, #328
	mov	r2, #320
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r0, fp, #328
	ldr	r3, [fp, #-652]
	mov	r2, #1
	mov	r1, #320
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-656]
	b	.L8
.L9:
	ldr	r3, [fp, #-656]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-324]
	ldr	r3, [fp, #-656]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-320]
	str	r3, [sp]
	ldr	r3, [fp, #-656]
	ldr	r1, [fp, #-656]
	ldr	r0, .L12+28
	bl	printf
	ldr	r3, [fp, #-656]
	add	r3, r3, #1
	str	r3, [fp, #-656]
.L8:
	ldr	r3, [fp, #-656]
	cmp	r3, #39
	bls	.L9
	ldr	r0, [fp, #-652]
	bl	fclose
	mov	r3, #0
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC6
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
