	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ada_coerce_ref
_ada_coerce_ref:                        ## @ada_coerce_ref
	.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	%rdi, %rbx
	callq	_VALUE_TYPE
	movl	%eax, %edi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_REF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_COERCE_REF
	movq	%rbx, %rdi
	callq	_unwrap_value
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_VALUE_TYPE
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_VALUE_ADDRESS
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_VALUE_OFFSET
	addq	%rax, %rbx
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ada_to_fixed_value             ## TAILCALL
LBB0_1:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_CODE_REF,8,3              ## @TYPE_CODE_REF
	.no_dead_strip	_ada_coerce_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ada_coerce_ref
_ada_coerce_ref:                        ; @ada_coerce_ref
	.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
	bl	_VALUE_TYPE
	bl	_TYPE_CODE
Lloh0:
	adrp	x8, _TYPE_CODE_REF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_CODE_REF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_COERCE_REF
	mov	x0, x19
	bl	_unwrap_value
	mov	x19, x0
	bl	_VALUE_TYPE
	mov	x20, x0
	mov	x0, x19
	bl	_VALUE_ADDRESS
	mov	x21, x0
	mov	x0, x19
	bl	_VALUE_OFFSET
	add	x2, x0, x21
	mov	x0, x20
	mov	w1, #0
	mov	x3, x19
	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	_ada_to_fixed_value
LBB0_2:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_CODE_REF,8,3              ; @TYPE_CODE_REF
	.no_dead_strip	_ada_coerce_ref
.subsections_via_symbols
