	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_x86_reg                  ## -- Begin function alloc_x86_reg
	.p2align	4, 0x90
_alloc_x86_reg:                         ## @alloc_x86_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_HOST_REGS@GOTPCREL(%rip), %r8
	movl	(%r8), %r11d
	testl	%r11d, %r11d
	jle	LBB0_1
## %bb.2:
	xorl	%esi, %esi
	movq	_ESP@GOTPCREL(%rip), %r10
	xorl	%r9d, %r9d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	movslq	%r11d, %rax
	cmpq	%rax, %rsi
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10), %eax
	cmpq	%rax, %rsi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rdi), %rbx
	cmpb	%dl, (%rbx,%rsi)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rdi), %eax
	btl	%esi, %eax
	setb	%r9b
	movb	$-1, (%rbx,%rsi)
	movl	(%r8), %r11d
	jmp	LBB0_6
LBB0_1:
	xorl	%r9d, %r9d
LBB0_7:
	movq	(%rdi), %rax
	movsbq	%cl, %rcx
	movl	$-2, %esi
	roll	%cl, %esi
	movb	%dl, (%rax,%rcx)
	movl	8(%rdi), %eax
	btrl	%ecx, %eax
	movzbl	%r9b, %edx
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, 8(%rdi)
	andl	%esi, 12(%rdi)
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_REGS,4,2                  ## @HOST_REGS
	.comm	_ESP,4,2                        ## @ESP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_x86_reg                  ; -- Begin function alloc_x86_reg
	.p2align	2
_alloc_x86_reg:                         ; @alloc_x86_reg
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _HOST_REGS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HOST_REGS@GOTPAGEOFF]
	ldr	w11, [x9]
	cmp	w11, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x10, #0
	mov	w8, #0
Lloh2:
	adrp	x12, _ESP@GOTPAGE
Lloh3:
	ldr	x12, [x12, _ESP@GOTPAGEOFF]
	mov	w13, #255
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x10, w11, sxtw
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x12]
	cmp	x10, x14
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x0]
	ldrb	w15, [x14, x10]
	cmp	w15, w2, uxtb
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x0, #8]
	lsr	w8, w8, w10
	and	w8, w8, #0x1
	strb	w13, [x14, x10]
	ldr	w11, [x9]
	b	LBB0_2
LBB0_6:
	mov	w8, #0
LBB0_7:
	ldr	x9, [x0]
	strb	w2, [x9, w3, sxtw]
	mov	w9, #1
	lsl	w9, w9, w3
	ldp	w10, w11, [x0, #8]
	bic	w10, w10, w9
	and	w8, w8, #0xff
	lsl	w8, w8, w3
	orr	w8, w10, w8
	bic	w9, w11, w9
	stp	w8, w9, [x0, #8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_REGS,4,2                  ; @HOST_REGS
	.comm	_ESP,4,2                        ; @ESP
.subsections_via_symbols
