	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_register
_lookup_register:                       ## @lookup_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_arc_ext_operands@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%edi, 8(%rax)
	jne	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rsi, 16(%rax)
	jne	LBB0_1
## %bb.4:
	addq	$8, %rax
	popq	%rbp
	retq
LBB0_5:
	movq	_REG@GOTPCREL(%rip), %rcx
	movq	_arc_reg_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%edi, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_REG_AC@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	je	LBB0_7
## %bb.8:
	movq	_arc_reg_names_count@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	testq	%rcx, %rcx
	jle	LBB0_13
## %bb.9:
	shlq	$4, %rcx
	addq	%rax, %rcx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$16, %rax
	cmpq	%rcx, %rax
	jae	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rax)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	%rsi, 8(%rax)
	jne	LBB0_12
## %bb.14:
	popq	%rbp
	retq
LBB0_7:
	shlq	$4, %rsi
	addq	%rsi, %rax
	popq	%rbp
	retq
LBB0_13:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_arc_ext_operands,8,3           ## @arc_ext_operands
	.comm	_REG,4,2                        ## @REG
	.comm	_REG_AC,4,2                     ## @REG_AC
	.comm	_arc_reg_names,8,3              ## @arc_reg_names
	.comm	_arc_reg_names_count,4,2        ## @arc_reg_names_count
	.no_dead_strip	_lookup_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_register
_lookup_register:                       ; @lookup_register
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _arc_ext_operands@GOTPAGE
Lloh1:
	ldr	x8, [x8, _arc_ext_operands@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	cbnz	x9, LBB0_4
LBB0_1:
Lloh3:
	adrp	x8, _REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x8, _REG_AC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_AC@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x8]
Lloh9:
	adrp	x8, _arc_reg_names@GOTPAGE
Lloh10:
	ldr	x8, [x8, _arc_reg_names@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	w9, w0
	ccmp	w10, w0, #4, ne
	b.ne	LBB0_7
; %bb.2:
	add	x0, x8, x1, lsl #4
	ret
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x9]
	cbz	x9, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	ldr	w10, [x8, #8]!
	cmp	w10, w0
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x9, #16]
	cmp	x10, x1
	b.ne	LBB0_3
LBB0_6:
	mov	x0, x8
	ret
LBB0_7:
Lloh12:
	adrp	x9, _arc_reg_names_count@GOTPAGE
Lloh13:
	ldr	x9, [x9, _arc_reg_names_count@GOTPAGEOFF]
Lloh14:
	ldrsw	x9, [x9]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.8:
	add	x9, x8, x9, lsl #4
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x8, #16
	cmp	x8, x9
	b.hs	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8]
	cmp	w10, w0
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [x8, #8]
	cmp	x10, x1
	b.ne	LBB0_9
	b	LBB0_6
LBB0_12:
	mov	x8, #0
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_arc_ext_operands,8,3           ; @arc_ext_operands
	.comm	_REG,4,2                        ; @REG
	.comm	_REG_AC,4,2                     ; @REG_AC
	.comm	_arc_reg_names,8,3              ; @arc_reg_names
	.comm	_arc_reg_names_count,4,2        ; @arc_reg_names_count
	.no_dead_strip	_lookup_register
.subsections_via_symbols
