	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_frob_symbol                ## -- Begin function elf_frob_symbol
	.p2align	4, 0x90
_elf_frob_symbol:                       ## @elf_frob_symbol
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_symbol_get_obj
	movq	%rax, %r12
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	(%rax), %ecx
	cmpl	$129, %ecx
	je	LBB0_4
## %bb.2:
	cmpl	$128, %ecx
	jne	LBB0_5
## %bb.3:
	movq	16(%rax), %rdi
	callq	_S_GET_VALUE
	movq	%rax, %rbx
	movq	8(%r12), %rax
	addq	8(%rax), %rbx
	movq	24(%rax), %rdi
	callq	_S_GET_VALUE
	subq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_S_SET_SIZE
	jmp	LBB0_6
LBB0_4:
	movq	16(%rax), %rdi
	callq	_S_GET_VALUE
	movq	8(%r12), %rcx
	addq	8(%rcx), %rax
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_S_SET_SIZE
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_as_bad
LBB0_6:
	movq	8(%r12), %rdi
	callq	_free
	movq	$0, 8(%r12)
LBB0_7:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.8:
	movq	_ELF_VER_CHR@GOTPCREL(%rip), %r13
	movsbl	(%r13), %esi
	callq	_strchr
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_know
	movq	%r14, %rdi
	callq	_S_IS_DEFINED
	movb	1(%rbx), %cl
	movb	(%r13), %dl
	testl	%eax, %eax
	je	LBB0_9
## %bb.12:
	cmpb	%dl, %cl
	jne	LBB0_15
## %bb.13:
	cmpb	%cl, 2(%rbx)
	jne	LBB0_15
## %bb.14:
	leaq	2(%rbx), %r15
	addq	$3, %rbx
	movq	%rbx, %rdi
	callq	_strlen
	incl	%eax
	movslq	%eax, %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_memmove
	jmp	LBB0_11
LBB0_15:
	movq	(%r12), %rdi
	callq	_symbol_find_or_make
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_S_GET_SEGMENT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_S_SET_SEGMENT
	movq	%r14, %rdi
	callq	_S_GET_VALUE
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_symbol_get_frag
	subq	(%rax), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_S_SET_VALUE
	movq	%r14, %rdi
	callq	_symbol_get_frag
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_symbol_set_frag
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_copy_symbol_attributes
	movq	%r14, %rdi
	callq	_S_GET_OTHER
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_S_SET_OTHER
	movq	%r14, %rdi
	callq	_S_IS_WEAK
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	_S_SET_WEAK
LBB0_17:
	movq	%r14, %rdi
	callq	_S_IS_EXTERNAL
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	callq	_S_SET_EXTERNAL
	jmp	LBB0_19
LBB0_9:
	cmpb	%dl, %cl
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	(%r12), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_as_bad
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_11:
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_S_SET_NAME
LBB0_19:
	movq	%r14, %rdi
	callq	_S_IS_WEAK
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	callq	_S_IS_COMMON
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_S_GET_NAME
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_as_bad                         ## TAILCALL
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".size expression too complicated to fix up"

	.comm	_ELF_VER_CHR,1,0                ## @ELF_VER_CHR
L_.str.1:                               ## @.str.1
	.asciz	"invalid attempt to declare external version name as default in symbol `%s'"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.2:                               ## @.str.2
	.asciz	"symbol `%s' can not be both weak and common"

	.comm	_BSF_FUNCTION,4,2               ## @BSF_FUNCTION
	.comm	_BSF_OBJECT,4,2                 ## @BSF_OBJECT
	.comm	_ECOFF_DEBUGGING,8,3            ## @ECOFF_DEBUGGING
	.comm	_TARGET_OS,4,2                  ## @TARGET_OS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_frob_symbol                ; -- Begin function elf_frob_symbol
	.p2align	2
_elf_frob_symbol:                       ; @elf_frob_symbol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	bl	_symbol_get_obj
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	w9, [x8]
	cmp	w9, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w9, #128
	b.ne	LBB0_6
