	.file	"927783.c"
	.intel_syntax noprefix
	.text
	.globl	minChar
	.type	minChar, @function
minChar:
.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, edi
	mov	WORD PTR -20[rbp], ax
	mov	BYTE PTR -3[rbp], 1
	mov	WORD PTR -2[rbp], 0
	jmp	.L2
.L3:
	movzx	eax, BYTE PTR -3[rbp]
	add	eax, eax
	mov	BYTE PTR -3[rbp], al
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L2:
	movsx	eax, WORD PTR -2[rbp]
	movsx	edx, WORD PTR -20[rbp]
	sub	edx, 1
	cmp	eax, edx
	jl	.L3
	movzx	eax, BYTE PTR -3[rbp]
	neg	eax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	minChar, .-minChar
	.globl	maxChar
	.type	maxChar, @function
maxChar:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	WORD PTR -20[rbp], ax
	mov	BYTE PTR -3[rbp], 1
	mov	WORD PTR -2[rbp], 0
	jmp	.L6
.L7:
	movzx	eax, BYTE PTR -3[rbp]
	add	eax, eax
	mov	BYTE PTR -3[rbp], al
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L6:
	movsx	eax, WORD PTR -2[rbp]
	movsx	edx, WORD PTR -20[rbp]
	sub	edx, 1
	cmp	eax, edx
	jl	.L7
	movzx	eax, BYTE PTR -3[rbp]
	sub	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	maxChar, .-maxChar
	.section	.rodata
.LC0:
	.string	"\nSigned char overflow:"
.LC1:
	.string	"a = %d\n"
.LC2:
	.string	"%d + 1 = %d\n"
.LC3:
	.string	"\na = %d\n"
.LC4:
	.string	"%d - 1 = %d\n"
	.text
	.globl	signedCharOverflow
	.type	signedCharOverflow, @function
signedCharOverflow:
.LFB2:
	.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	WORD PTR -2[rbp], 8
	movsx	eax, WORD PTR -2[rbp]
	mov	edi, eax
	call	maxChar
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	add	eax, 1
	mov	BYTE PTR -3[rbp], al
	lea	rdi, .LC0[rip]
	call	puts@PLT
	movsx	eax, BYTE PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	movsx	edx, BYTE PTR -3[rbp]
	movsx	eax, BYTE PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	movsx	eax, WORD PTR -2[rbp]
	mov	edi, eax
	call	minChar
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	sub	eax, 1
	mov	BYTE PTR -3[rbp], al
	movsx	eax, BYTE PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	movsx	edx, BYTE PTR -3[rbp]
	movsx	eax, BYTE PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	signedCharOverflow, .-signedCharOverflow
	.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	"927783.c"
	.text
	.align	2
	.global	minChar
	.syntax unified
	.arm
	.fpu softvfp
	.type	minChar, %function
minChar:
	@ 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
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #1
	strb	r3, [fp, #-7]
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	b	.L2
.L3:
	ldrb	r3, [fp, #-7]
	lsl	r3, r3, #1
	strb	r3, [fp, #-7]
	ldrsh	r3, [fp, #-6]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
.L2:
	ldrsh	r2, [fp, #-6]
	ldrsh	r3, [fp, #-14]
	sub	r3, r3, #1
	cmp	r2, r3
	blt	.L3
	ldrb	r3, [fp, #-7]
	rsb	r3, r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	minChar, .-minChar
	.align	2
	.global	maxChar
	.syntax unified
	.arm
	.fpu softvfp
	.type	maxChar, %function
maxChar:
	@ 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
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #1
	strb	r3, [fp, #-7]
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	b	.L6
.L7:
	ldrb	r3, [fp, #-7]
	lsl	r3, r3, #1
	strb	r3, [fp, #-7]
	ldrsh	r3, [fp, #-6]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
.L6:
	ldrsh	r2, [fp, #-6]
	ldrsh	r3, [fp, #-14]
	sub	r3, r3, #1
	cmp	r2, r3
	blt	.L7
	ldrb	r3, [fp, #-7]
	sub	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	maxChar, .-maxChar
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Signed char overflow:\000"
	.align	2
.LC1:
	.ascii	"a = %d\012\000"
	.align	2
.LC2:
	.ascii	"%d + 1 = %d\012\000"
	.align	2
.LC3:
	.ascii	"\012a = %d\012\000"
	.align	2
.LC4:
	.ascii	"%d - 1 = %d\012\000"
	.text
	.align	2
	.global	signedCharOverflow
	.syntax unified
	.arm
	.fpu softvfp
	.type	signedCharOverflow, %function
signedCharOverflow:
	@ 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, #8
	strh	r3, [fp, #-6]	@ movhi
	ldrsh	r3, [fp, #-6]
	mov	r0, r3
	bl	maxChar
	mov	r3, r0
	strb	r3, [fp, #-8]
	ldrb	r3, [fp, #-8]
	add	r3, r3, #1
	strb	r3, [fp, #-7]
	ldr	r0, .L10
	bl	puts
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L10+4
	bl	printf
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	ldrb	r2, [fp, #-7]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L10+8
	bl	printf
	ldrsh	r3, [fp, #-6]
	mov	r0, r3
	bl	minChar
	mov	r3, r0
	strb	r3, [fp, #-8]
	ldrb	r3, [fp, #-8]
	sub	r3, r3, #1
	strb	r3, [fp, #-7]
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L10+12
	bl	printf
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	ldrb	r2, [fp, #-7]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L10+16
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	signedCharOverflow, .-signedCharOverflow
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
