	.file	"extr_sh2_dynarec.c_cjump_assemble.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"match=%d\n"
.LC1:
	.string	"idle loop\n"
.LC2:
	.string	"branch: internal\n"
.LC3:
	.string	"branch: external\n"
	.text
	.p2align 4
	.globl	cjump_assemble
	.type	cjump_assemble, @function
cjump_assemble:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movsx	rbx, edi
	lea	r13, 0[0+rbx*8]
	mov	rbp, rbx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rdx, QWORD PTR ba[rip]
	mov	r15, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR regs[rip]
	mov	edx, DWORD PTR [rdx+rbx*4]
	add	rax, r13
	mov	edi, DWORD PTR 4[rax]
	mov	esi, DWORD PTR [rax]
	call	match_bt@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	mov	r12d, eax
	xor	eax, eax
	call	assem_debug@PLT
	mov	rax, QWORD PTR ba[rip]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	internal_branch@PLT
	mov	r14d, eax
	mov	rax, QWORD PTR ba[rip]
	mov	eax, DWORD PTR [rax+rbx*4]
	sub	eax, DWORD PTR start[rip]
	sar	eax
	cmp	eax, ebx
	je	.L44
.L2:
	mov	esi, DWORD PTR SR[rip]
	mov	rdi, r15
	call	get_reg@PLT
	mov	edi, eax
	mov	DWORD PTR 12[rsp], eax
	not	edi
	shr	edi, 31
	call	assert@PLT
	mov	esi, DWORD PTR CCREG[rip]
	mov	rdi, r15
	call	get_reg@PLT
	xor	edi, edi
	cmp	DWORD PTR HOST_CCREG[rip], eax
	sete	dil
	mov	r15d, eax
	call	assert@PLT
	mov	eax, DWORD PTR start[rip]
	xor	r9d, r9d
	mov	edi, ebp
	test	r12d, r12d
	mov	r8d, DWORD PTR NODS[rip]
	lea	rdx, 20[rsp]
	lea	ecx, [rax+rbp*2]
	mov	rax, QWORD PTR regs[rip]
	sete	r9b
	mov	esi, DWORD PTR 4[rax+r13]
	call	do_cc@PLT
	mov	eax, DWORD PTR 20[rsp]
	mov	r10d, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L3
	test	r12d, r12d
	jne	.L45
	mov	esi, 1
	mov	edi, r10d
	call	emit_testimm@PLT
	mov	rax, QWORD PTR opcode2[rip]
	mov	eax, DWORD PTR [rax+rbx*4]
	cmp	eax, 9
	je	.L9
	cmp	eax, 11
	je	.L23
.L25:
	xor	r12d, r12d
.L11:
	mov	esi, DWORD PTR 20[rsp]
	test	esi, esi
	jne	.L46
.L15:
	mov	rax, QWORD PTR regs[rip]
	mov	rdx, QWORD PTR ba[rip]
	add	rax, r13
	mov	edx, DWORD PTR [rdx+rbx*4]
	mov	edi, DWORD PTR 4[rax]
	mov	esi, DWORD PTR [rax]
	call	store_regs_bt@PLT
	mov	rax, QWORD PTR ba[rip]
	add	r13, QWORD PTR regs[rip]
	mov	edi, DWORD PTR 4[r13]
	mov	esi, DWORD PTR 0[r13]
	mov	edx, DWORD PTR [rax+rbx*4]
	call	load_regs_bt@PLT
	test	r14d, r14d
	jne	.L47
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	assem_debug@PLT
	mov	rax, QWORD PTR ba[rip]
	mov	esi, DWORD PTR [rax+rbx*4]
.L18:
	mov	edi, DWORD PTR out[rip]
	mov	edx, r14d
	call	add_to_linker@PLT
	xor	edi, edi
	call	emit_jmp@PLT
.L19:
	mov	rsi, QWORD PTR out[rip]
	mov	rdi, r12
	call	set_jump_target@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L48
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, 1
	mov	edi, r10d
	call	emit_testimm@PLT
	mov	rax, QWORD PTR opcode2[rip]
	mov	eax, DWORD PTR [rax+rbx*4]
	cmp	eax, 9
	je	.L49
	cmp	eax, 11
	je	.L21
