	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_declare_weak                   ## -- Begin function declare_weak
	.p2align	4, 0x90
_declare_weak:                          ## @declare_weak
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	callq	_TREE_PUBLIC
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%ebx, %edi
	callq	_TREE_CODE
	movq	_FUNCTION_DECL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movl	%ebx, %edi
	callq	_TREE_ASM_WRITTEN
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_6:
	movq	_SUPPORTS_WEAK@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.7:
	movl	%ebx, %edi
	callq	_DECL_WEAK
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	_weak_decls@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_tree_cons
	movl	%eax, (%r14)
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	movl	%ebx, %esi
	callq	_error
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movl	%ebx, %edx
	callq	_warning
LBB0_10:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mark_weak                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"weak declaration of %q+D must be public"

	.comm	_FUNCTION_DECL,8,3              ## @FUNCTION_DECL
L_.str.1:                               ## @.str.1
	.asciz	"weak declaration of %q+D must precede definition"

	.comm	_SUPPORTS_WEAK,8,3              ## @SUPPORTS_WEAK
	.comm	_weak_decls,4,2                 ## @weak_decls
L_.str.2:                               ## @.str.2
	.asciz	"weak declaration of %q+D not supported"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_declare_weak                   ; -- Begin function declare_weak
	.p2align	2
_declare_weak:                          ; @declare_weak
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_TREE_PUBLIC
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_TREE_CODE
Lloh0:
	adrp	x8, _FUNCTION_DECL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FUNCTION_DECL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_TREE_ASM_WRITTEN
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x8, _SUPPORTS_WEAK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SUPPORTS_WEAK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_DECL_WEAK
	cbnz	w0, LBB0_10
; %bb.6:
Lloh8:
	adrp	x20, _weak_decls@GOTPAGE
Lloh9:
	ldr	x20, [x20, _weak_decls@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, #0
	mov	x1, x19
	bl	_tree_cons
	str	w0, [x20]
	b	LBB0_10
LBB0_7:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
LBB0_8:
	mov	x1, x19
	bl	_error
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #0
	mov	x2, x19
	bl	_warning
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mark_weak
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"weak declaration of %q+D must be public"

	.comm	_FUNCTION_DECL,8,3              ; @FUNCTION_DECL
l_.str.1:                               ; @.str.1
	.asciz	"weak declaration of %q+D must precede definition"

	.comm	_SUPPORTS_WEAK,8,3              ; @SUPPORTS_WEAK
	.comm	_weak_decls,4,2                 ; @weak_decls
l_.str.2:                               ; @.str.2
	.asciz	"weak declaration of %q+D not supported"

.subsections_via_symbols
