	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecoff_indirect_link_order
_ecoff_indirect_link_order:             ## @ecoff_indirect_link_order
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movq	_SEC_HAS_CONTENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rdx), %eax
	setne	%dil
	callq	_BFD_ASSERT
	movq	16(%rbx), %r14
	cmpq	$0, 8(%r14)
	je	LBB0_5
## %bb.1:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	48(%r14), %r13
	xorl	%edi, %edi
	cmpq	%r12, 40(%r14)
	sete	%dil
	callq	_BFD_ASSERT
	movq	16(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_BFD_ASSERT
	movq	8(%r14), %rax
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	sete	%dil
	callq	_BFD_ASSERT
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_bfd_malloc_and_get_section
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_ecoff_backend
	movslq	(%rax), %rax
	movl	24(%r14), %r15d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	imull	%eax, %r15d
	movl	%r15d, %edi
	callq	_bfd_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_6
LBB0_4:
	xorl	%r13d, %r13d
	jmp	LBB0_19
LBB0_5:
	movq	_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_24
LBB0_6:
	movq	32(%r14), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_bfd_seek
	testq	%rax, %rax
	jne	LBB0_18
## %bb.8:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_bfd_bread
	cmpl	%r15d, %eax
	jne	LBB0_18
## %bb.9:
	movq	%r13, %rdi
	callq	_ecoff_backend
	movq	-48(%rbp), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%rbx, %r9
	callq	*8(%rax)
	testl	%eax, %eax
	movq	%rbx, %r13
	je	LBB0_19
## %bb.10:
	movq	-48(%rbp), %rdx
	movq	8(%r14), %r8
	movq	16(%r14), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_bfd_set_section_contents
	testl	%eax, %eax
	je	LBB0_19
## %bb.11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.12:
	movslq	24(%r12), %rsi
	imulq	-72(%rbp), %rsi                 ## 8-byte Folded Reload
	addq	32(%r12), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_bfd_seek
	testq	%rax, %rax
	jne	LBB0_19
## %bb.13:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_bfd_bwrite
	cmpl	%r15d, %eax
	jne	LBB0_19
## %bb.14:
	movl	24(%r14), %eax
	addl	%eax, 24(%r12)
LBB0_15:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_free
LBB0_17:
	movq	_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_22
LBB0_18:
	movq	%rbx, %r13
LBB0_19:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_free
LBB0_21:
	movq	_FALSE@GOTPCREL(%rip), %rbx
LBB0_22:
	testq	%r13, %r13
	je	LBB0_24
## %bb.23:
	movq	%r13, %rdi
	callq	_free
LBB0_24:
	movl	(%rbx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEC_HAS_CONTENTS,4,2           ## @SEC_HAS_CONTENTS
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_ecoff_indirect_link_order
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecoff_indirect_link_order
_ecoff_indirect_link_order:             ; @ecoff_indirect_link_order
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _SEC_HAS_CONTENTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SEC_HAS_CONTENTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	bl	_BFD_ASSERT
	ldr	x22, [x20, #16]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_19
; %bb.1:
	ldp	x8, x25, [x22, #40]
	cmp	x8, x19
	cset	w0, eq
	bl	_BFD_ASSERT
	ldr	x8, [x22, #16]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, eq
	bl	_BFD_ASSERT
	ldr	x8, [x22, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	cset	w0, eq
	bl	_BFD_ASSERT
	add	x2, sp, #8
	mov	x0, x25
	mov	x1, x22
	bl	_bfd_malloc_and_get_section
	cbz	w0, LBB0_14
; %bb.2:
	mov	x0, x25
	bl	_ecoff_backend
	ldrsw	x26, [x0]
	ldr	w8, [x22, #24]
	mul	w24, w8, w26
	mov	x0, x24
	bl	_bfd_malloc
	cmp	x0, #0
	ccmp	w24, #0, #4, eq
	b.ne	LBB0_14
; %bb.3:
	mov	x20, x0
	ldr	x1, [x22, #32]
Lloh3:
	adrp	x27, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x27, [x27, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x25
	bl	_bfd_seek
	cbnz	x0, LBB0_15
; %bb.4:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_bfd_bread
	cmp	w0, w24
	b.ne	LBB0_15
; %bb.5:
	mov	x0, x25
	bl	_ecoff_backend
	ldr	x8, [x0, #8]
	ldr	x4, [sp, #8]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x25
	mov	x3, x22
	mov	x5, x20
	blr	x8
	cbz	w0, LBB0_15
; %bb.6:
	ldr	x2, [sp, #8]
	ldp	x4, x3, [x22, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_bfd_set_section_contents
	cbz	w0, LBB0_15
; %bb.7:
	ldr	x8, [x23]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	x8, [x19, #32]
	ldrsw	x9, [x19, #24]
	madd	x1, x9, x26, x8
	ldr	w2, [x27]
	mov	x0, x21
	bl	_bfd_seek
	cbnz	x0, LBB0_15
; %bb.9:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	bl	_bfd_bwrite
	cmp	w0, w24
	b.ne	LBB0_15
; %bb.10:
	ldr	w8, [x22, #24]
	ldr	w9, [x19, #24]
	add	w8, w9, w8
	str	w8, [x19, #24]
LBB0_11:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_free
LBB0_13:
Lloh5:
	adrp	x19, _TRUE@GOTPAGE
Lloh6:
	ldr	x19, [x19, _TRUE@GOTPAGEOFF]
	cbnz	x20, LBB0_18
	b	LBB0_20
LBB0_14:
	mov	x20, #0
LBB0_15:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_free
LBB0_17:
Lloh7:
	adrp	x19, _FALSE@GOTPAGE
Lloh8:
	ldr	x19, [x19, _FALSE@GOTPAGEOFF]
	cbz	x20, LBB0_20
LBB0_18:
	mov	x0, x20
	bl	_free
	b	LBB0_20
LBB0_19:
Lloh9:
	adrp	x19, _TRUE@GOTPAGE
Lloh10:
	ldr	x19, [x19, _TRUE@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SEC_HAS_CONTENTS,4,2           ; @SEC_HAS_CONTENTS
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_ecoff_indirect_link_order
.subsections_via_symbols
