	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reg_name_search
_reg_name_search:                       ## @reg_name_search
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r15
	decl	%r12d
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	decl	%ebx
	movl	%ebx, %r12d
	cmpl	%r12d, %r13d
	jg	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r13), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movslq	%ebx, %r14
	movl	4(%r15,%r14,8), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_strcasecmp
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	movl	%ebx, %r13d
	cmpl	%r12d, %r13d
	jle	LBB0_1
LBB0_6:
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_8:
	movl	(%r15,%r14,8), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_reg_name_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reg_name_search
_reg_name_search:                       ; @reg_name_search
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x0
	mov	w22, #0
	sub	w21, w1, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w21, w23, #1
	cmp	w22, w21
	b.gt	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w21, w22
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w9, w8, #1
	sbfx	x23, x8, #1, #31
	add	x8, x19, w9, sxtw #3
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_strcasecmp
	tbnz	w0, #31, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w23, #1
	cmp	w22, w21
	b.le	LBB0_2
LBB0_5:
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
	lsl	x8, x23, #3
	ldr	w0, [x19, x8]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_reg_name_search
.subsections_via_symbols
