	.file	"412778.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"O_RDONLY\t\t"
.LC1:
	.string	"O_WRONLY\t\t"
.LC2:
	.string	"O_RDWR\t\t\t"
.LC3:
	.string	"O_APPEND\t\t"
.LC4:
	.string	"O_TRUNC\t\t\t"
.LC5:
	.string	"O_CREAT\t\t\t"
.LC6:
	.string	"O_WRONLY|O_APPEND|O_CREAT"
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	esi, 0
	lea	rdi, .LC0[rip]
	call	display_flags
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	display_flags
	mov	esi, 2
	lea	rdi, .LC2[rip]
	call	display_flags
	mov	edi, 10
	call	putchar@PLT
	mov	esi, 1024
	lea	rdi, .LC3[rip]
	call	display_flags
	mov	esi, 512
	lea	rdi, .LC4[rip]
	call	display_flags
	mov	esi, 64
	lea	rdi, .LC5[rip]
	call	display_flags
	mov	edi, 10
	call	putchar@PLT
	mov	esi, 1089
	lea	rdi, .LC6[rip]
	call	display_flags
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC7:
	.string	"%s\t: %d\t:"
	.text
	.globl	display_flags
	.type	display_flags, @function
display_flags:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	binary_print
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	display_flags, .-display_flags
	.globl	binary_print
	.type	binary_print, @function
binary_print:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -20[rbp], -16777216
	mov	DWORD PTR -16[rbp], 16777216
	mov	DWORD PTR -8[rbp], 0
	jmp	.L5
.L10:
	mov	eax, DWORD PTR -36[rbp]
	and	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	div	DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	edi, 32
	call	putchar@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 128
	test	eax, eax
	je	.L7
	mov	edi, 49
	call	putchar@PLT
	jmp	.L8
.L7:
	mov	edi, 48
	call	putchar@PLT
.L8:
	sal	DWORD PTR -12[rbp]
	add	DWORD PTR -4[rbp], 1
.L6:
	cmp	DWORD PTR -4[rbp], 7
	jbe	.L9
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 8
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	shr	eax, 8
	mov	DWORD PTR -16[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L5:
	cmp	DWORD PTR -8[rbp], 3
	jbe	.L10
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	binary_print, .-binary_print
	.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	"412778.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"O_RDONLY\011\011\000"
	.align	2
.LC1:
	.ascii	"O_WRONLY\011\011\000"
	.align	2
.LC2:
	.ascii	"O_RDWR\011\011\011\000"
	.align	2
.LC3:
	.ascii	"O_APPEND\011\011\000"
	.align	2
.LC4:
	.ascii	"O_TRUNC\011\011\011\000"
	.align	2
.LC5:
	.ascii	"O_CREAT\011\011\011\000"
	.align	2
.LC6:
	.ascii	"O_WRONLY|O_APPEND|O_CREAT\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r1, #0
	ldr	r0, .L3
	bl	display_flags
	mov	r1, #1
	ldr	r0, .L3+4
	bl	display_flags
	mov	r1, #2
	ldr	r0, .L3+8
	bl	display_flags
	mov	r0, #10
	bl	putchar
	mov	r1, #1024
	ldr	r0, .L3+12
	bl	display_flags
	mov	r1, #512
	ldr	r0, .L3+16
	bl	display_flags
	mov	r1, #64
	ldr	r0, .L3+20
	bl	display_flags
	mov	r0, #10
	bl	putchar
	ldr	r1, .L3+24
	ldr	r0, .L3+28
	bl	display_flags
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1089
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%s\011: %d\011:\000"
	.text
	.align	2
	.global	display_flags
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_flags, %function
display_flags:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L6
	bl	printf
	ldr	r0, [fp, #-12]
	bl	binary_print
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC7
	.size	display_flags, .-display_flags
	.global	__aeabi_uidiv
	.align	2
	.global	binary_print
	.syntax unified
	.arm
	.fpu softvfp
	.type	binary_print, %function
binary_print:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	mov	r3, #-16777216
	str	r3, [fp, #-24]
	mov	r3, #16777216
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L9
.L14:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	and	r3, r3, r2
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r0, #32
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L10
.L13:
	ldr	r3, [fp, #-16]
	and	r3, r3, #128
	cmp	r3, #0
	beq	.L11
	mov	r0, #49
	bl	putchar
	b	.L12
.L11:
	mov	r0, #48
	bl	putchar
.L12:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	bls	.L13
	ldr	r3, [fp, #-24]
	lsr	r3, r3, #8
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #8
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bls	.L14
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	binary_print, .-binary_print
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
