	.file	"extr_tc-cr16.c_print_constant.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	print_constant, @function
print_constant:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edi
	mov	esi, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 4[rdx]
	call	getconstant@PLT
	mov	rbp, rax
	lea	eax, -8[rbx]
	cmp	eax, 24
	ja	.L2
	lea	rcx, .L4[rip]
	movsx	rax, DWORD PTR [rcx+rax*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L7-.L4
	.long	.L2-.L4
	.long	.L8-.L4
	.long	.L2-.L4
	.long	.L7-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L5-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L2-.L4
	.long	.L5-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L3-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, r13d
	mov	rsi, rbp
.L19:
	xor	edi, edi
.L18:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	CR16_PRINT@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	ecx, -16[rbx]
	mov	edx, 1
	sal	edx, cl
	sub	edx, 1
	movsx	rdx, edx
.L10:
	mov	rax, QWORD PTR instruction[rip]
	cmp	DWORD PTR [rax], 2
	jle	.L2
	movsx	rcx, r13d
	cmp	rcx, QWORD PTR WORD_SHIFT[rip]
	jne	.L2
	movzx	r13d, bp
	sar	rbp, cl
	mov	eax, DWORD PTR arg_idxrp[rip]
	and	rdx, rbp
	mov	rsi, rdx
	sal	rsi, 8
	cmp	DWORD PTR [r12], eax
	je	.L20
	and	esi, 3840
	shr	rdx, 4
	or	rsi, rdx
.L20:
	xor	edx, edx
	xor	edi, edi
	call	CR16_PRINT@PLT
	mov	edx, DWORD PTR WORD_SHIFT[rip]
	mov	rsi, r13
.L21:
	mov	edi, 1
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR instruction[rip]
	mov	edx, r13d
	mov	rsi, rbp
	cmp	DWORD PTR [rax], 2
	jle	.L19
	movsx	rax, r13d
	cmp	rax, QWORD PTR WORD_SHIFT[rip]
	jne	.L19
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L3:
	lea	ecx, -16[rbx]
	mov	eax, 1
	xor	edx, edx
	xor	edi, edi
	sal	eax, cl
	mov	rcx, QWORD PTR WORD_SHIFT[rip]
	lea	esi, -1[rax]
	mov	rax, rbp
	sar	rax, cl
	movsx	rsi, esi
	and	rsi, rax
	call	CR16_PRINT@PLT
	mov	edx, DWORD PTR WORD_SHIFT[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movzx	esi, bp
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	edi, 1
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	CR16_PRINT@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR arg_idxrp[rip]
	cmp	DWORD PTR [r12], eax
	je	.L23
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rsi, rbp
	mov	edx, r13d
	xor	edi, edi
	shr	rsi, 63
	add	rbp, rsi
	mov	rsi, rbp
	sar	rsi
	and	esi, 15
	call	CR16_PRINT@PLT
	mov	rsi, rbp
	lea	edx, 8[r13]
	sar	rsi, 5
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR LD_STOR_INS[rip]
	call	IS_INSN_TYPE@PLT
	cmp	eax, 1
	sbb	rdx, rdx
	and	edx, 16
	add	rdx, 15
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR instruction[rip]
	cmp	DWORD PTR [rax], 2
	jne	.L2
	mov	rsi, rbp
	mov	edx, r13d
	xor	edi, edi
	and	esi, 15
	call	CR16_PRINT@PLT
	mov	rsi, rbp
	lea	edx, 20[r13]
	xor	edi, edi
	sar	rsi, 4
	and	esi, 3
	call	CR16_PRINT@PLT
	mov	rsi, rbp
	lea	edx, 14[r13]
	xor	edi, edi
	sar	rsi, 6
	and	esi, 3
	call	CR16_PRINT@PLT
	mov	rsi, rbp
	lea	edx, 8[r13]
	sar	rsi, 8
	and	esi, 63
	jmp	.L19
	.cfi_endproc
.LFE0:
	.size	print_constant, .-print_constant
	.comm	instruction,8,8
	.comm	arg_idxrp,4,4
	.comm	WORD_SHIFT,8,8
	.comm	LD_STOR_INS,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_tc-cr16.c_print_constant.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_constant, %function
print_constant:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r1
	ldr	r0, [r2, #4]
	mov	r1, r4
	mov	r7, r2
	bl	getconstant
	sub	r3, r4, #8
	mov	r5, r0
	cmp	r3, #24
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L9
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L7
	.word	.L2
	.word	.L8
	.word	.L2
	.word	.L7
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L5
	.word	.L6
	.word	.L5
	.word	.L2
	.word	.L5
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L3
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L3
.L2:
	mov	r2, r6
.L19:
	mov	r1, r5
.L20:
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r0, #0
	b	CR16_PRINT
.L5:
	mvn	r3, #0
	sub	r4, r4, #16
	mvn	r3, r3, lsl r4
.L10:
	ldr	r2, .L23
	ldr	r2, [r2]
	ldr	r2, [r2]
	cmp	r2, #2
	ble	.L2
	ldr	r4, .L23+4
	ldr	r2, [r4]
	cmp	r2, r6
	bne	.L2
	ldr	r2, .L23+8
	ldr	r1, [r7]
	ldr	r2, [r2]
	and	r3, r3, r5, asr r6
	cmp	r1, r2
	mov	r2, #0
	lsl	r1, r3, #8
	andne	r1, r1, #3840
	lsl	r5, r5, #16
	mov	r0, r2
	orrne	r1, r1, r3, lsr #4
	lsr	r5, r5, #16
	bl	CR16_PRINT
	mov	r1, r5
	ldr	r2, [r4]
.L21:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, lr}
	b	CR16_PRINT
.L7:
	ldr	r3, .L23
	mov	r2, r6
	ldr	r3, [r3]
	mov	r1, r0
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L20
	ldr	r3, .L23+4
	ldr	r3, [r3]
	cmp	r3, r6
	bne	.L20
	b	.L21
.L3:
	mov	r6, #1
	mov	r2, #0
	ldr	r7, .L23+4
	sub	r4, r4, #16
	ldr	r1, [r7]
	lsl	r4, r6, r4
	sub	r4, r4, #1
	and	r1, r4, r0, asr r1
	mov	r0, r2
	bl	CR16_PRINT
	lsl	r1, r5, #16
	mov	r0, r6
	ldr	r2, [r7]
	lsr	r1, r1, #16
	pop	{r4, r5, r6, r7, r8, lr}
	b	CR16_PRINT
.L8:
	ldr	r3, .L23+8
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L23
	mov	r2, r6
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L19
	and	r1, r0, #15
	mov	r0, #0
	bl	CR16_PRINT
	asr	r1, r5, #4
	add	r2, r6, #20
	and	r1, r1, #3
	mov	r0, #0
	bl	CR16_PRINT
	asr	r1, r5, #6
	add	r2, r6, #14
	and	r1, r1, #3
	mov	r0, #0
	bl	CR16_PRINT
	asr	r1, r5, #8
	add	r2, r6, #8
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, lr}
	and	r1, r1, #63
	b	CR16_PRINT
.L9:
	add	r5, r0, r0, lsr #31
	asr	r1, r5, #1
	mov	r2, r6
	and	r1, r1, #15
	mov	r0, #0
	bl	CR16_PRINT
	asr	r1, r5, #5
	add	r2, r6, #8
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, lr}
	b	CR16_PRINT
.L6:
	ldr	r3, .L23+12
	ldr	r0, [r3]
	bl	IS_INSN_TYPE
	cmp	r0, #0
	moveq	r3, #31
	movne	r3, #15
	b	.L10
.L24:
	.align	2
.L23:
	.word	instruction
	.word	WORD_SHIFT
	.word	arg_idxrp
	.word	LD_STOR_INS
	.size	print_constant, .-print_constant
	.comm	instruction,4,4
	.comm	arg_idxrp,4,4
	.comm	WORD_SHIFT,4,4
	.comm	LD_STOR_INS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
