	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reg_lookup
_reg_lookup:                            ## @reg_lookup
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movsbl	(%rbx), %edi
	callq	_is_name_beginner
	cmpq	$1, %rax
	sbbq	$-1, %rbx
	decq	%rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	1(%rbx), %edi
	incq	%rbx
	callq	_is_part_of_name
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movb	(%rbx), %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movb	$0, (%rbx)
	movq	(%r12), %rdi
	callq	_symbol_find
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_S_GET_SEGMENT
	movq	_reg_section@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.4:
	movq	%r13, %rdi
	callq	_S_GET_VALUE
	testl	%r15d, %eax
	je	LBB0_6
## %bb.5:
	movq	_RNUM_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	andl	%eax, %r13d
	testl	%r13d, %r13d
	jns	LBB0_14
	jmp	LBB0_15
LBB0_9:
	movq	_RTYPE_GP@GOTPCREL(%rip), %rax
	movl	$-1, %r13d
	testl	%r15d, (%rax)
	je	LBB0_15
## %bb.10:
	movq	_itbl_have_entries@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.11:
	movq	(%r12), %rax
	xorl	%edi, %edi
	cmpb	$36, (%rax)
	sete	%dil
	addq	%rax, %rdi
	leaq	-56(%rbp), %rsi
	callq	_itbl_get_reg_val
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	_RNUM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	-56(%rbp), %r13d
	testl	%r13d, %r13d
	js	LBB0_15
LBB0_14:
	movq	%rbx, (%r12)
	jmp	LBB0_17
LBB0_6:
	movq	_RTYPE_VEC@GOTPCREL(%rip), %rcx
	movl	$-1, %r13d
	testl	%r15d, (%rcx)
	je	LBB0_15
## %bb.7:
	movl	%eax, %ecx
	andl	$-2, %ecx
	movq	_RTYPE_GP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	$2, %edx
	cmpl	%edx, %ecx
	jne	LBB0_15
## %bb.8:
	movq	_RNUM_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	andl	%eax, %r13d
	addl	$-2, %r13d
	testl	%r13d, %r13d
	jns	LBB0_14
LBB0_15:
	movq	_RWARN@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_17
## %bb.16:
	movq	(%r12), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_as_warn
LBB0_17:
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, (%rbx)
	testq	%r14, %r14
	je	LBB0_19
## %bb.18:
	movl	%r13d, (%r14)
LBB0_19:
	notl	%r13d
	shrl	$31, %r13d
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reg_section,8,3                ## @reg_section
	.comm	_RNUM_MASK,4,2                  ## @RNUM_MASK
	.comm	_RTYPE_VEC,4,2                  ## @RTYPE_VEC
	.comm	_RTYPE_GP,4,2                   ## @RTYPE_GP
	.comm	_itbl_have_entries,8,3          ## @itbl_have_entries
	.comm	_RWARN,4,2                      ## @RWARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unrecognized register name `%s'"

	.no_dead_strip	_reg_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reg_lookup
_reg_lookup:                            ; @reg_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0]
	mov	x23, x22
	ldrsb	w0, [x23], #1
	bl	_is_name_beginner
	cmp	x0, #0
	csel	x8, x22, x23, eq
	sub	x23, x8, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x23, #1]!
	bl	_is_part_of_name
	cbnz	x0, LBB0_1
; %bb.2:
	ldrb	w24, [x23]
	strb	wzr, [x23]
	ldr	x0, [x20]
	bl	_symbol_find
	cbz	x0, LBB0_6
; %bb.3:
	mov	x22, x0
	bl	_S_GET_SEGMENT
Lloh0:
	adrp	x8, _reg_section@GOTPAGE
Lloh1:
	ldr	x8, [x8, _reg_section@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x22
	bl	_S_GET_VALUE
	tst	w0, w21
	b.eq	LBB0_10
; %bb.5:
Lloh3:
	adrp	x8, _RNUM_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RNUM_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w22, w8, w0
	tbz	w22, #31, LBB0_9
	b	LBB0_14
LBB0_6:
Lloh6:
	adrp	x8, _RTYPE_GP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTYPE_GP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w21
Lloh9:
	adrp	x9, _itbl_have_entries@GOTPAGE
Lloh10:
	ldr	x9, [x9, _itbl_have_entries@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_13
; %bb.7:
	ldr	x8, [x20]
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #36
	csel	x0, x8, x9, ne
	add	x1, sp, #8
	bl	_itbl_get_reg_val
	cbz	x0, LBB0_13
; %bb.8:
	ldr	w8, [sp, #8]
Lloh12:
	adrp	x9, _RNUM_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RNUM_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w22, w9, w8
	tbnz	w22, #31, LBB0_14
LBB0_9:
	str	x23, [x20]
	b	LBB0_16
LBB0_10:
Lloh15:
	adrp	x8, _RTYPE_VEC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RTYPE_VEC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.11:
	and	w8, w0, #0xfffffffe
Lloh18:
	adrp	x9, _RTYPE_GP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RTYPE_GP@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w9, w9, #0x2
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
Lloh21:
	adrp	x8, _RNUM_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RNUM_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w22, w8, #2
	tbz	w22, #31, LBB0_9
	b	LBB0_14
LBB0_13:
	mov	w22, #-1
LBB0_14:
Lloh24:
	adrp	x8, _RWARN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RWARN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_16
; %bb.15:
	ldr	x1, [x20]
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_as_warn
LBB0_16:
	strb	w24, [x23]
	cbz	x19, LBB0_18
; %bb.17:
	str	w22, [x19]
LBB0_18:
	mvn	w8, w22
	lsr	w0, w8, #31
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_reg_section,8,3                ; @reg_section
	.comm	_RNUM_MASK,4,2                  ; @RNUM_MASK
	.comm	_RTYPE_VEC,4,2                  ; @RTYPE_VEC
	.comm	_RTYPE_GP,4,2                   ; @RTYPE_GP
	.comm	_itbl_have_entries,8,3          ; @itbl_have_entries
	.comm	_RWARN,4,2                      ; @RWARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unrecognized register name `%s'"

	.no_dead_strip	_reg_lookup
.subsections_via_symbols
