	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function use_related_value
_use_related_value:                     ## @use_related_value
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	cmpq	$0, (%rsi)
	je	LBB0_13
LBB0_5:
	movq	%r15, %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	8(%r12), %rsi
	movq	%r14, %rdi
	callq	_rtx_equal_p
	testq	%rax, %rax
	je	LBB0_7
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %r12
	testq	%r12, %r12
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r12, %r15
	jne	LBB0_6
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rdi
	callq	_REG_P
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
	jmp	LBB0_11
LBB0_2:
	movq	%r14, %rdi
	callq	_GET_CODE
	movq	_CONST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.3:
	movq	%r14, %rdi
	callq	_get_related_value
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_GET_MODE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_SAFE_HASH
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_GET_MODE
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_lookup
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_5
LBB0_13:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	callq	_get_integer_term
	movq	%rax, %r14
	movq	8(%r12), %rdi
	callq	_get_integer_term
	subq	%rax, %r14
	movq	8(%rbx), %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_plus_constant                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CONST,8,3                      ## @CONST
	.no_dead_strip	_use_related_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function use_related_value
_use_related_value:                     ; @use_related_value
	.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	x19, x0
	cbz	x1, LBB0_8
; %bb.1:
	mov	x20, x1
	ldr	x8, [x1]
	cbz	x8, LBB0_11
LBB0_2:
	mov	x21, x20
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x21]
	cmp	x21, #0
	ccmp	x20, x21, #4, ne
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x1, [x21, #8]
	mov	x0, x19
	bl	_rtx_equal_p
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x21, #24]
	cbz	x22, LBB0_3
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x22, #8]
	bl	_REG_P
	cbnz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x22, [x22, #16]
	cbnz	x22, LBB0_6
	b	LBB0_3
LBB0_8:
	mov	x0, x19
	bl	_GET_CODE
Lloh0:
	adrp	x8, _CONST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_get_related_value
	cbz	x0, LBB0_11
; %bb.10:
	mov	x20, x0
	bl	_GET_MODE
	mov	x1, x0
	mov	x0, x20
	bl	_SAFE_HASH
	mov	x21, x0
	mov	x0, x20
	bl	_GET_MODE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_lookup
	mov	x20, x0
	cbnz	x0, LBB0_2
LBB0_11:
	mov	x0, #0
	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
LBB0_12:
	mov	x0, x19
	bl	_get_integer_term
	mov	x19, x0
	ldr	x0, [x21, #8]
	bl	_get_integer_term
	sub	x1, x19, x0
	ldr	x0, [x22, #8]
	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
	b	_plus_constant
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CONST,8,3                      ; @CONST
	.no_dead_strip	_use_related_value
.subsections_via_symbols
