	.file	"541665.c"
	.intel_syntax noprefix
	.text
	.globl	g_char
	.data
	.type	g_char, @object
	.size	g_char, 1
g_char:
	.byte	65
	.globl	g_char2
	.type	g_char2, @object
	.size	g_char2, 1
g_char2:
	.byte	97
	.globl	g_val
	.align 4
	.type	g_val, @object
	.size	g_val, 4
g_val:
	.long	2748
	.section	.rodata
.LC0:
	.string	"\n\rg_val = "
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	uart0_config@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, DWORD PTR g_val[rip]
	mov	edi, eax
	call	print_hex
.L2:
	movzx	eax, BYTE PTR g_char[rip]
	mov	edx, eax
	add	edx, 1
	mov	BYTE PTR g_char[rip], dl
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	movzx	eax, BYTE PTR g_char2[rip]
	mov	edx, eax
	add	edx, 1
	mov	BYTE PTR g_char2[rip], dl
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	mov	edi, 1000000
	call	delay@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	print_hex
	.type	print_hex, @function
print_hex:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -68[rbp]
	and	eax, 15
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	sar	DWORD PTR -68[rbp], 4
.L4:
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -52[rbp], edx
	test	eax, eax
	jne	.L5
	mov	DWORD PTR -52[rbp], 7
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	test	eax, eax
	js	.L7
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	cmp	eax, 9
	jg	.L7
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	add	eax, 48
	mov	edi, eax
	call	putchar@PLT
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	cmp	eax, 9
	jle	.L8
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	cmp	eax, 15
	jg	.L8
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	add	eax, 55
	mov	edi, eax
	call	putchar@PLT
	jmp	.L6
.L8:
	mov	edi, 63
	call	putchar@PLT
.L6:
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -52[rbp], edx
	test	eax, eax
	jne	.L9
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	print_hex, .-print_hex
	.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	"541665.c"
	.text
	.global	g_char
	.data
	.type	g_char, %object
	.size	g_char, 1
g_char:
	.byte	65
	.global	g_char2
	.type	g_char2, %object
	.size	g_char2, 1
g_char2:
	.byte	97
	.global	g_val
	.align	2
	.type	g_val, %object
	.size	g_val, 4
g_val:
	.word	2748
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\015g_val = \000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	uart0_config
	ldr	r0, .L3
	bl	puts
	ldr	r3, .L3+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_hex
.L2:
	ldr	r3, .L3+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r2, r3, #1
	and	r1, r2, #255
	ldr	r2, .L3+8
	strb	r1, [r2]
	mov	r0, r3
	bl	putchar
	ldr	r3, .L3+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r2, r3, #1
	and	r1, r2, #255
	ldr	r2, .L3+12
	strb	r1, [r2]
	mov	r0, r3
	bl	putchar
	ldr	r0, .L3+16
	bl	delay
	b	.L2
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	g_val
	.word	g_char
	.word	g_char2
	.word	1000000
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_hex
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_hex, %function
print_hex:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L6
.L7:
	ldr	r3, [fp, #-48]
	and	r2, r3, #15
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-36]
	ldr	r3, [fp, #-48]
	asr	r3, r3, #4
	str	r3, [fp, #-48]
.L6:
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	str	r2, [fp, #-44]
	cmp	r3, #0
	bne	.L7
	mov	r3, #7
	str	r3, [fp, #-44]
	b	.L8
.L11:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	cmp	r3, #0
	blt	.L9
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	cmp	r3, #9
	bgt	.L9
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	add	r3, r3, #48
	mov	r0, r3
	bl	putchar
	b	.L8
.L9:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	cmp	r3, #9
	ble	.L10
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	cmp	r3, #15
	bgt	.L10
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	add	r3, r3, #55
	mov	r0, r3
	bl	putchar
	b	.L8
.L10:
	mov	r0, #63
	bl	putchar
.L8:
	ldr	r3, [fp, #-44]
	sub	r2, r3, #1
	str	r2, [fp, #-44]
	cmp	r3, #0
	bne	.L11
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC1
	.size	print_hex, .-print_hex
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
