	.file	"extr_elf32-arm.c_calculate_group_reloc_mask.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	calculate_group_reloc_mask, @function
calculate_group_reloc_mask:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	test	esi, esi
	js	.L8
	lea	r9d, 1[rsi]
	xor	edx, edx
	xor	esi, esi
	mov	r8d, 3
	mov	r11d, 255
	mov	r10d, 32
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	not	eax
	add	esi, 1
	and	edi, eax
	cmp	esi, r9d
	je	.L2
.L7:
	xor	r12d, r12d
	xor	eax, eax
	test	edi, edi
	je	.L3
	mov	ecx, 30
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, r8d
	sal	eax, cl
	test	eax, edi
	jne	.L4
	sub	ecx, 2
	cmp	ecx, -2
	jne	.L5
	movzx	eax, dil
	mov	r12d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	sub	ecx, 6
	mov	eax, r11d
	cmovs	ecx, edx
	sal	eax, cl
	and	eax, edi
	mov	r12d, eax
	sar	r12d, cl
	cmp	eax, 255
	jle	.L3
	mov	r14d, r10d
	not	eax
	add	esi, 1
	sub	r14d, ecx
	and	edi, eax
	mov	ecx, r14d
	sar	ecx
	sal	ecx, 8
	or	r12d, ecx
	cmp	esi, r9d
	jne	.L7
.L2:
	mov	eax, r12d
	mov	DWORD PTR [rbx], edi
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	xor	r12d, r12d
	mov	DWORD PTR [rbx], edi
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	calculate_group_reloc_mask, .-calculate_group_reloc_mask
	.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_elf32-arm.c_calculate_group_reloc_mask.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_group_reloc_mask, %function
calculate_group_reloc_mask:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	mov	ip, r0
	blt	.L8
	push	{r4, r5, r6, lr}
	mov	lr, #0
	mov	r4, #3
	mov	r6, #255
	add	r5, r1, #1
	b	.L7
.L3:
	add	lr, lr, #1
	cmp	lr, r5
	bic	ip, ip, r1
	beq	.L19
.L7:
	cmp	ip, #0
	moveq	r0, ip
	moveq	r1, ip
	beq	.L3
	mov	r3, #30
.L5:
	ands	r1, ip, r4, lsl r3
	bne	.L4
	sub	r3, r3, #2
	cmn	r3, #2
	bne	.L5
	and	r1, ip, #255
	mov	r0, r1
	b	.L3
.L4:
	sub	r3, r3, #6
	bic	r3, r3, r3, asr #31
	and	r1, ip, r6, lsl r3
	cmp	r1, #255
	asr	r0, r1, r3
	rsbgt	r3, r3, #32
	asrgt	r3, r3, #1
	add	lr, lr, #1
	orrgt	r0, r0, r3, lsl #8
	cmp	lr, r5
	bic	ip, ip, r1
	bne	.L7
.L19:
	str	ip, [r2]
	pop	{r4, r5, r6, pc}
.L8:
	mov	r0, #0
	str	ip, [r2]
	bx	lr
	.size	calculate_group_reloc_mask, .-calculate_group_reloc_mask
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
