	.file	"124765.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"mknod"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 4
	jg	.L2
	mov	eax, 0
	call	badcomm
.L2:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 98
	je	.L3
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 99
	je	.L3
	mov	eax, 0
	call	badcomm
.L3:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 99
	jne	.L4
	cmp	DWORD PTR -36[rbp], 5
	je	.L4
	mov	eax, 0
	call	badchar
.L4:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 98
	jne	.L5
	cmp	DWORD PTR -36[rbp], 6
	je	.L5
	mov	eax, 0
	call	badblock
.L5:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 98
	jne	.L6
	mov	eax, 25014
	jmp	.L7
.L6:
	mov	eax, 8630
.L7:
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	atoi@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 98
	jne	.L8
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	atoi@PLT
	jmp	.L9
.L8:
	mov	eax, 0
.L9:
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	js	.L10
	cmp	DWORD PTR -12[rbp], 0
	jns	.L11
.L10:
	mov	eax, 0
	call	badcomm
.L11:
	mov	eax, DWORD PTR -16[rbp]
	sal	eax, 8
	or	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR -8[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, DWORD PTR -20[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	mknod@PLT
	test	eax, eax
	jns	.L12
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	perror@PLT
.L12:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.string	"Usage: mknod name b/c major minor [size_in_blocks]\n"
	.text
	.globl	badcomm
	.type	badcomm, @function
badcomm:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	std_err@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.size	badcomm, .-badcomm
	.section	.rodata
	.align 8
.LC2:
	.string	"Usage: mknod name c major minor\n"
	.text
	.globl	badchar
	.type	badchar, @function
badchar:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	std_err@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE2:
	.size	badchar, .-badchar
	.section	.rodata
	.align 8
.LC3:
	.string	"Usage: mknod name b major minor size_in_blocks\n"
	.text
	.globl	badblock
	.type	badblock, @function
badblock:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	std_err@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE3:
	.size	badblock, .-badblock
	.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	"124765.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"mknod\000"
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	bgt	.L2
	bl	badcomm
.L2:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	beq	.L3
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #99
	beq	.L3
	bl	badcomm
.L3:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L4
	ldr	r3, [fp, #-32]
	cmp	r3, #5
	beq	.L4
	bl	badchar
.L4:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L5
	ldr	r3, [fp, #-32]
	cmp	r3, #6
	beq	.L5
	bl	badblock
.L5:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L6
	ldr	r3, .L13
	b	.L7
.L6:
	ldr	r3, .L13+4
.L7:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L8
	ldr	r3, [fp, #-36]
	add	r3, r3, #20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L9
.L8:
	mov	r3, #0
.L9:
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L10
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L11
.L10:
	bl	badcomm
.L11:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #8
	ldr	r2, [fp, #-16]
	orr	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-24]
	bl	mknod
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L13+8
	bl	perror
.L12:
	mov	r0, #0
	bl	exit
.L14:
	.align	2
.L13:
	.word	25014
	.word	8630
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Usage: mknod name b/c major minor [size_in_blocks]\012"
	.ascii	"\000"
	.text
	.align	2
	.global	badcomm
	.syntax unified
	.arm
	.fpu softvfp
	.type	badcomm, %function
badcomm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L16
	bl	std_err
	mov	r0, #1
	bl	exit
.L17:
	.align	2
.L16:
	.word	.LC1
	.size	badcomm, .-badcomm
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Usage: mknod name c major minor\012\000"
	.text
	.align	2
	.global	badchar
	.syntax unified
	.arm
	.fpu softvfp
	.type	badchar, %function
badchar:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L19
	bl	std_err
	mov	r0, #1
	bl	exit
.L20:
	.align	2
.L19:
	.word	.LC2
	.size	badchar, .-badchar
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Usage: mknod name b major minor size_in_blocks\012\000"
	.text
	.align	2
	.global	badblock
	.syntax unified
	.arm
	.fpu softvfp
	.type	badblock, %function
badblock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L22
	bl	std_err
	mov	r0, #1
	bl	exit
.L23:
	.align	2
.L22:
	.word	.LC3
	.size	badblock, .-badblock
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