; %bb.3:
	ldr	x0, [x8, #16]
	bl	_S_GET_VALUE
	ldr	x8, [x20, #8]
	ldr	x9, [x8, #8]
	add	x22, x9, x0
	ldr	x0, [x8, #24]
	bl	_S_GET_VALUE
	sub	x1, x22, x0
	b	LBB0_5
LBB0_4:
	ldr	x0, [x8, #16]
	bl	_S_GET_VALUE
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	add	x1, x8, x0
LBB0_5:
	mov	x0, x19
	bl	_S_SET_SIZE
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_as_bad
LBB0_7:
	ldr	x0, [x20, #8]
	bl	_free
	str	xzr, [x20, #8]
LBB0_8:
	ldr	x0, [x20]
	cbz	x0, LBB0_20
; %bb.9:
Lloh2:
	adrp	x23, _ELF_VER_CHR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ELF_VER_CHR@GOTPAGEOFF]
	ldrsb	w1, [x23]
	bl	_strchr
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_know
	mov	x0, x19
	bl	_S_IS_DEFINED
	ldrb	w8, [x22, #1]
	ldrb	w9, [x23]
	cbz	w0, LBB0_17
; %bb.10:
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.11:
	mov	x21, x22
	ldrb	w9, [x21, #2]!
	cmp	w9, w8
	b.ne	LBB0_13
; %bb.12:
	add	x22, x22, #3
	mov	x0, x22
	bl	_strlen
	add	w8, w0, #1
	sxtw	x2, w8
	mov	x0, x21
	mov	x1, x22
	bl	_memmove
	b	LBB0_19
LBB0_13:
	ldr	x0, [x20]
	bl	_symbol_find_or_make
	mov	x20, x0
	mov	x0, x19
	bl	_S_GET_SEGMENT
	mov	x1, x0
	mov	x0, x20
	bl	_S_SET_SEGMENT
	mov	x0, x19
	bl	_S_GET_VALUE
	mov	x21, x0
	mov	x0, x19
	bl	_symbol_get_frag
	ldr	x8, [x0]
	sub	x1, x21, x8
	mov	x0, x20
	bl	_S_SET_VALUE
	mov	x0, x19
	bl	_symbol_get_frag
	mov	x1, x0
	mov	x0, x20
	bl	_symbol_set_frag
	mov	x0, x20
	mov	x1, x19
	bl	_copy_symbol_attributes
	mov	x0, x19
	bl	_S_GET_OTHER
	mov	x1, x0
	mov	x0, x20
	bl	_S_SET_OTHER
	mov	x0, x19
	bl	_S_IS_WEAK
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_S_SET_WEAK
LBB0_15:
	mov	x0, x19
	bl	_S_IS_EXTERNAL
	cbz	x0, LBB0_20
; %bb.16:
	mov	x0, x20
	bl	_S_SET_EXTERNAL
	b	LBB0_20
LBB0_17:
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.18:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	ldr	x8, [x20]
	str	x8, [sp]
	bl	_as_bad
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_19:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_S_SET_NAME
LBB0_20:
	mov	x0, x19
	bl	_S_IS_WEAK
	cbz	x0, LBB0_23
; %bb.21:
	mov	x0, x19
	bl	_S_IS_COMMON
	cbz	x0, LBB0_23
; %bb.22:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x20, x0
	mov	x0, x19
	bl	_S_GET_NAME
	str	x0, [sp]
	mov	x0, x20
	bl	_as_bad
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".size expression too complicated to fix up"

	.comm	_ELF_VER_CHR,1,0                ; @ELF_VER_CHR
l_.str.1:                               ; @.str.1
	.asciz	"invalid attempt to declare external version name as default in symbol `%s'"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.2:                               ; @.str.2
	.asciz	"symbol `%s' can not be both weak and common"

	.comm	_BSF_FUNCTION,4,2               ; @BSF_FUNCTION
	.comm	_BSF_OBJECT,4,2                 ; @BSF_OBJECT
	.comm	_ECOFF_DEBUGGING,8,3            ; @ECOFF_DEBUGGING
	.comm	_TARGET_OS,4,2                  ; @TARGET_OS
.subsections_via_symbols
