	.file	"extr_arm.c_arm_compute_save_reg0_reg12_mask.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	arm_compute_save_reg0_reg12_mask, @function
arm_compute_save_reg0_reg12_mask:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	arm_current_func_type@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_INTERRUPT@PLT
	test	rax, rax
	jne	.L21
	mov	rdx, QWORD PTR regs_ever_live[rip]
	mov	rsi, QWORD PTR call_used_regs[rip]
	xor	eax, eax
	xor	r12d, r12d
	mov	edi, 1
	.p2align 4,,10
	.p2align 3
.L9:
	cmp	QWORD PTR [rdx+rax*8], 0
	mov	ecx, eax
	je	.L8
	cmp	QWORD PTR [rsi+rax*8], 0
	jne	.L8
	mov	ebx, edi
	sal	ebx, cl
	movsx	rcx, ebx
	or	r12, rcx
.L8:
	add	rax, 1
	cmp	rax, 11
	jne	.L9
	mov	eax, DWORD PTR TARGET_APCS_FRAME[rip]
	or	eax, DWORD PTR frame_pointer_needed[rip]
	jne	.L10
	mov	rcx, QWORD PTR HARD_FRAME_POINTER_REGNUM[rip]
	cmp	QWORD PTR [rdx+rcx*8], 0
	je	.L10
	cmp	QWORD PTR [rsi+rcx*8], 0
	jne	.L10
	mov	eax, 1
	sal	eax, cl
	cdqe
	or	r12, rax
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	QWORD PTR flag_pic[rip], 0
	jne	.L22
.L7:
	cmp	QWORD PTR current_function_calls_eh_return[rip], 0
	je	.L1
	xor	ebp, ebp
	mov	ebx, 1
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L23:
	mov	ecx, eax
	mov	esi, ebx
	add	ebp, 1
	sal	esi, cl
	movsx	rax, esi
	or	r12, rax
.L12:
	mov	edi, ebp
	call	EH_RETURN_DATA_REGNO@PLT
	cmp	DWORD PTR INVALID_REGNUM[rip], eax
	jne	.L23
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	eax, DWORD PTR TARGET_SINGLE_PIC_BASE[rip]
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR INVALID_REGNUM[rip]
	cmp	DWORD PTR arm_pic_register[rip], eax
	je	.L7
	movsx	rax, DWORD PTR PIC_OFFSET_TABLE_REGNUM[rip]
	mov	rcx, rax
	mov	rax, QWORD PTR [rdx+rax*8]
	or	rax, QWORD PTR current_function_uses_pic_offset_table[rip]
	je	.L7
	mov	eax, 1
	sal	eax, cl
	cdqe
	or	r12, rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbp
	call	ARM_FUNC_TYPE@PLT
	xor	esi, esi
	cmp	rax, QWORD PTR ARM_FT_FIQ[rip]
	mov	rdi, QWORD PTR regs_ever_live[rip]
	setne	sil
	mov	r9d, DWORD PTR current_function_is_leaf[rip]
	xor	eax, eax
	xor	r12d, r12d
	mov	r10, QWORD PTR call_used_regs[rip]
	lea	esi, 7[rsi+rsi*4]
	mov	r8d, 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, rdx
.L6:
	cmp	QWORD PTR [rdi+rax*8], 0
	mov	ecx, eax
	jne	.L4
	test	r9d, r9d
	jne	.L5
	cmp	QWORD PTR [r10+rax*8], 0
	je	.L5
.L4:
	mov	edx, r8d
	sal	edx, cl
	movsx	rdx, edx
	or	r12, rdx
.L5:
	lea	rdx, 1[rax]
	cmp	rax, rsi
	jne	.L14
	cmp	QWORD PTR flag_pic[rip], 0
	je	.L7
	mov	edx, DWORD PTR TARGET_SINGLE_PIC_BASE[rip]
	test	edx, edx
	jne	.L7
	mov	eax, DWORD PTR INVALID_REGNUM[rip]
	cmp	DWORD PTR arm_pic_register[rip], eax
	je	.L7
	cmp	QWORD PTR current_function_uses_pic_offset_table[rip], 0
	je	.L7
	mov	ecx, DWORD PTR PIC_OFFSET_TABLE_REGNUM[rip]
	mov	eax, 1
	sal	eax, cl
	cdqe
	or	r12, rax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	arm_compute_save_reg0_reg12_mask, .-arm_compute_save_reg0_reg12_mask
	.comm	regs_ever_live,8,8
	.comm	frame_pointer_needed,4,4
	.comm	flag_pic,8,8
	.comm	current_function_uses_pic_offset_table,8,8
	.comm	current_function_is_leaf,4,4
	.comm	current_function_calls_eh_return,8,8
	.comm	call_used_regs,8,8
	.comm	arm_pic_register,4,4
	.comm	TARGET_SINGLE_PIC_BASE,4,4
	.comm	TARGET_APCS_FRAME,4,4
	.comm	PIC_OFFSET_TABLE_REGNUM,4,4
	.comm	INVALID_REGNUM,4,4
	.comm	HARD_FRAME_POINTER_REGNUM,8,8
	.comm	ARM_FT_FIQ,8,8
	.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_arm.c_arm_compute_save_reg0_reg12_mask.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arm_compute_save_reg0_reg12_mask, %function
