	.file	"623849.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\350\257\267\350\276\223\345\205\245\351\234\200\350\246\201\345\210\233\345\273\272\347\232\204\346\226\207\344\273\266"
.LC1:
	.string	"open fail:"
	.align 8
.LC2:
	.string	"\345\275\223\345\211\215\351\234\200\350\246\201\345\210\233\345\273\272\347\232\204\346\226\207\344\273\266\345\267\262\347\273\217\345\255\230\345\234\250\344\272\206\346\230\257\345\220\246\350\246\206\347\233\226"
.LC3:
	.string	"open OK"
	.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
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 2
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L2:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 511
	mov	esi, 194
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	jne	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L4:
	mov	eax, -1
	jmp	.L5
.L3:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 0
.L5:
	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	"623849.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\350\257\267\350\276\223\345\205\245\351\234\200\350"
	.ascii	"\246\201\345\210\233\345\273\272\347\232\204\346\226"
	.ascii	"\207\344\273\266\000"
	.align	2
.LC1:
	.ascii	"open fail:\000"
	.align	2
.LC2:
	.ascii	"\345\275\223\345\211\215\351\234\200\350\246\201\345"
	.ascii	"\210\233\345\273\272\347\232\204\346\226\207\344\273"
	.ascii	"\266\345\267\262\347\273\217\345\255\230\345\234\250"
	.ascii	"\344\272\206\346\230\257\345\220\246\350\246\206\347"
	.ascii	"\233\226\000"
	.align	2
.LC3:
	.ascii	"open OK\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L6
	bl	puts
.L2:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, .L6+4
	mov	r1, #194
	mov	r0, r3
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L6+8
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	bne	.L4
	ldr	r0, .L6+12
	bl	puts
.L4:
	mvn	r3, #0
	b	.L5
.L3:
	ldr	r0, .L6+16
	bl	puts
	mov	r3, #0
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	511
	.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
