	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecoff_link_add_object_symbols
_ecoff_link_add_object_symbols:         ## @ecoff_link_add_object_symbols
	.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, %r14
	movq	%rdi, %r13
	callq	_ecoff_slurp_symbolic_header
	testl	%eax, %eax
	je	LBB0_19
## %bb.1:
	movq	%r13, %rdi
	callq	_bfd_get_symcount
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r13, %rdi
	callq	_ecoff_data
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_ecoff_backend
	movl	(%r12), %ebx
	imull	(%rax), %ebx
	movl	%ebx, %edi
	callq	_bfd_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	testl	%ebx, %ebx
	jne	LBB0_17
LBB0_5:
	movl	24(%r12), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_bfd_seek
	testq	%rax, %rax
	jne	LBB0_17
## %bb.6:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	_bfd_bread
	cmpl	%ebx, %eax
	jne	LBB0_17
## %bb.7:
	movl	8(%r12), %edi
	callq	_bfd_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	movl	16(%r12), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_bfd_seek
	testq	%rax, %rax
	jne	LBB0_15
## %bb.10:
	movl	8(%r12), %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_bfd_bread
	cmpl	8(%r12), %eax
	jne	LBB0_15
## %bb.11:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_ecoff_link_add_externals
	movq	%rbx, %rdi
	movl	%eax, %ebx
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_free
LBB0_13:
	testq	%r15, %r15
	je	LBB0_21
## %bb.14:
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_21
LBB0_2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_15:
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_17
LBB0_8:
	cmpq	$0, 8(%r12)
	je	LBB0_9
LBB0_17:
	testq	%r15, %r15
	je	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	callq	_free
LBB0_19:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_ecoff_link_add_object_symbols
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecoff_link_add_object_symbols
_ecoff_link_add_object_symbols:         ; @ecoff_link_add_object_symbols
	.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	x19, x1
	mov	x20, x0
	bl	_ecoff_slurp_symbolic_header
	cbz	w0, LBB0_18
; %bb.1:
	mov	x0, x20
	bl	_bfd_get_symcount
	cbz	x0, LBB0_12
; %bb.2:
	mov	x0, x20
	bl	_ecoff_data
	mov	x22, x0
	mov	x0, x20
	bl	_ecoff_backend
	ldr	w8, [x0]
	ldr	w9, [x22]
	mul	w23, w9, w8
	mov	x0, x23
	bl	_bfd_malloc
	mov	x21, x0
	cmp	x0, #0
	ccmp	w23, #0, #4, eq
	b.ne	LBB0_16
; %bb.3:
	ldr	w1, [x22, #24]
Lloh0:
	adrp	x24, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_bfd_seek
	cbnz	x0, LBB0_16
; %bb.4:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_bfd_bread
	cmp	w0, w23
	b.ne	LBB0_16
; %bb.5:
	ldr	w0, [x22, #8]
	bl	_bfd_malloc
	mov	x23, x0
	cbz	x0, LBB0_15
LBB0_6:
	ldr	w1, [x22, #16]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_bfd_seek
	cbnz	x0, LBB0_13
; %bb.7:
	ldr	w1, [x22, #8]
	mov	x0, x23
	mov	x2, x20
	bl	_bfd_bread
	ldr	w8, [x22, #8]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	bl	_ecoff_link_add_externals
	mov	x19, x0
	cbz	x23, LBB0_10
; %bb.9:
	mov	x0, x23
	bl	_free
LBB0_10:
	cbz	x21, LBB0_20
; %bb.11:
	mov	x0, x21
	bl	_free
	b	LBB0_20
LBB0_12:
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_19
LBB0_13:
	cbz	x23, LBB0_16
; %bb.14:
	mov	x0, x23
	bl	_free
	b	LBB0_16
LBB0_15:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_6
LBB0_16:
	cbz	x21, LBB0_18
; %bb.17:
	mov	x0, x21
	bl	_free
LBB0_18:
Lloh4:
	adrp	x8, _FALSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_19:
	ldr	w19, [x8]
LBB0_20:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_ecoff_link_add_object_symbols
.subsections_via_symbols
