	.file	"extr_slram.c_parse_cmdline.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"slram: devname=%s, devstart=0x%lx, devlength=0x%lx\n"
	.align 8
.LC1:
	.string	"slram: Illegal length parameter.\n"
	.text
	.p2align 4
	.type	parse_cmdline, @function
parse_cmdline:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	sete	dl
	test	rbp, rbp
	sete	al
	or	dl, al
	jne	.L10
	mov	r12, rdi
	test	rdi, rdi
	je	.L10
	mov	r13, rsp
	mov	rdi, rsi
	xor	edx, edx
	mov	rsi, r13
	call	simple_strtoul@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, rax
	call	handle_unit@PLT
	cmp	BYTE PTR 0[rbp], 43
	mov	r14, rax
	je	.L5
	mov	rsi, r13
	xor	edx, edx
	mov	rdi, rbp
	call	simple_strtoul@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, rax
	call	handle_unit@PLT
	mov	r13, rax
	cmp	r14, rax
	ja	.L6
	sub	r13, r14
.L7:
	mov	rdx, r14
	mov	rcx, r13
	lea	rdi, .LC0[rip]
	mov	rsi, r12
	call	T@PLT
	mov	rax, r13
	xor	edx, edx
	div	QWORD PTR SLRAM_BLK_SZ[rip]
	test	rdx, rdx
	jne	.L6
	mov	rdx, r13
	mov	rsi, r14
	mov	rdi, r12
	call	register_device@PLT
	mov	rbp, rax
	xor	eax, eax
	test	rbp, rbp
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xor	eax, eax
	call	unregister_devices@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdi, .LC1[rip]
	call	E@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, r13
	lea	rdi, 1[rbp]
	xor	edx, edx
	call	simple_strtoul@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, rax
	call	handle_unit@PLT
	mov	r13, rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	call	unregister_devices@PLT
	mov	eax, ebp
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	parse_cmdline, .-parse_cmdline
	.comm	SLRAM_BLK_SZ,8,8
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_slram.c_parse_cmdline.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"slram: devname=%s, devstart=0x%lx, devlength=0x%lx\012"
	.ascii	"\000"
	.global	__aeabi_uidivmod
	.align	2
.LC1:
	.ascii	"slram: Illegal length parameter.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_cmdline, %function
parse_cmdline:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r2
	cmp	r1, #0
	lsr	r3, r3, #5
	moveq	r3, #1
	cmp	r0, #0
	push	{r4, r5, r6, r7, lr}
	movne	r4, r3
	moveq	r4, #1
	ldr	r3, .L14
	sub	sp, sp, #12
	cmp	r4, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bne	.L11
	mov	r5, r2
	mov	r6, r0
	mov	r2, r4
	mov	r0, r1
	mov	r1, sp
	bl	simple_strtoul
	ldr	r1, [sp]
	bl	handle_unit
	ldrb	r3, [r5]	@ zero_extendqisi2
	mov	r7, r0
	cmp	r3, #43
	mov	r2, r4
	mov	r1, sp
	beq	.L4
	mov	r0, r5
	bl	simple_strtoul
	ldr	r1, [sp]
	bl	handle_unit
	cmp	r7, r0
	mov	r4, r0
	subls	r4, r0, r7
	bhi	.L5
.L6:
	mov	r3, r4
	mov	r2, r7
	mov	r1, r6
	ldr	r0, .L14+4
	bl	T
	ldr	r3, .L14+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	__aeabi_uidivmod
	cmp	r1, #0
	bne	.L5
	mov	r2, r4
	mov	r1, r7
	mov	r0, r6
	bl	register_device
	subs	r4, r0, #0
	moveq	r0, r4
	bne	.L12
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	bl	unregister_devices
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L5:
	ldr	r0, .L14+16
	bl	E
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L4:
	add	r0, r5, #1
	bl	simple_strtoul
	ldr	r1, [sp]
	bl	handle_unit
	mov	r4, r0
	b	.L6
.L12:
	bl	unregister_devices
	mov	r0, r4
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	.LC0
	.word	SLRAM_BLK_SZ
	.word	EINVAL
	.word	.LC1
	.size	parse_cmdline, .-parse_cmdline
	.comm	SLRAM_BLK_SZ,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