.L7:
	test	r12d, r12d
	je	.L25
.L12:
	mov	esi, DWORD PTR 20[rsp]
	test	esi, esi
	je	.L1
	imul	esi, DWORD PTR CLOCK_DIVIDER[rip]
	mov	edx, r15d
	mov	edi, r15d
	call	emit_addimm@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L47:
	xor	eax, eax
	lea	rdi, .LC2[rip]
	call	assem_debug@PLT
	mov	rax, QWORD PTR ba[rip]
	mov	rdx, QWORD PTR is_ds[rip]
	mov	esi, DWORD PTR [rax+rbx*4]
	mov	eax, esi
	sub	eax, DWORD PTR start[rip]
	sar	eax
	cdqe
	cmp	QWORD PTR [rdx+rax*8], 0
	je	.L18
	mov	edi, ebp
	call	ds_assemble_entry@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L44:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	assem_debug@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L45:
	mov	rdx, QWORD PTR ccadj[rip]
	mov	edi, r15d
	mov	esi, DWORD PTR [rdx+rbx*4]
	mov	edx, r15d
	sub	esi, eax
	imul	esi, DWORD PTR CLOCK_DIVIDER[rip]
	call	emit_addimm@PLT
	mov	r10d, DWORD PTR 12[rsp]
	mov	esi, 1
	mov	edi, r10d
	call	emit_testimm@PLT
	mov	rax, QWORD PTR opcode2[rip]
	mov	eax, DWORD PTR [rax+rbx*4]
	cmp	eax, 9
	je	.L10
	cmp	eax, 11
	jne	.L12
.L21:
	test	r12d, r12d
	je	.L23
.L6:
	mov	rax, QWORD PTR ba[rip]
	mov	edi, DWORD PTR out[rip]
	mov	edx, r14d
	mov	esi, DWORD PTR [rax+rbx*4]
	call	add_to_linker@PLT
	xor	edi, edi
	call	emit_jeq@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L49:
	test	r12d, r12d
	jne	.L10
.L9:
	mov	edi, 1
	mov	r12, QWORD PTR out[rip]
	call	emit_jeq@PLT
	mov	rax, QWORD PTR opcode2[rip]
	cmp	DWORD PTR [rax+rbx*4], 11
	jne	.L11
.L23:
	mov	edi, 1
	mov	r12, QWORD PTR out[rip]
	call	emit_jne@PLT
	mov	esi, DWORD PTR 20[rsp]
	test	esi, esi
	je	.L15
.L46:
	mov	eax, DWORD PTR CLOCK_DIVIDER[rip]
	mov	edx, r15d
	mov	edi, r15d
	neg	eax
	imul	esi, eax
	call	emit_addimm@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR ba[rip]
	mov	edi, DWORD PTR out[rip]
	mov	edx, r14d
	mov	esi, DWORD PTR [rax+rbx*4]
	call	add_to_linker@PLT
	xor	edi, edi
	call	emit_jne@PLT
	mov	rax, QWORD PTR opcode2[rip]
	cmp	DWORD PTR [rax+rbx*4], 11
	jne	.L7
	jmp	.L6
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cjump_assemble, .-cjump_assemble
	.comm	start,4,4
	.comm	source,8,8
	.comm	regs,8,8
	.comm	out,8,8
	.comm	opcode2,8,8
	.comm	is_ds,8,8
	.comm	ccadj,8,8
	.comm	branch_regs,8,8
	.comm	ba,8,8
	.comm	TAKEN,4,4
	.comm	SR,4,4
	.comm	NOTTAKEN,4,4
	.comm	NODS,4,4
	.comm	HOST_CCREG,4,4
	.comm	CLOCK_DIVIDER,4,4
	.comm	CC_STUB,4,4
	.comm	CCREG,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_sh2_dynarec.c_cjump_assemble.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"match=%d\012\000"
	.align	2
.LC1:
	.ascii	"idle loop\012\000"
	.align	2
.LC2:
	.ascii	"branch: internal\012\000"
	.align	2
