	.file	"extr_kernel.c_kernel_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\r\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Hello, world! From processor <"
	.section	.rodata.str1.1
.LC2:
	.string	">\r\n"
	.text
	.p2align 4
	.globl	kernel_main
	.type	kernel_main, @function
kernel_main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ebx, edi
	test	edi, edi
	je	.L12
.L2:
	mov	eax, DWORD PTR is_uart_inited[rip]
	test	eax, eax
	jne	.L9
.L8:
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	imul	edi, ebx, 200000
	call	delay@PLT
	lea	rdi, .LC1[rip]
	call	uart_send_string@PLT
	lea	edi, 48[rbx]
	call	uart_send@PLT
	lea	rdi, .LC2[rip]
	call	uart_send_string@PLT
	test	ebx, ebx
	jne	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	xor	eax, eax
	call	uart_recv@PLT
	mov	edi, eax
	call	uart_send@PLT
	jmp	.L5
.L4:
	jmp	.L4
.L12:
	mov	edi, 115200
	call	uart_init@PLT
	mov	edi, 48
	mov	DWORD PTR is_uart_inited[rip], 1
	call	uart_send@PLT
	lea	rdi, .LC0[rip]
	call	uart_send_string@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	kernel_main, .-kernel_main
	.comm	is_uart_inited,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_kernel.c_kernel_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\015\012\000"
	.align	2
.LC1:
	.ascii	"Hello, world! From processor <\000"
	.align	2
.LC2:
	.ascii	">\015\012\000"
	.text
	.align	2
	.global	kernel_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	kernel_main, %function
kernel_main:
	@ Volatile: function does not return.
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r0, #0
	beq	.L10
	ldr	r5, .L14
.L2:
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L11
.L9:
	b	.L9
.L11:
	ldr	r0, .L14+4
	mul	r0, r4, r0
	bl	delay
	ldr	r0, .L14+8
	bl	uart_send_string
	add	r0, r4, #48
	bl	uart_send
	ldr	r0, .L14+12
	bl	uart_send_string
	cmp	r4, #0
	bne	.L4
.L5:
	bl	uart_recv
	bl	uart_send
	b	.L5
.L4:
	b	.L4
.L10:
	ldr	r0, .L14+16
	bl	uart_init
	mov	r3, #1
	ldr	r5, .L14
	mov	r0, #48
	str	r3, [r5]
	bl	uart_send
	ldr	r0, .L14+20
	bl	uart_send_string
	b	.L2
.L15:
	.align	2
.L14:
	.word	is_uart_inited
	.word	200000
	.word	.LC1
	.word	.LC2
	.word	115200
	.word	.LC0
	.size	kernel_main, .-kernel_main
	.comm	is_uart_inited,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
