	.file	"extr_main.c_prep_cmdline.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"bootargs"
.LC1:
	.string	"\n\rLinux/PowerPC load: %s"
.LC2:
	.string	"\n\r"
	.text
	.p2align 4
	.type	prep_cmdline, @function
prep_cmdline:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rsi, QWORD PTR cmdline[rip]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	cmp	BYTE PTR [rsi], 0
	je	.L9
.L2:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	printf@PLT
	mov	rax, QWORD PTR console_ops[rip]
	test	rax, rax
	je	.L3
	mov	rsi, QWORD PTR COMMAND_LINE_SIZE[rip]
	mov	rdi, QWORD PTR cmdline[rip]
	call	rax
.L3:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	printf@PLT
	mov	rdx, QWORD PTR cmdline[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	lea	rsi, .LC0[rip]
	jmp	setprop_str@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR COMMAND_LINE_SIZE[rip]
	mov	rdx, rsi
	lea	rsi, .LC0[rip]
	lea	rcx, -1[rax]
	call	getprop@PLT
	mov	rsi, QWORD PTR cmdline[rip]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	prep_cmdline, .-prep_cmdline
	.comm	console_ops,8,8
	.comm	cmdline,8,8
	.comm	COMMAND_LINE_SIZE,8,8
	.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_main.c_prep_cmdline.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bootargs\000"
	.align	2
.LC1:
	.ascii	"\012\015Linux/PowerPC load: %s\000"
	.align	2
.LC2:
	.ascii	"\012\015\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prep_cmdline, %function
prep_cmdline:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L10
	mov	r5, r0
	ldr	r1, [r4]
	ldrb	r3, [r1]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L9
.L2:
	ldr	r0, .L10+4
	bl	printf
	ldr	r3, .L10+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r2, .L10+12
	ldr	r0, [r4]
	ldr	r1, [r2]
	blx	r3
.L3:
	ldr	r0, .L10+16
	bl	printf
	mov	r0, r5
	ldr	r2, [r4]
	ldr	r1, .L10+20
	pop	{r4, r5, r6, lr}
	b	setprop_str
.L9:
	ldr	r3, .L10+12
	mov	r2, r1
	ldr	r3, [r3]
	ldr	r1, .L10+20
	sub	r3, r3, #1
	bl	getprop
	ldr	r1, [r4]
	b	.L2
.L11:
	.align	2
.L10:
	.word	cmdline
	.word	.LC1
	.word	console_ops
	.word	COMMAND_LINE_SIZE
	.word	.LC2
	.word	.LC0
	.size	prep_cmdline, .-prep_cmdline
	.comm	console_ops,4,4
	.comm	cmdline,4,4
	.comm	COMMAND_LINE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
