	.file	"extr_replace.c_replace_object_oid.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"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'."
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%s"
	.text
	.p2align 4
	.type	replace_object_oid, @function
replace_object_oid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	xor	edx, edx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR the_repository[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR STRBUF_INIT[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	DWORD PTR 20[rsp], eax
	call	oid_object_info@PLT
	mov	edi, DWORD PTR the_repository[rip]
	xor	edx, edx
	mov	rsi, r13
	mov	r14d, eax
	call	oid_object_info@PLT
	test	r12d, r12d
	jne	.L2
	cmp	r14d, eax
	je	.L2
	mov	edi, eax
	call	type_name@PLT
	mov	edi, r14d
	mov	rbp, rax
	call	type_name@PLT
	lea	rdi, .LC0[rip]
	mov	r12, rax
	call	_@PLT
	mov	rdx, r12
	mov	r8, rbp
	mov	rcx, rbx
	movsx	rdi, eax
	mov	rsi, r15
	xor	eax, eax
	call	error@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	lea	r14, 16[rsp]
	lea	r15, 12[rsp]
	mov	ecx, r12d
	mov	rdi, rbp
	mov	rdx, r14
	mov	rsi, r15
	call	check_ref_valid@PLT
	test	rax, rax
	jne	.L17
	lea	r12, 20[rsp]
	mov	rdi, r12
	call	ref_transaction_begin@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L7
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	rcx, r15
	mov	rdx, r13
	xor	r9d, r9d
	push	r12
	.cfi_def_cfa_offset 112
	mov	esi, DWORD PTR 32[rsp]
	xor	r8d, r8d
	mov	rdi, rax
	call	ref_transaction_update@PLT
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	test	rax, rax
	je	.L18
.L7:
	movsx	rsi, DWORD PTR 20[rsp]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	error@PLT
	mov	r12d, eax
.L6:
	mov	rdi, rbp
	call	ref_transaction_free@PLT
	mov	rdi, r14
	call	strbuf_release@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, rbp
	call	ref_transaction_commit@PLT
	test	rax, rax
	jne	.L7
	xor	r12d, r12d
	jmp	.L6
.L17:
	mov	rdi, r14
	mov	r12d, -1
	call	strbuf_release@PLT
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	replace_object_oid, .-replace_object_oid
	.comm	the_repository,4,4
	.comm	STRBUF_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_replace.c_replace_object_oid.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Objects must be of the same type.\012'%s' points to"
	.ascii	" a replaced object of type '%s'\012while '%s' point"
	.ascii	"s to a replacement object of type '%s'.\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	replace_object_oid, %function
replace_object_oid:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r2
	ldr	r2, .L15
	ldr	r5, .L15+4
	ldr	ip, [r2]
	mov	r4, r3
	ldr	r3, .L15+8
	sub	sp, sp, #32
	mov	r2, #0
	mov	r8, r0
	ldr	r0, [r5]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r7, r1
	ldr	r10, [sp, #64]
	str	ip, [sp, #20]
	str	ip, [sp, #24]
	bl	oid_object_info
	mov	r1, r4
	mov	r6, r0
	mov	r2, #0
	ldr	r0, [r5]
	bl	oid_object_info
	subs	r3, r6, r0
	movne	r3, #1
	cmp	r10, #0
	movne	r3, #0
	cmp	r3, #0
	bne	.L11
	mov	r3, r10
	mov	r0, r7
	add	r2, sp, #20
	add	r1, sp, #16
	bl	check_ref_valid
	subs	r5, r0, #0
	bne	.L12
	add	r0, sp, #24
	bl	ref_transaction_begin
	subs	r6, r0, #0
	beq	.L7
	add	r3, sp, #24
	str	r3, [sp, #8]
	mov	r2, r4
	ldr	r1, [sp, #20]
	str	r5, [sp, #4]
	str	r5, [sp]
	add	r3, sp, #16
	bl	ref_transaction_update
	cmp	r0, #0
	beq	.L13
.L7:
	ldr	r1, [sp, #24]
	ldr	r0, .L15+12
	bl	error
	mov	r4, r0
.L6:
	mov	r0, r6
	bl	ref_transaction_free
	add	r0, sp, #20
	bl	strbuf_release
.L1:
	ldr	r3, .L15+8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r5, r0
	ldr	r0, .L15+16
	bl	_
	mov	r4, r0
	mov	r0, r6
	bl	type_name
	mov	r2, r0
	mov	r0, r5
	mov	r5, r2
	bl	type_name
	mov	r3, r0
	mov	r2, r5
	mov	r0, r4
	str	r3, [sp]
	mov	r1, r8
	mov	r3, r9
	bl	error
	mov	r4, r0
	b	.L1
.L13:
	mov	r0, r6
	add	r1, sp, #24
	bl	ref_transaction_commit
	subs	r4, r0, #0
	bne	.L7
	b	.L6
.L12:
	add	r0, sp, #20
	bl	strbuf_release
	mvn	r4, #0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	STRBUF_INIT
	.word	the_repository
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	replace_object_oid, .-replace_object_oid
	.comm	the_repository,4,4
	.comm	STRBUF_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
