	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_function
_add_function:                          ## @add_function
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	cmpq	%rbx, %rdi
	je	LBB0_7
## %bb.3:
	callq	_is_overloaded_fn
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_is_overloaded_fn
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_build_overload
	movq	%rax, (%r14)
	jmp	LBB0_7
LBB0_1:
	movq	%rbx, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_6:
	movq	(%r14), %rdi
	callq	_OVL_CURRENT
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_is_overloaded_fn
	testq	%rax, %rax
	movq	%rbx, %rsi
	cmoveq	%r15, %rsi
	cmoveq	%rbx, %r15
	leaq	L_.str(%rip), %rdi
	callq	_error
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_error
	movq	8(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_error
	movl	$1, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%q+D is not a function,"

L_.str.1:                               ## @.str.1
	.asciz	"  conflict with %q+D"

L_.str.2:                               ## @.str.2
	.asciz	"  in call to %qD"

	.no_dead_strip	_add_function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_function
_add_function:                          ; @add_function
	.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, x1
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.1:
	cmp	x0, x20
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_8
LBB0_3:
	str	x20, [x19]
	b	LBB0_8
LBB0_4:
	bl	_is_overloaded_fn
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_is_overloaded_fn
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_build_overload
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_8
LBB0_7:
	ldr	x0, [x19]
	bl	_OVL_CURRENT
	mov	x21, x0
	bl	_is_overloaded_fn
	cmp	x0, #0
	csel	x1, x21, x20, eq
	csel	x20, x20, x21, eq
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_error
	ldr	x1, [x19, #8]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
	mov	w0, #1
LBB0_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
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%q+D is not a function,"

l_.str.1:                               ; @.str.1
	.asciz	"  conflict with %q+D"

l_.str.2:                               ; @.str.2
	.asciz	"  in call to %qD"

	.no_dead_strip	_add_function
.subsections_via_symbols
