	.file	"extr_branch-mgr.c_seaf_branch_manager_add_branch.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"SELECT 1 FROM Branch WHERE name=%Q and repo_id=%Q"
	.align 8
.LC1:
	.string	"UPDATE Branch SET commit_id=%Q WHERE name=%Q and repo_id=%Q"
	.align 8
.LC2:
	.string	"INSERT INTO Branch VALUES (%Q, %Q, %Q)"
	.text
	.p2align 4
	.globl	seaf_branch_manager_add_branch
	.type	seaf_branch_manager_add_branch, @function
seaf_branch_manager_add_branch:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 272
	.cfi_def_cfa_offset 304
	mov	rdi, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 264[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	call	pthread_mutex_lock@PLT
	mov	ecx, DWORD PTR 8[rbx]
	mov	r8d, DWORD PTR 4[rbx]
	mov	rsi, r12
	mov	edi, 256
	xor	eax, eax
	lea	rdx, .LC0[rip]
	call	sqlite3_snprintf@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rsi, r12
	mov	edi, DWORD PTR 4[rax]
	call	sqlite_check_for_existence@PLT
	test	rax, rax
	je	.L2
	mov	r9d, DWORD PTR 4[rbx]
	mov	r8d, DWORD PTR 8[rbx]
	mov	rsi, r12
	mov	edi, 256
	mov	ecx, DWORD PTR [rbx]
	lea	rdx, .LC1[rip]
	xor	eax, eax
	call	sqlite3_snprintf@PLT
.L3:
	mov	rax, QWORD PTR 8[rbp]
	mov	rsi, r12
	mov	edi, DWORD PTR 4[rax]
	call	sqlite_query_exec@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR 264[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 272
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	ecx, DWORD PTR 8[rbx]
	mov	r9d, DWORD PTR [rbx]
	lea	rdx, .LC2[rip]
	mov	rsi, r12
	mov	r8d, DWORD PTR 4[rbx]
	mov	edi, 256
	xor	eax, eax
	call	sqlite3_snprintf@PLT
	jmp	.L3
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	seaf_branch_manager_add_branch, .-seaf_branch_manager_add_branch
	.comm	SEAF_DB_TYPE_PGSQL,8,8
	.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_branch-mgr.c_seaf_branch_manager_add_branch.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SELECT 1 FROM Branch WHERE name=%Q and repo_id=%Q\000"
	.align	2
.LC1:
	.ascii	"UPDATE Branch SET commit_id=%Q WHERE name=%Q and re"
	.ascii	"po_id=%Q\000"
	.align	2
.LC2:
	.ascii	"INSERT INTO Branch VALUES (%Q, %Q, %Q)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	seaf_branch_manager_add_branch
	.syntax unified
	.arm
	.fpu softvfp
	.type	seaf_branch_manager_add_branch, %function
seaf_branch_manager_add_branch:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r1
	mov	r5, r0
	ldr	r3, .L8
	sub	sp, sp, #276
	ldr	r0, [r0, #4]
	ldr	r3, [r3]
	str	r3, [sp, #268]
	mov	r3,#0
	bl	pthread_mutex_lock
	ldr	r3, [r4, #4]
	ldr	r2, .L8+4
	str	r3, [sp]
	ldr	r3, [r4, #8]
	add	r1, sp, #12
	mov	r0, #256
	bl	sqlite3_snprintf
	ldr	r3, [r5, #4]
	add	r1, sp, #12
	ldr	r0, [r3, #4]
	bl	sqlite_check_for_existence
	cmp	r0, #0
	ldmibne	r4, {r2, r3}
	ldmeq	r4, {r2, r3}
	strne	r2, [sp, #4]
	strne	r3, [sp]
	streq	r2, [sp, #4]
	streq	r3, [sp]
	ldrne	r3, [r4]
	ldreq	r3, [r4, #8]
	ldrne	r2, .L8+8
	ldreq	r2, .L8+12
	add	r1, sp, #12
	mov	r0, #256
	bl	sqlite3_snprintf
	ldr	r3, [r5, #4]
	add	r1, sp, #12
	ldr	r0, [r3, #4]
	bl	sqlite_query_exec
	ldr	r0, [r5, #4]
	bl	pthread_mutex_unlock
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #268]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, #0
	add	sp, sp, #276
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	seaf_branch_manager_add_branch, .-seaf_branch_manager_add_branch
	.comm	SEAF_DB_TYPE_PGSQL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
