	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function link_prog
_link_prog:                             ## @link_prog
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_g_cmdc@GOTPCREL(%rip), %r15
	cmpl	$1, (%r15)
	jne	LBB0_3
## %bb.1:
	movq	_g_ofile@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	movl	$4, %edx
	callq	_strlcpy
	jmp	LBB0_10
LBB0_3:
	movl	16(%rbx), %edi
	movl	$46, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	cmpl	$2, (%r15)
	movl	8(%rbx), %edi
	jl	LBB0_9
## %bb.7:
	movq	_g_cmdv@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	negq	%rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rbx,%rax,4), %rcx
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %esi
	jmp	LBB0_8
LBB0_9:
	leaq	L_.str.3(%rip), %rdx
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_10
LBB0_5:
	movb	$0, (%r14)
	movl	8(%rbx), %r14d
	movl	16(%rbx), %edi
	callq	_basename
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %edi
	movl	$4, %esi
	movq	%rax, %rcx
LBB0_8:
	xorl	%eax, %eax
	callq	_snprintf
LBB0_10:
	movq	_g_dtp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %ecx
	movl	12(%rbx), %esi
	movq	_DTRACE_D_PROBES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_g_objc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_g_objv@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	callq	_dtrace_program_link
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	L_.str.4(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dfatal                         ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_cmdc,4,2                     ## @g_cmdc
	.comm	_g_ofile,8,3                    ## @g_ofile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".d"

L_.str.1:                               ## @.str.1
	.asciz	"%s.o"

L_.str.2:                               ## @.str.2
	.asciz	"d.out.%td"

	.comm	_g_cmdv,4,2                     ## @g_cmdv
L_.str.3:                               ## @.str.3
	.asciz	"d.out"

	.comm	_g_dtp,4,2                      ## @g_dtp
	.comm	_DTRACE_D_PROBES,4,2            ## @DTRACE_D_PROBES
	.comm	_g_objc,4,2                     ## @g_objc
	.comm	_g_objv,4,2                     ## @g_objv
L_.str.4:                               ## @.str.4
	.asciz	"failed to link %s %s"

	.no_dead_strip	_link_prog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function link_prog
_link_prog:                             ; @link_prog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _g_cmdc@GOTPAGE
Lloh1:
	ldr	x21, [x21, _g_cmdc@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _g_ofile@GOTPAGE
Lloh3:
	ldr	x9, [x9, _g_ofile@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x9]
	cmp	w8, #1
	ccmp	x1, #0, #4, eq
	b.ne	LBB0_5
; %bb.1:
	ldr	w0, [x19, #16]
	mov	w1, #46
	bl	_strrchr
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_7
LBB0_3:
	ldr	w8, [x21]
	ldr	w0, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.4:
Lloh7:
	adrp	x8, _g_cmdv@GOTPAGE
Lloh8:
	ldr	x8, [x8, _g_cmdv@GOTPAGEOFF]
Lloh9:
	ldrsw	x8, [x8]
	mov	w9, #20
	mneg	x8, x8, x9
	add	x8, x19, x8
	str	x8, [sp]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_5:
	ldr	w0, [x19, #8]
	mov	w2, #4
	bl	_strlcpy
	b	LBB0_9
LBB0_6:
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_7:
	strb	wzr, [x20]
	ldr	w20, [x19, #8]
	ldr	w0, [x19, #16]
	bl	_basename
	str	x0, [sp]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
LBB0_8:
	mov	w1, #4
	bl	_snprintf
LBB0_9:
Lloh16:
	adrp	x8, _g_dtp@GOTPAGE
Lloh17:
	ldr	x8, [x8, _g_dtp@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _DTRACE_D_PROBES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DTRACE_D_PROBES@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	ldp	w3, w1, [x19, #8]
Lloh22:
	adrp	x8, _g_objc@GOTPAGE
Lloh23:
	ldr	x8, [x8, _g_objc@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
Lloh25:
	adrp	x8, _g_objv@GOTPAGE
Lloh26:
	ldr	x8, [x8, _g_objv@GOTPAGEOFF]
Lloh27:
	ldr	w5, [x8]
	bl	_dtrace_program_link
	cbz	x0, LBB0_11
; %bb.10:
	ldp	w2, w1, [x19]
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
	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
	add	sp, sp, #64
	b	_dfatal
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_g_cmdc,4,2                     ; @g_cmdc
	.comm	_g_ofile,8,3                    ; @g_ofile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".d"

l_.str.1:                               ; @.str.1
	.asciz	"%s.o"

l_.str.2:                               ; @.str.2
	.asciz	"d.out.%td"

	.comm	_g_cmdv,4,2                     ; @g_cmdv
l_.str.3:                               ; @.str.3
	.asciz	"d.out"

	.comm	_g_dtp,4,2                      ; @g_dtp
	.comm	_DTRACE_D_PROBES,4,2            ; @DTRACE_D_PROBES
	.comm	_g_objc,4,2                     ; @g_objc
	.comm	_g_objv,4,2                     ; @g_objv
l_.str.4:                               ; @.str.4
	.asciz	"failed to link %s %s"

	.no_dead_strip	_link_prog
.subsections_via_symbols