arm_compute_save_reg0_reg12_mask:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	arm_current_func_type
	mov	r4, r0
	bl	IS_INTERRUPT
	cmp	r0, #0
	bne	.L42
	mov	ip, #1
	mov	r4, r0
	ldr	r2, .L45
	ldr	r3, .L45+4
	ldr	lr, [r2]
	ldr	r1, [r3]
	sub	r3, lr, #4
.L9:
	ldr	r2, [r3, #4]!
	cmp	r2, #0
	beq	.L8
	ldr	r2, [r1, r0, lsl #2]
	cmp	r2, #0
	orreq	r4, r4, ip, lsl r0
.L8:
	add	r0, r0, #1
	cmp	r0, #11
	bne	.L9
	ldr	r2, .L45+8
	ldr	r3, .L45+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	orrs	r3, r2, r3
	bne	.L10
	ldr	r3, .L45+16
	ldr	r3, [r3]
	ldr	r2, [lr, r3, lsl #2]
	cmp	r2, #0
	beq	.L10
	ldr	r2, [r1, r3, lsl #2]
	cmp	r2, #0
	moveq	r2, #1
	orreq	r4, r4, r2, lsl r3
.L10:
	ldr	r3, .L45+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L43
.L7:
	ldr	r3, .L45+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L1
	mov	r5, #0
	mov	r7, #1
	ldr	r6, .L45+28
	b	.L12
.L44:
	orr	r4, r4, r7, lsl r0
.L12:
	mov	r0, r5
	bl	EH_RETURN_DATA_REGNO
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r0
	bne	.L44
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L43:
	ldr	r3, .L45+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L45+36
	ldr	r6, .L45+28
	ldr	r2, [r3]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L7
	ldr	r3, .L45+40
	ldr	r2, .L45+44
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [lr, r3, lsl #2]
	orrs	r2, r1, r2
	movne	r2, #1
	orrne	r4, r4, r2, lsl r3
	b	.L7
.L42:
	mov	r0, r4
	bl	ARM_FUNC_TYPE
	mov	r2, #0
	ldr	r3, .L45+48
	mov	r4, r2
	ldr	r3, [r3]
	mov	ip, #1
	cmp	r0, r3
	moveq	r0, #28
	movne	r0, #48
	ldr	r3, .L45
	ldr	lr, .L45+52
	ldr	r1, .L45+4
	ldr	r3, [r3]
	ldr	lr, [lr]
	ldr	r5, [r1]
	add	r0, r3, r0
	sub	r3, r3, #4
.L6:
	ldr	r1, [r3, #4]!
	cmp	r1, #0
	bne	.L4
	cmp	lr, #0
	bne	.L5
	ldr	r1, [r5, r2, lsl #2]
	cmp	r1, #0
	beq	.L5
.L4:
	orr	r4, r4, ip, lsl r2
.L5:
	cmp	r0, r3
	add	r2, r2, #1
	bne	.L6
	ldr	r3, .L45+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L45+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L45+36
	ldr	r6, .L45+28
	ldr	r2, [r3]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L7
	ldr	r3, .L45+44
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r2, #1
	ldrne	r3, .L45+40
	ldrne	r3, [r3]
	orrne	r4, r4, r2, lsl r3
	b	.L7
.L46:
	.align	2
.L45:
	.word	regs_ever_live
	.word	call_used_regs
	.word	TARGET_APCS_FRAME
	.word	frame_pointer_needed
	.word	HARD_FRAME_POINTER_REGNUM
	.word	flag_pic
	.word	current_function_calls_eh_return
	.word	INVALID_REGNUM
	.word	TARGET_SINGLE_PIC_BASE
	.word	arm_pic_register
	.word	PIC_OFFSET_TABLE_REGNUM
	.word	current_function_uses_pic_offset_table
	.word	ARM_FT_FIQ
	.word	current_function_is_leaf
	.size	arm_compute_save_reg0_reg12_mask, .-arm_compute_save_reg0_reg12_mask
	.comm	regs_ever_live,4,4
	.comm	frame_pointer_needed,4,4
	.comm	flag_pic,4,4
	.comm	current_function_uses_pic_offset_table,4,4
	.comm	current_function_is_leaf,4,4
	.comm	current_function_calls_eh_return,4,4
	.comm	call_used_regs,4,4
	.comm	arm_pic_register,4,4
	.comm	TARGET_SINGLE_PIC_BASE,4,4
	.comm	TARGET_APCS_FRAME,4,4
	.comm	PIC_OFFSET_TABLE_REGNUM,4,4
	.comm	INVALID_REGNUM,4,4
	.comm	HARD_FRAME_POINTER_REGNUM,4,4
	.comm	ARM_FT_FIQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
