	.file	"164431.c"
	.intel_syntax noprefix
	.text
	.type	mmio_write, @function
mmio_write:
.LFB0:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	mmio_write, .-mmio_write
	.type	mmio_read, @function
mmio_read:
.LFB1:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR [rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	mmio_read, .-mmio_read
	.type	delay, @function
delay:
.LFB2:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
#APP
# 17 "the_stack_data/164431.c" 1
	__delay_58: subs eax, eax, #1; bne __delay_58

# 0 "" 2
#NO_APP
	mov	DWORD PTR -4[rbp], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	delay, .-delay
	.globl	strlen
	.type	strlen, @function
strlen:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L6
.L7:
	add	QWORD PTR -8[rbp], 1
.L6:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L7
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	strlen, .-strlen
	.globl	uart_init
	.type	uart_init, @function
uart_init:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 0
	mov	edi, 538972208
	call	mmio_write
	mov	esi, 0
	mov	edi, 538968212
	call	mmio_write
	mov	edi, 150
	call	delay
	mov	esi, 49152
	mov	edi, 538968216
	call	mmio_write
	mov	edi, 150
	call	delay
	mov	esi, 0
	mov	edi, 538968216
	call	mmio_write
	mov	esi, 2047
	mov	edi, 538972228
	call	mmio_write
	mov	esi, 1
	mov	edi, 538972196
	call	mmio_write
	mov	esi, 40
	mov	edi, 538972200
	call	mmio_write
	mov	esi, 112
	mov	edi, 538972204
	call	mmio_write
	mov	esi, 2034
	mov	edi, 538972216
	call	mmio_write
	mov	esi, 769
	mov	edi, 538972208
	call	mmio_write
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	uart_init, .-uart_init
	.globl	uart_putc
	.type	uart_putc, @function
uart_putc:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	nop
.L11:
	mov	edi, 538972184
	call	mmio_read
	and	eax, 32
	test	eax, eax
	jne	.L11
	movzx	eax, BYTE PTR -4[rbp]
	mov	esi, eax
	mov	edi, 538972160
	call	mmio_write
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	uart_putc, .-uart_putc
	.globl	uart_getc
	.type	uart_getc, @function
uart_getc:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
.L13:
	mov	edi, 538972184
	call	mmio_read
	and	eax, 16
	test	eax, eax
	jne	.L13
	mov	edi, 538972160
	call	mmio_read
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	uart_getc, .-uart_getc
	.globl	uart_write
	.type	uart_write, @function
uart_write:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L16
.L17:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	uart_putc
	add	QWORD PTR -8[rbp], 1
.L16:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jb	.L17
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	uart_write, .-uart_write
	.globl	uart_puts
	.type	uart_puts, @function
uart_puts:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	uart_write
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	uart_puts, .-uart_puts
	.section	.rodata
.LC0:
	.string	"Hello, kernel World!\r\n"
	.text
	.globl	kernel_main
	.type	kernel_main, @function
kernel_main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	eax, 0
	call	uart_init
	lea	rdi, .LC0[rip]
	call	uart_puts
.L20:
	mov	eax, 0
	call	uart_getc
	movzx	eax, al
	mov	edi, eax
	call	uart_putc
	jmp	.L20
	.cfi_endproc
.LFE9:
	.size	kernel_main, .-kernel_main
	.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	"164431.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmio_write, %function
mmio_write:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mmio_write, .-mmio_write
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmio_read, %function
mmio_read:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mmio_read, .-mmio_read
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	delay, %function
delay:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	.syntax divided
@ 17 "the_stack_data/164431.c" 1
	__delay_54: subs r3, r3, #1; bne __delay_54

@ 0 "" 2
	.arm
	.syntax unified
	str	r3, [fp, #-8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	delay, .-delay
	.align	2
	.global	strlen
	.syntax unified
	.arm
	.fpu softvfp
	.type	strlen, %function
strlen:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L7:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	strlen, .-strlen
	.align	2
	.global	uart_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_init, %function
uart_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #0
	ldr	r0, .L10
	bl	mmio_write
	mov	r1, #0
	ldr	r0, .L10+4
	bl	mmio_write
	mov	r0, #150
	bl	delay
	mov	r1, #49152
	ldr	r0, .L10+8
	bl	mmio_write
	mov	r0, #150
	bl	delay
	mov	r1, #0
	ldr	r0, .L10+8
	bl	mmio_write
	ldr	r1, .L10+12
	ldr	r0, .L10+16
	bl	mmio_write
	mov	r1, #1
	ldr	r0, .L10+20
	bl	mmio_write
	mov	r1, #40
	ldr	r0, .L10+24
	bl	mmio_write
	mov	r1, #112
	ldr	r0, .L10+28
	bl	mmio_write
	ldr	r1, .L10+32
	ldr	r0, .L10+36
	bl	mmio_write
	ldr	r1, .L10+40
	ldr	r0, .L10
	bl	mmio_write
	nop
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	538972208
	.word	538968212
	.word	538968216
	.word	2047
	.word	538972228
	.word	538972196
	.word	538972200
	.word	538972204
	.word	2034
	.word	538972216
	.word	769
	.size	uart_init, .-uart_init
	.align	2
	.global	uart_putc
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_putc, %function
uart_putc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	nop
.L13:
	ldr	r0, .L14
	bl	mmio_read
	mov	r3, r0
	and	r3, r3, #32
	cmp	r3, #0
	bne	.L13
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L14+4
	bl	mmio_write
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	538972184
	.word	538972160
	.size	uart_putc, .-uart_putc
	.align	2
	.global	uart_getc
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_getc, %function
uart_getc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	nop
.L17:
	ldr	r0, .L19
	bl	mmio_read
	mov	r3, r0
	and	r3, r3, #16
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L19+4
	bl	mmio_read
	mov	r3, r0
	and	r3, r3, #255
	mov	r0, r3
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	538972184
	.word	538972160
	.size	uart_getc, .-uart_getc
	.align	2
	.global	uart_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_write, %function
uart_write:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L22
.L23:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	uart_putc
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L22:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L23
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	uart_write, .-uart_write
	.align	2
	.global	uart_puts
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_puts, %function
uart_puts:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	uart_write
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	uart_puts, .-uart_puts
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Hello, kernel World!\015\012\000"
	.text
	.align	2
	.global	kernel_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	kernel_main, %function
kernel_main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	bl	uart_init
	ldr	r0, .L27
	bl	uart_puts
.L26:
	bl	uart_getc
	mov	r3, r0
	mov	r0, r3
	bl	uart_putc
	b	.L26
.L28:
	.align	2
.L27:
	.word	.LC0
	.size	kernel_main, .-kernel_main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
