	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_SET_EXTERNAL                 ## -- Begin function S_SET_EXTERNAL
	.p2align	4, 0x90
_S_SET_EXTERNAL:                        ## @S_SET_EXTERNAL
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_LOCAL_SYMBOL_CHECK
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_local_symbol_convert
	movq	%rax, %rbx
LBB0_2:
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movq	_BSF_WEAK@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_6
## %bb.3:
	movq	_BSF_SECTION_SYM@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_5
## %bb.4:
	leaq	-32(%rbp), %rdi
	leaq	-20(%rbp), %rsi
	callq	_as_where
	movq	-32(%rbp), %rbx
	movl	-20(%rbp), %r14d
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_as_warn_where
	jmp	LBB0_6
LBB0_5:
	movq	_BSF_GLOBAL@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, (%rax)
	movq	_BSF_LOCAL@GOTPCREL(%rip), %rsi
	movl	(%rdx), %edx
	orl	(%rsi), %edx
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, (%rax)
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BSF_WEAK,4,2                   ## @BSF_WEAK
	.comm	_BSF_SECTION_SYM,4,2            ## @BSF_SECTION_SYM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"section symbols are already global"

	.comm	_BSF_GLOBAL,4,2                 ## @BSF_GLOBAL
	.comm	_BSF_LOCAL,4,2                  ## @BSF_LOCAL
	.comm	_an_external_name,8,3           ## @an_external_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_SET_EXTERNAL                 ; -- Begin function S_SET_EXTERNAL
	.p2align	2
_S_SET_EXTERNAL:                        ; @S_SET_EXTERNAL
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_LOCAL_SYMBOL_CHECK
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_local_symbol_convert
	mov	x19, x0
LBB0_2:
	ldr	x8, [x19]
	ldr	w10, [x8]
Lloh0:
	adrp	x9, _BSF_WEAK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BSF_WEAK@GOTPAGEOFF]
	ldr	w11, [x9]
	tst	w11, w10
	b.ne	LBB0_6
; %bb.3:
Lloh2:
	adrp	x11, _BSF_SECTION_SYM@GOTPAGE
Lloh3:
	ldr	x11, [x11, _BSF_SECTION_SYM@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_5
; %bb.4:
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_as_where
	ldr	x19, [sp, #8]
	ldr	w20, [sp, #4]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_as_warn_where
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x11, _BSF_GLOBAL@GOTPAGE
Lloh8:
	ldr	x11, [x11, _BSF_GLOBAL@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh10:
	adrp	x11, _BSF_LOCAL@GOTPAGE
Lloh11:
	ldr	x11, [x11, _BSF_LOCAL@GOTPAGEOFF]
	str	w10, [x8]
Lloh12:
	ldr	w11, [x11]
	ldr	w9, [x9]
	orr	w9, w9, w11
	bic	w9, w10, w9
	str	w9, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BSF_WEAK,4,2                   ; @BSF_WEAK
	.comm	_BSF_SECTION_SYM,4,2            ; @BSF_SECTION_SYM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"section symbols are already global"

	.comm	_BSF_GLOBAL,4,2                 ; @BSF_GLOBAL
	.comm	_BSF_LOCAL,4,2                  ; @BSF_LOCAL
	.comm	_an_external_name,8,3           ; @an_external_name
.subsections_via_symbols
