	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_promisor_file
_write_promisor_file:                   ## @write_promisor_file
	.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
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strbuf_addstr
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strbuf_strip_suffix
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_BUG
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strbuf_addstr
	movl	-48(%rbp), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_xfopen
	movq	%rax, %r15
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.3:
	movl	%r14d, %r12d
	xorl	%ebx, %ebx
	leaq	L_.str.4(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rdi
	addq	$8, %rdi
	callq	_oid_to_hex
	movq	(%r13,%rbx,8), %rcx
	movq	(%rcx), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_fprintf
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_fclose
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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
	.asciz	".keep"

L_.str.1:                               ## @.str.1
	.asciz	"name of pack lockfile should end with .keep (was '%s')"

L_.str.2:                               ## @.str.2
	.asciz	".promisor"

L_.str.3:                               ## @.str.3
	.asciz	"w"

L_.str.4:                               ## @.str.4
	.asciz	"%s %s\n"

	.no_dead_strip	_write_promisor_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_promisor_file
_write_promisor_file:                   ; @write_promisor_file
	.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, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x0, sp, #8
	mov	x1, x21
	bl	_strbuf_addstr
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_strip_suffix
	cbnz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_BUG
LBB0_2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addstr
	ldr	w0, [sp, #8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_xfopen
	mov	x21, x0
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w22, w20
Lloh11:
	adrp	x20, l_.str.4@PAGE
Lloh12:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_oid_to_hex
	mov	x2, x0
	ldr	x8, [x19], #8
	ldr	x3, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_fprintf
	subs	x22, x22, #1
	b.ne	LBB0_4
LBB0_5:
	mov	x0, x21
	bl	_fclose
	add	x0, sp, #8
	bl	_strbuf_release
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".keep"

l_.str.1:                               ; @.str.1
	.asciz	"name of pack lockfile should end with .keep (was '%s')"

l_.str.2:                               ; @.str.2
	.asciz	".promisor"

l_.str.3:                               ; @.str.3
	.asciz	"w"

l_.str.4:                               ; @.str.4
	.asciz	"%s %s\n"

	.no_dead_strip	_write_promisor_file
.subsections_via_symbols
