	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function replace_object_oid
_replace_object_oid:                    ## @replace_object_oid
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, %rbx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%eax, -56(%rbp)
	movq	_the_repository@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	xorl	%edx, %edx
	callq	_oid_object_info
	movl	%eax, %r14d
	movl	(%r15), %edi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_oid_object_info
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	cmpl	%eax, %r14d
	je	LBB0_2
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	__
	movslq	%eax, %r12
	movl	%r14d, %edi
	callq	_type_name
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_type_name
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %r8
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_2:
	leaq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r13d, %ecx
	callq	_check_ref_valid
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movl	$-1, %r15d
	jmp	LBB0_9
LBB0_4:
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_ref_transaction_begin
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	-48(%rbp), %esi
	movq	%r15, (%rsp)
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ref_transaction_update
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ref_transaction_commit
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movslq	-56(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
	movl	%eax, %r15d
LBB0_8:
	movq	%r14, %rdi
	callq	_ref_transaction_free
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
LBB0_9:
	movl	%r15d, %eax
	addq	$56, %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
	.comm	_the_repository,4,2             ## @the_repository
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Objects must be of the same type.\n'%s' points to a replaced object of type '%s'\nwhile '%s' points to a replacement object of type '%s'."

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.no_dead_strip	_replace_object_oid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function replace_object_oid
_replace_object_oid:                    ; @replace_object_oid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x4
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	str	w8, [sp, #24]
Lloh3:
	adrp	x25, _the_repository@GOTPAGE
Lloh4:
	ldr	x25, [x25, _the_repository@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x2, #0
	bl	_oid_object_info
	mov	x24, x0
	ldr	w0, [x25]
	mov	x1, x19
	mov	x2, #0
	bl	_oid_object_info
	cbnz	w22, LBB0_3
; %bb.1:
	mov	x25, x0
	cmp	w24, w0
	b.eq	LBB0_3
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x19, w0
	mov	x0, x24
	bl	_type_name
	mov	x22, x0
	mov	x0, x25
	bl	_type_name
	stp	x21, x0, [sp, #8]
	str	x22, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_error
	b	LBB0_11
LBB0_3:
	add	x1, sp, #40
	add	x2, sp, #32
	mov	x0, x23
	mov	x3, x22
	bl	_check_ref_valid
	cbz	x0, LBB0_5
; %bb.4:
	add	x0, sp, #32
	bl	_strbuf_release
	mov	w19, #-1
	b	LBB0_10
LBB0_5:
	add	x0, sp, #24
	bl	_ref_transaction_begin
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w1, [sp, #32]
	add	x3, sp, #40
	add	x6, sp, #24
	mov	x0, x20
	mov	x2, x19
	mov	w4, #0
	mov	x5, #0
	bl	_ref_transaction_update
	cbnz	x0, LBB0_8
; %bb.7:
	add	x1, sp, #24
	mov	x0, x20
	bl	_ref_transaction_commit
	cbz	x0, LBB0_12
LBB0_8:
	ldrsw	x1, [sp, #24]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	mov	x19, x0
LBB0_9:
	mov	x0, x20
	bl	_ref_transaction_free
	add	x0, sp, #32
	bl	_strbuf_release
LBB0_10:
	mov	x0, x19
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
	mov	w19, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_the_repository,4,2             ; @the_repository
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Objects must be of the same type.\n'%s' points to a replaced object of type '%s'\nwhile '%s' points to a replacement object of type '%s'."

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.no_dead_strip	_replace_object_oid
.subsections_via_symbols
