	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_graph_to_chain
_add_graph_to_chain:                    ## @add_graph_to_chain
	.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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.1:
	cmpq	$0, 32(%r15)
	je	LBB0_2
## %bb.4:
	movl	%ecx, %r13d
	movslq	%ecx, %rbx
	leaq	-4(,%rbx,4), %r14
	decq	%rbx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rdi
	leaq	40(%r12), %rsi
	callq	_oideq
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %edi
	movslq	(%r15), %rsi
	imulq	%rbx, %rsi
	addq	32(%r15), %rsi
	callq	_hasheq
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r12), %r12
	decq	%rbx
	addq	$-4, %r14
	decl	%r13d
	jne	LBB0_5
LBB0_10:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, 24(%r15)
	movl	$1, %eax
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.11:
	movq	8(%rdx), %rcx
	addq	16(%rdx), %rcx
	movq	%rcx, 8(%r15)
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_3:
	callq	__
	movl	%eax, %edi
	callq	_warning
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"commit-graph has no base graphs chunk"

L_.str.1:                               ## @.str.1
	.asciz	"commit-graph chain does not match"

	.no_dead_strip	_add_graph_to_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_graph_to_chain
_add_graph_to_chain:                    ; @add_graph_to_chain
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	cbz	w3, LBB0_7
; %bb.1:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_11
; %bb.2:
	mov	x21, x3
	mov	x22, x2
	sxtw	x8, w21
	sub	x23, x8, #1
	sbfiz	x8, x21, #2, #32
	sub	x24, x8, #4
	mov	x25, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x25, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x22, x24
	add	x1, x25, #40
	bl	_oideq
	cbz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22, x23, lsl #2]
	ldr	x8, [x19, #32]
	ldrsw	x9, [x19]
	madd	x1, x23, x9, x8
	bl	_hasheq
	cbz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x25, [x25, #24]
	sub	x23, x23, #1
	sub	x24, x24, #4
	sub	w21, w21, #1
	cbnz	w21, LBB0_3
LBB0_7:
	str	x20, [x19, #24]
	cbz	x20, LBB0_9
; %bb.8:
	ldp	x9, x8, [x20, #8]
	add	x8, x9, x8
	str	x8, [x19, #8]
LBB0_9:
	mov	w0, #1
	b	LBB0_13
LBB0_10:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_12:
	bl	__
	bl	_warning
	mov	w0, #0
LBB0_13:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"commit-graph has no base graphs chunk"

l_.str.1:                               ; @.str.1
	.asciz	"commit-graph chain does not match"

	.no_dead_strip	_add_graph_to_chain
.subsections_via_symbols
