	.file	"extr_view.c_views_enter_view_name.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"out of memory"
.LC1:
	.string	"duplicate view: %s"
	.text
	.p2align 4
	.type	views_enter_view_name, @function
views_enter_view_name:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	rdi, rsi
	call	view_create@PLT
	mov	r12, rax
	test	rax, rax
	je	.L7
	mov	rdi, rbp
	call	lock_rw_wrlock@PLT
	mov	rdi, r12
	call	lock_rw_wrlock@PLT
	lea	rsi, 4[r12]
	lea	rdi, 4[rbp]
	call	rbtree_insert@PLT
	test	eax, eax
	je	.L8
	mov	rdi, rbp
	call	lock_rw_unlock@PLT
.L1:
	mov	rax, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rsi, r13
	lea	rdi, .LC1[rip]
	call	log_warn@PLT
	mov	rdi, r12
	call	lock_rw_unlock@PLT
	mov	rdi, r12
	xor	r12d, r12d
	call	view_delete@PLT
	mov	rdi, rbp
	call	lock_rw_unlock@PLT
	mov	rax, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	log_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	views_enter_view_name, .-views_enter_view_name
	.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_view.c_views_enter_view_name.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"out of memory\000"
	.align	2
.LC1:
	.ascii	"duplicate view: %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	views_enter_view_name, %function
views_enter_view_name:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r0, r1
	mov	r6, r1
	bl	view_create
	subs	r4, r0, #0
	beq	.L7
	mov	r0, r5
	bl	lock_rw_wrlock
	mov	r0, r4
	bl	lock_rw_wrlock
	add	r1, r4, #4
	add	r0, r5, #4
	bl	rbtree_insert
	subs	r7, r0, #0
	beq	.L8
	mov	r0, r5
	bl	lock_rw_unlock
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r1, r6
	ldr	r0, .L9
	bl	log_warn
	mov	r0, r4
	bl	lock_rw_unlock
	mov	r0, r4
	mov	r4, r7
	bl	view_delete
	mov	r0, r5
	bl	lock_rw_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r0, .L9+4
	bl	log_err
	b	.L1
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	.LC0
	.size	views_enter_view_name, .-views_enter_view_name
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
