	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bfd_ecoff_canonicalize_symtab ## -- Begin function _bfd_ecoff_canonicalize_symtab
	.p2align	4, 0x90
__bfd_ecoff_canonicalize_symtab:        ## @_bfd_ecoff_canonicalize_symtab
	.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	__bfd_ecoff_slurp_symbol_table
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_bfd_get_symcount
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	_ecoff_data
	movq	(%rax), %r12
	movq	%r14, %rdi
	callq	_bfd_get_symcount
	testq	%rax, %rax
	jle	LBB0_8
## %bb.6:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, (%r15)
	addq	$8, %r15
	addq	$4, %r12
	movl	%ebx, %r13d
	movq	%r14, %rdi
	callq	_bfd_get_symcount
	incl	%ebx
	cmpq	%r13, %rax
	jg	LBB0_7
LBB0_8:
	movq	$0, (%r15)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bfd_get_symcount               ## TAILCALL
LBB0_1:
	movq	$-1, %rax
	jmp	LBB0_2
LBB0_4:
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bfd_ecoff_canonicalize_symtab ; -- Begin function _bfd_ecoff_canonicalize_symtab
	.p2align	2
__bfd_ecoff_canonicalize_symtab:        ; @_bfd_ecoff_canonicalize_symtab
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	bl	__bfd_ecoff_slurp_symbol_table
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_bfd_get_symcount
	cbz	x0, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_ecoff_data
	ldr	x22, [x0]
	mov	x0, x19
	bl	_bfd_get_symcount
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w21, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x22, #4
	str	x22, [x20], #8
	mov	x0, x19
	bl	_bfd_get_symcount
	cmp	x0, w21, uxtw
	add	w21, w21, #1
	mov	x22, x23
	b.gt	LBB0_4
LBB0_5:
	str	xzr, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bfd_get_symcount
LBB0_6:
	mov	x0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
