	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldwrite                        ## -- Begin function ldwrite
	.p2align	4, 0x90
_ldwrite:                               ## @ldwrite
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_bfd_error_no_error@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_bfd_set_error
	movq	_build_link_order@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_lang_for_each_statement
	movq	_config@GOTPCREL(%rip), %rax
	cmpl	$-1, (%rax)
	jne	LBB0_2
## %bb.1:
	cmpq	$-1, 8(%rax)
	je	LBB0_3
LBB0_2:
	movq	_output_bfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_link_info@GOTPCREL(%rip), %rsi
	callq	_split_sections
LBB0_3:
	movq	_output_bfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_link_info@GOTPCREL(%rip), %rsi
	callq	_bfd_final_link
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	callq	_bfd_get_error
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.5:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_xexit                          ## TAILCALL
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_einfo                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bfd_error_no_error,8,3         ## @bfd_error_no_error
	.comm	_build_link_order,4,2           ## @build_link_order
	.comm	_config,16,3                    ## @config
	.comm	_output_bfd,4,2                 ## @output_bfd
	.comm	_link_info,4,2                  ## @link_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%F%P: final link failed: %E\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldwrite                        ; -- Begin function ldwrite
	.p2align	2
_ldwrite:                               ; @ldwrite
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _bfd_error_no_error@GOTPAGE
Lloh1:
	ldr	x19, [x19, _bfd_error_no_error@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_bfd_set_error
Lloh2:
	adrp	x8, _build_link_order@GOTPAGE
Lloh3:
	ldr	x8, [x8, _build_link_order@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_lang_for_each_statement
Lloh5:
	adrp	x8, _config@GOTPAGE
Lloh6:
	ldr	x8, [x8, _config@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	x8, [x8, #8]
	cmn	w9, #1
	ccmn	x8, #1, #0, eq
Lloh7:
	adrp	x20, _output_bfd@GOTPAGE
Lloh8:
	ldr	x20, [x20, _output_bfd@GOTPAGEOFF]
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh9:
	adrp	x1, _link_info@GOTPAGE
Lloh10:
	ldr	x1, [x1, _link_info@GOTPAGEOFF]
	bl	_split_sections
LBB0_2:
	ldr	w0, [x20]
Lloh11:
	adrp	x1, _link_info@GOTPAGE
Lloh12:
	ldr	x1, [x1, _link_info@GOTPAGEOFF]
	bl	_bfd_final_link
	cbz	w0, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	_bfd_get_error
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_xexit
LBB0_6:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_einfo
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_bfd_error_no_error,8,3         ; @bfd_error_no_error
	.comm	_build_link_order,4,2           ; @build_link_order
	.comm	_config,16,3                    ; @config
	.comm	_output_bfd,4,2                 ; @output_bfd
	.comm	_link_info,4,2                  ; @link_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%F%P: final link failed: %E\n"

.subsections_via_symbols