.LC3:
	.ascii	"branch: external\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cjump_assemble
	.syntax unified
	.arm
	.fpu softvfp
	.type	cjump_assemble, %function
cjump_assemble:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	mov	ip, r1
	ldr	r10, .L59
	ldr	r6, .L59+4
	ldr	r3, [r10]
	ldr	r2, [r6]
	add	r1, r3, r0, lsl #3
	ldr	r0, [r1, #4]
	ldr	r1, [r3, r4, lsl #3]
	ldr	r3, .L59+8
	sub	sp, sp, #28
	ldr	r2, [r2, r4, lsl #2]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r8, [ip]
	bl	match_bt
	mov	r5, r0
	ldr	r0, .L59+12
	mov	r1, r5
	bl	assem_debug
	ldr	r3, [r6]
	ldr	fp, .L59+16
	ldr	r0, [r3, r4, lsl #2]
	bl	internal_branch
	ldr	r3, [r6]
	ldr	r2, [fp]
	ldr	r3, [r3, r4, lsl #2]
	str	r0, [sp, #8]
	sub	r3, r3, r2
	cmp	r4, r3, asr #1
	lsl	r9, r4, #3
	beq	.L53
.L2:
	ldr	r3, .L59+20
	mov	r0, r8
	ldr	r1, [r3]
	bl	get_reg
	mov	r7, r0
	mvn	r0, r0
	lsr	r0, r0, #31
	bl	assert
	ldr	r3, .L59+24
	mov	r0, r8
	ldr	r1, [r3]
	bl	get_reg
	mov	r8, r0
	ldr	r3, .L59+28
	ldr	r0, [r3]
	sub	r0, r0, r8
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	clz	r2, r5
	ldr	r3, [r10]
	ldr	r0, .L59+32
	add	r3, r3, r9
	ldr	r1, [r3, #4]
	ldr	r0, [r0]
	ldr	r3, [fp]
	lsr	r2, r2, #5
	stm	sp, {r0, r2}
	add	r3, r3, r4, lsl #1
	mov	r0, r4
	add	r2, sp, #16
	bl	do_cc
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L3
	cmp	r5, #0
	bne	.L54
	ldr	r3, .L59+36
	mov	r0, r7
	mov	r1, #1
	str	r3, [sp, #12]
	bl	emit_testimm
	ldr	r3, [sp, #12]
	ldr	r2, [r3]
	ldr	r2, [r2, r4, lsl #2]
	cmp	r2, #9
	beq	.L9
	cmp	r2, #11
	beq	.L35
.L51:
	ldr	r7, .L59+40
.L11:
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L55
.L15:
	ldr	r3, [r10]
	ldr	r2, [r6]
	add	r1, r3, r9
	ldr	r0, [r1, #4]
	ldr	r2, [r2, r4, lsl #2]
	ldr	r1, [r3, r4, lsl #3]
	bl	store_regs_bt
	ldr	r3, [r10]
	ldr	r2, [r6]
	add	r1, r3, r9
	ldr	r0, [r1, #4]
	ldr	r2, [r2, r4, lsl #2]
	ldr	r1, [r3, r4, lsl #3]
	bl	load_regs_bt
	ldr	r3, [sp, #8]
	cmp	r3, #0
	bne	.L56
	ldr	r0, .L59+44
	bl	assem_debug
	ldr	r3, [r6]
	ldr	r1, [r3, r4, lsl #2]
.L18:
	ldr	r2, [sp, #8]
	ldr	r0, [r7]
	bl	add_to_linker
	mov	r0, #0
	bl	emit_jmp
.L19:
	mov	r0, r5
	ldr	r1, [r7]
	bl	set_jump_target
.L1:
	ldr	r3, .L59+8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L57
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, .L59+36
	mov	r0, r7
	mov	r1, #1
	str	r3, [sp, #12]
	bl	emit_testimm
	ldr	r3, [sp, #12]
	ldr	r2, [r3]
	ldr	r2, [r2, r4, lsl #2]
	cmp	r2, #9
	beq	.L58
	cmp	r2, #11
	beq	.L21
.L7:
	cmp	r5, #0
	beq	.L51
.L12:
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L1
	ldr	r1, .L59+48
	mov	r2, r8
	ldr	r1, [r1]
	mov	r0, r8
	mul	r1, r3, r1
	bl	emit_addimm
	b	.L1
.L56:
	ldr	r0, .L59+52
	bl	assem_debug
	ldr	r2, [r6]
	ldr	r3, [fp]
	ldr	r1, [r2, r4, lsl #2]
	ldr	r2, .L59+56
	sub	r3, r1, r3
	ldr	r2, [r2]
	asr	r3, r3, #1
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L18
	mov	r0, r4
	bl	ds_assemble_entry
	b	.L19
.L53:
	ldr	r0, .L59+60
	bl	assem_debug
	b	.L2
.L54:
	ldr	r2, .L59+64
	ldr	r1, .L59+48
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r2, r4, lsl #2]
	mov	r2, r8
	sub	r3, r0, r3
	mul	r1, r3, r1
	ldr	r3, .L59+36
	mov	r0, r8
	str	r3, [sp, #12]
	bl	emit_addimm
	mov	r0, r7
	mov	r1, #1
	bl	emit_testimm
	ldr	r3, [sp, #12]
	ldr	r2, [r3]
	ldr	r2, [r2, r4, lsl #2]
	cmp	r2, #9
	beq	.L10
	cmp	r2, #11
	bne	.L12
.L21:
	cmp	r5, #0
	ldr	r7, .L59+40
	beq	.L23
.L6:
	ldr	r3, [r6]
	ldr	r2, [sp, #8]
	ldr	r1, [r3, r4, lsl #2]
	ldr	r0, [r7]
	bl	add_to_linker
	mov	r0, #0
	bl	emit_jeq
	b	.L12
.L35:
	ldr	r7, .L59+40
.L23:
	mov	r0, #1
	ldr	r5, [r7]
	bl	emit_jne
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L15
.L55:
	ldr	r1, .L59+48
	mov	r2, r8
	ldr	r1, [r1]
	mov	r0, r8
	rsb	r1, r1, #0
	mul	r1, r3, r1
	bl	emit_addimm
	b	.L15
.L58:
	cmp	r5, #0
	bne	.L10
.L9:
	ldr	r7, .L59+40
	mov	r0, #1
	str	r3, [sp, #12]
	ldr	r5, [r7]
	bl	emit_jeq
	ldr	r3, [sp, #12]
	ldr	r3, [r3]
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #11
	bne	.L11
	b	.L23
.L10:
	ldr	r2, [r6]
	ldr	r7, .L59+40
	ldr	r1, [r2, r4, lsl #2]
	ldr	r0, [r7]
	ldr	r2, [sp, #8]
	str	r3, [sp, #12]
	bl	add_to_linker
	mov	r0, #0
	bl	emit_jne
	ldr	r3, [sp, #12]
	ldr	r3, [r3]
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #11
	bne	.L7
	b	.L6
.L57:
	bl	__stack_chk_fail
.L60:
	.align	2
.L59:
	.word	regs
	.word	ba
	.word	.LC4
	.word	.LC0
	.word	start
	.word	SR
	.word	CCREG
	.word	HOST_CCREG
	.word	NODS
	.word	opcode2
	.word	out
	.word	.LC3
	.word	CLOCK_DIVIDER
	.word	.LC2
	.word	is_ds
	.word	.LC1
	.word	ccadj
	.size	cjump_assemble, .-cjump_assemble
	.comm	start,4,4
	.comm	source,4,4
	.comm	regs,4,4
	.comm	out,4,4
	.comm	opcode2,4,4
	.comm	is_ds,4,4
	.comm	ccadj,4,4
	.comm	branch_regs,4,4
	.comm	ba,4,4
	.comm	TAKEN,4,4
	.comm	SR,4,4
	.comm	NOTTAKEN,4,4
	.comm	NODS,4,4
	.comm	HOST_CCREG,4,4
	.comm	CLOCK_DIVIDER,4,4
	.comm	CC_STUB,4,4
	.comm	CCREG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
