	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function diff_populate_gitlink
_diff_populate_gitlink:                 ## @diff_populate_gitlink
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	cmpq	$0, 24(%rdi)
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	addq	$20, %rdi
	callq	_oid_to_hex
	leaq	L_.str.2(%rip), %rsi
	leaq	-32(%rbp), %rdi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_strbuf_addf
	movl	-32(%rbp), %eax
	movl	%eax, 16(%r15)
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	$0, 8(%r15)
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	jmp	LBB0_3
LBB0_2:
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	movq	%rax, 8(%r15)
	movl	$1, (%r15)
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"-dirty"

L_.str.2:                               ## @.str.2
	.asciz	"Subproject commit %s%s\n"

	.no_dead_strip	_diff_populate_gitlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function diff_populate_gitlink
_diff_populate_gitlink:                 ; @diff_populate_gitlink
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
	ldr	x9, [x0, #24]
Lloh5:
	adrp	x10, l_.str@PAGE
Lloh6:
	add	x10, x10, l_.str@PAGEOFF
	cmp	x9, #0
	csel	x21, x10, x8, eq
	add	x0, x0, #20
	bl	_oid_to_hex
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	x3, x21
	bl	_strbuf_addf
	ldr	w8, [sp, #8]
	str	w8, [x19, #16]
	cbz	w20, LBB0_2
; %bb.1:
	str	xzr, [x19, #8]
	add	x0, sp, #8
	bl	_strbuf_release
	b	LBB0_3
LBB0_2:
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
	str	x0, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	mov	w0, #0
	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 AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"-dirty"

l_.str.2:                               ; @.str.2
	.asciz	"Subproject commit %s%s\n"

	.no_dead_strip	_diff_populate_gitlink
.subsections_via_symbols
