	.file	"extr_phram.c_phram_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"parameter too long\n"
.LC1:
	.string	","
.LC2:
	.string	"too many arguments\n"
.LC3:
	.string	"not enough arguments\n"
.LC4:
	.string	"illegal start address\n"
.LC5:
	.string	"illegal device length\n"
.LC6:
	.string	"%s device: %#x at %#x\n"
	.text
	.p2align 4
	.type	phram_setup, @function
phram_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 88
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 168
	.cfi_def_cfa_offset 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	lea	rax, 64[rsp]
	mov	QWORD PTR 16[rsp], rax
	call	strnlen@PLT
	cmp	eax, 87
	ja	.L19
.L2:
	mov	rdi, QWORD PTR 16[rsp]
	mov	rsi, r12
	lea	rbx, 32[rsp]
	lea	r13, 56[rsp]
	lea	rbp, 16[rsp]
	lea	r12, .LC1[rip]
	call	strcpy@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	kill_final_newline@PLT
.L3:
	mov	rsi, r12
	mov	rdi, rbp
	add	rbx, 8
	call	strsep@PLT
	mov	QWORD PTR -8[rbx], rax
	cmp	r13, rbx
	jne	.L3
	cmp	QWORD PTR 16[rsp], 0
	je	.L4
	lea	rdi, .LC2[rip]
	call	parse_err@PLT
.L4:
	mov	rbp, QWORD PTR 48[rsp]
	test	rbp, rbp
	je	.L20
.L5:
	mov	rsi, QWORD PTR 32[rsp]
	lea	rdi, 24[rsp]
	call	parse_name@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L21
.L1:
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 168
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	rsi, QWORD PTR 40[rsp]
	lea	rdi, 8[rsp]
	call	parse_num32@PLT
	test	eax, eax
	jne	.L23
.L7:
	lea	rdi, 12[rsp]
	mov	rsi, rbp
	call	parse_num32@PLT
	test	eax, eax
	jne	.L24
.L8:
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	call	register_device@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	ecx, DWORD PTR 8[rsp]
	mov	edx, DWORD PTR 12[rsp]
	lea	rdi, .LC6[rip]
	mov	rsi, QWORD PTR 24[rsp]
	call	pr_info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rdi, .LC0[rip]
	call	parse_err@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rdi, .LC3[rip]
	call	parse_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, QWORD PTR 24[rsp]
	call	kfree@PLT
	lea	rdi, .LC5[rip]
	call	parse_err@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, QWORD PTR 24[rsp]
	call	kfree@PLT
	lea	rdi, .LC4[rip]
	call	parse_err@PLT
	jmp	.L7
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	phram_setup, .-phram_setup
	.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_phram.c_phram_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"parameter too long\012\000"
	.align	2
.LC1:
	.ascii	",\000"
	.align	2
.LC2:
	.ascii	"too many arguments\012\000"
	.align	2
.LC3:
	.ascii	"not enough arguments\012\000"
	.align	2
.LC4:
	.ascii	"illegal start address\012\000"
	.align	2
.LC5:
	.ascii	"illegal device length\012\000"
	.align	2
.LC6:
	.ascii	"%s device: %#x at %#x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	phram_setup, %function
phram_setup:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L29
	sub	sp, sp, #120
	add	r5, sp, #28
	mov	r1, #88
	ldr	r3, [r3]
	str	r3, [sp, #116]
	mov	r3,#0
	mov	r4, r0
	str	r5, [sp]
	bl	strnlen
	cmp	r0, #87
	movls	r0, r5
	bhi	.L23
.L2:
	mov	r1, r4
	bl	strcpy
	ldr	r0, [sp]
	bl	kill_final_newline
	ldr	r6, .L29+4
	add	r4, sp, #16
.L3:
	mov	r1, r6
	mov	r0, sp
	bl	strsep
	str	r0, [r4], #4
	cmp	r5, r4
	bne	.L3
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L29+8
	bl	parse_err
.L4:
	ldr	r5, [sp, #24]
	cmp	r5, #0
	beq	.L24
.L5:
	ldr	r1, [sp, #16]
	add	r0, sp, #4
	bl	parse_name
	subs	r4, r0, #0
	beq	.L25
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #116]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	mov	r0, r4
	add	sp, sp, #120
	@ sp needed
	pop	{r4, r5, r6, pc}
.L25:
	ldr	r1, [sp, #20]
	add	r0, sp, #8
	bl	parse_num32
	cmp	r0, #0
	bne	.L27
.L7:
	mov	r1, r5
	add	r0, sp, #12
	bl	parse_num32
	cmp	r0, #0
	bne	.L28
.L8:
	ldmib	sp, {r0, r1, r2}
	bl	register_device
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, [sp, #8]
	ldr	r2, [sp, #12]
	ldr	r1, [sp, #4]
	ldr	r0, .L29+12
	bl	pr_info
	b	.L1
.L23:
	ldr	r0, .L29+16
	bl	parse_err
	ldr	r0, [sp]
	b	.L2
.L24:
	ldr	r0, .L29+20
	bl	parse_err
	b	.L5
.L28:
	ldr	r0, [sp, #4]
	bl	kfree
	ldr	r0, .L29+24
	bl	parse_err
	b	.L8
.L27:
	ldr	r0, [sp, #4]
	bl	kfree
	ldr	r0, .L29+28
	bl	parse_err
	b	.L7
.L26:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC7
	.word	.LC1
	.word	.LC2
	.word	.LC6
	.word	.LC0
	.word	.LC3
	.word	.LC5
	.word	.LC4
	.size	phram_setup, .-phram_setup
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
