	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_rr
_write_rr:                              ## @write_rr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%rdi)
	jle	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_strbuf_release
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	(%rbx), %rax
	addq	$16, %r15
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rbx), %rax
	movq	8(%rax,%r15), %rax
	xorl	%edi, %edi
	movq	_RERERE_RESOLVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_assert
	movq	8(%rbx), %rax
	movq	8(%rax,%r15), %r13
	testq	%r13, %r13
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	movq	(%r13), %r12
	movq	%r13, %rdi
	callq	_rerere_id_hex
	testq	%r12, %r12
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rcx
	movq	8(%rbx), %rdx
	movl	(%rdx,%r15), %r8d
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_strbuf_addf
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rcx
	movslq	(%rcx,%r15), %rcx
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_strbuf_addf
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_write_in_full
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
	jmp	LBB0_8
LBB0_10:
	movq	_write_lock@GOTPCREL(%rip), %rdi
	callq	_commit_lock_file
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_12:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.comm	_RERERE_RESOLVED,8,3            ## @RERERE_RESOLVED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.%d\t%s%c"

L_.str.1:                               ## @.str.1
	.asciz	"%s\t%s%c"

L_.str.2:                               ## @.str.2
	.asciz	"unable to write rerere record"

	.comm	_write_lock,4,2                 ## @write_lock
	.no_dead_strip	_write_rr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_rr
_write_rr:                              ; @write_rr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x25, #0
	mov	x26, #0
Lloh0:
	adrp	x27, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	adrp	x28, _RERERE_RESOLVED@GOTPAGE
Lloh3:
	ldr	x28, [x28, _RERERE_RESOLVED@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x20]
	add	x25, x25, #16
	cmp	x26, x8
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	str	x8, [sp, #8]
	ldr	x8, [x20, #8]
	add	x8, x8, x25
	ldr	x8, [x8, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20, #8]
	add	x8, x8, x25
	ldr	x24, [x8, #8]
	cbz	x24, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldr	x22, [x24]
	mov	x0, x24
	bl	_rerere_id_hex
	mov	x2, x0
	cmp	x22, #1
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x3, [x24]
	ldr	x8, [x20, #8]
	ldr	w4, [x8, x25]
	str	xzr, [sp]
	add	x0, sp, #8
	mov	x1, x21
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	ldrsw	x3, [x8, x25]
	add	x0, sp, #8
	mov	x1, x23
	mov	w4, #0
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_strbuf_addf
	ldp	w2, w1, [sp, #8]
	mov	x0, x19
	bl	_write_in_full
	tbz	x0, #63, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	bl	_die
	b	LBB0_2
LBB0_10:
Lloh10:
	adrp	x0, _write_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _write_lock@GOTPAGEOFF]
	bl	_commit_lock_file
	cbz	x0, LBB0_12
; %bb.11:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	bl	_die
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.comm	_RERERE_RESOLVED,8,3            ; @RERERE_RESOLVED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.%d\t%s%c"

l_.str.1:                               ; @.str.1
	.asciz	"%s\t%s%c"

l_.str.2:                               ; @.str.2
	.asciz	"unable to write rerere record"

	.comm	_write_lock,4,2                 ; @write_lock
	.no_dead_strip	_write_rr
.subsections_via_symbols
