	.file	"extr_assem_x64.c_alloc_x86_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	alloc_x86_reg
	.type	alloc_x86_reg, @function
alloc_x86_reg:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR HOST_REGS[rip]
	mov	r9, QWORD PTR [rdi]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movsx	r11d, cl
	movsx	rbx, cl
	test	eax, eax
	jle	.L5
	mov	r10d, edx
	xor	eax, eax
	xor	esi, esi
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	DWORD PTR ESP[rip], eax
	mov	ecx, eax
	je	.L3
	lea	r8, [r9+rax]
	cmp	BYTE PTR [r8], r10b
	jne	.L3
	mov	esi, DWORD PTR 8[rdi]
	mov	BYTE PTR [r8], -1
	mov	r9, QWORD PTR [rdi]
	sar	esi, cl
	and	esi, 1
.L3:
	add	rax, 1
	cmp	DWORD PTR HOST_REGS[rip], eax
	jg	.L4
	movsx	esi, sil
	mov	ecx, r11d
	sal	esi, cl
.L2:
	mov	ecx, r11d
	mov	eax, -2
	mov	BYTE PTR [r9+rbx], dl
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	rol	eax, cl
	mov	ecx, DWORD PTR 8[rdi]
	and	DWORD PTR 12[rdi], eax
	and	ecx, eax
	or	esi, ecx
	mov	DWORD PTR 8[rdi], esi
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	esi, esi
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	alloc_x86_reg, .-alloc_x86_reg
	.comm	HOST_REGS,4,4
	.comm	ESP,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_assem_x64.c_alloc_x86_reg.c"
	.text
	.align	2
	.global	alloc_x86_reg
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_x86_reg, %function
alloc_x86_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r5, .L9
	mov	lr, #0
	ldr	r1, [r5]
	ldr	r4, [r0]
	cmp	r1, #0
	ble	.L2
	mvn	r7, #0
	mov	r1, lr
	ldr	r6, .L9+4
.L4:
	ldr	ip, [r6]
	cmp	ip, r1
	beq	.L3
	ldrb	ip, [r4, r1]	@ zero_extendqisi2
	cmp	ip, r2
	ldreq	lr, [r0, #4]
	strbeq	r7, [r4, r1]
	asreq	lr, lr, r1
	ldreq	r4, [r0]
	andeq	lr, lr, #1
.L3:
	ldr	ip, [r5]
	add	r1, r1, #1
	cmp	ip, r1
	bgt	.L4
	lsl	lr, lr, r3
.L2:
	mov	r1, #1
	mvn	r1, r1, lsl r3
	strb	r2, [r4, r3]
	ldr	r3, [r0, #4]
	ldr	r2, [r0, #8]
	and	r3, r3, r1
	orr	lr, r3, lr
	and	r1, r1, r2
	str	lr, [r0, #4]
	str	r1, [r0, #8]
	pop	{r4, r5, r6, r7, pc}
.L10:
	.align	2
.L9:
	.word	HOST_REGS
	.word	ESP
	.size	alloc_x86_reg, .-alloc_x86_reg
	.comm	HOST_REGS,4,4
	.comm	ESP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
