	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rn_lookup                      ## -- Begin function rn_lookup
	.p2align	4, 0x90
_rn_lookup:                             ## @rn_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movl	8(%r14), %eax
	movq	(%r14), %rcx
	movl	(%rcx), %ecx
	movq	%rsi, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_rn_addmask
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	(%rax), %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_rn_match
	testq	%rax, %rax
	je	LBB0_10
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, 8(%rax)
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_10
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_rn_match
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %r14
	movq	(%rax), %rdi
	callq	_LEN
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_LEN
	cmpq	%rax, %rbx
	jne	LBB0_10
## %bb.8:
	movq	(%r14), %rbx
	movq	%r15, %rdi
	callq	_LEN
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_bcmp
	testq	%rax, %rax
	je	LBB0_14
LBB0_10:
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%eax, %eax
	cmpq	$0, 8(%r14)
	cmoveq	%r14, %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rn_lookup                      ; -- Begin function rn_lookup
	.p2align	2
_rn_lookup:                             ; @rn_lookup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x0
	cbz	x1, LBB0_5
; %bb.1:
	ldr	w8, [x20, #8]
	ldr	x9, [x20]
	ldr	w3, [x9]
	mov	x0, x1
	mov	x1, x8
	mov	w2, #1
	bl	_rn_addmask
	cbz	x0, LBB0_10
; %bb.2:
	ldr	x21, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_rn_match
	cbz	x0, LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #8]
	cmp	x8, x21
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x0, #16]
	cbnz	x0, LBB0_3
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_rn_match
	cbz	x0, LBB0_10
; %bb.6:
	mov	x20, x0
	ldr	x0, [x0]
	bl	_LEN
	mov	x21, x0
	mov	x0, x19
	bl	_LEN
	cmp	x21, x0
	b.ne	LBB0_8
; %bb.7:
	ldr	x21, [x20]
	mov	x0, x19
	bl	_LEN
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_bcmp
	cbz	x0, LBB0_9
LBB0_8:
	mov	x0, #0
	b	LBB0_10
LBB0_9:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	csel	x0, x20, xzr, eq
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
