	.file	"extr_esp_efuse_utility.c_set_cnt_in_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_cnt_in_reg, @function
set_cnt_in_reg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	ebp, [rdi+rsi]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edi
	xor	edi, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	ebp, 32
	setle	dil
	call	assert@PLT
	xor	r8d, r8d
	cmp	ebp, ebx
	jle	.L1
	mov	edx, 1
	.p2align 4,,10
	.p2align 3
.L4:
	bt	r12d, ebx
	jc	.L3
	mov	eax, edx
	mov	ecx, ebx
	sal	eax, cl
	or	r8d, eax
	sub	QWORD PTR 0[r13], 1
	je	.L1
.L3:
	add	ebx, 1
	cmp	ebp, ebx
	jne	.L4
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r8d
	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
	.cfi_endproc
.LFE0:
	.size	set_cnt_in_reg, .-set_cnt_in_reg
	.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_esp_efuse_utility.c_set_cnt_in_reg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_cnt_in_reg, %function
set_cnt_in_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	add	r5, r0, r1
	cmp	r5, #32
	movgt	r0, #0
	movle	r0, #1
	mov	r6, r2
	mov	r7, r3
	bl	assert
	cmp	r5, r4
	mov	r0, #0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r3, #1
.L4:
	asr	ip, r6, r4
	tst	ip, #1
	bne	.L3
	ldr	ip, [r7]
	orr	r0, r0, r3, lsl r4
	sub	ip, ip, #1
	cmp	ip, #0
	str	ip, [r7]
	popeq	{r4, r5, r6, r7, r8, pc}
.L3:
	add	r4, r4, #1
	cmp	r5, r4
	bne	.L4
	pop	{r4, r5, r6, r7, r8, pc}
	.size	set_cnt_in_reg, .-set_cnt_in_reg
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
