	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_get_commit_buffer         ## -- Begin function repo_get_commit_buffer
	.p2align	4, 0x90
_repo_get_commit_buffer:                ## @repo_get_commit_buffer
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_get_cached_commit_buffer
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	leaq	-36(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_repo_read_object_file
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_die
LBB0_3:
	movl	-36(%rbp), %eax
	movq	_OBJ_COMMIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_oid_to_hex
	movl	%eax, %ebx
	movl	-36(%rbp), %edi
	callq	_type_name
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_die
LBB0_5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
LBB0_7:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot read commit object %s"

	.comm	_OBJ_COMMIT,4,2                 ## @OBJ_COMMIT
L_.str.1:                               ## @.str.1
	.asciz	"expected commit for %s, got %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_get_commit_buffer         ; -- Begin function repo_get_commit_buffer
	.p2align	2
_repo_get_commit_buffer:                ; @repo_get_commit_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x21, x1
	mov	x22, x0
	bl	_get_cached_commit_buffer
	mov	x20, x0
	cbnz	x0, LBB0_7
; %bb.1:
	add	x2, sp, #28
	add	x3, sp, #16
	mov	x0, x22
	mov	x1, x21
	bl	_repo_read_object_file
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_oid_to_hex
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_3:
	ldr	w8, [sp, #28]
Lloh2:
	adrp	x9, _OBJ_COMMIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OBJ_COMMIT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_oid_to_hex
	mov	x21, x0
	ldr	w0, [sp, #28]
	bl	_type_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_die
LBB0_5:
	cbz	x19, LBB0_7
; %bb.6:
	ldr	x8, [sp, #16]
	str	x8, [x19]
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot read commit object %s"

	.comm	_OBJ_COMMIT,4,2                 ; @OBJ_COMMIT
l_.str.1:                               ; @.str.1
	.asciz	"expected commit for %s, got %s"

.subsections_via_symbols
