	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_treesame
_update_treesame:                       ## @update_treesame
	.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	%rsi, %r14
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	cmpq	$0, 8(%rax)
	je	LBB0_13
## %bb.2:
	movq	%r14, %rsi
	callq	_lookup_decoration
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	4(%r14), %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_die
LBB0_4:
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.5:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_relevant_commit
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	%r14d, %edx
	xorl	%esi, %esi
	cmpl	$0, (%rcx,%rdx,4)
	sete	%sil
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%esi, %eax
	movl	$0, %edx
	cmovel	%edx, %eax
	cmovnel	%edx, %esi
	addl	%ecx, %r15d
	orl	%eax, %r13d
	orl	%esi, %r12d
	incl	%r14d
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.7:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	testl	%r13d, %r13d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_12
LBB0_11:
	movq	_TREESAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	jmp	LBB0_13
LBB0_9:
	testl	%r12d, %r12d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_11
LBB0_12:
	movq	_TREESAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_13:
	movq	_TREESAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	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	"update_treesame %s"

	.comm	_TREESAME,4,2                   ## @TREESAME
	.no_dead_strip	_update_treesame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_treesame
_update_treesame:                       ; @update_treesame
	.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	x19, x1
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x21, _TREESAME@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TREESAME@GOTPAGEOFF]
	cbz	x8, LBB0_13
; %bb.1:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_13
; %bb.2:
	mov	x1, x19
	bl	_lookup_decoration
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x22, [x19, #8]
	cbnz	x22, LBB0_5
	b	LBB0_11
LBB0_4:
	add	x0, x19, #4
	bl	_oid_to_hex
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
	ldr	x22, [x19, #8]
	cbz	x22, LBB0_11
LBB0_5:
	mov	w23, #0
	mov	w24, #0
	mov	w25, #0
	mov	w26, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_relevant_commit
	ldr	x8, [x20]
	ldr	w8, [x8, w26, uxtw #2]
	cmp	w8, #0
	cset	w8, eq
	cmp	x0, #0
	cinc	w25, w25, ne
	csel	w9, wzr, w8, eq
	orr	w24, w24, w9
	csel	w8, w8, wzr, eq
	orr	w23, w23, w8
	add	w26, w26, #1
	ldr	x22, [x22, #8]
	cbnz	x22, LBB0_6
; %bb.7:
	cbz	w25, LBB0_10
; %bb.8:
	cbz	w24, LBB0_11
LBB0_9:
	ldr	w8, [x21]
	ldr	w9, [x19]
	bic	w8, w9, w8
	b	LBB0_12
LBB0_10:
	cbnz	w23, LBB0_9
LBB0_11:
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
LBB0_12:
	str	w8, [x19]
LBB0_13:
	ldr	w8, [x19]
	ldr	w9, [x21]
	and	w0, w9, w8
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"update_treesame %s"

	.comm	_TREESAME,4,2                   ; @TREESAME
	.no_dead_strip	_update_treesame
.subsections_via_symbols
