	.file	"extr_rbtree.c_ext2fs_rb_insert_color.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ext2fs_rb_insert_color
	.type	ext2fs_rb_insert_color, @function
ext2fs_rb_insert_color:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
.L2:
	mov	rdi, rbx
	call	ext2fs_rb_parent@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L11
.L9:
	mov	rdi, rax
	call	ext2fs_rb_is_red@PLT
	test	rax, rax
	je	.L11
	mov	rdi, rbp
	call	ext2fs_rb_parent@PLT
	mov	r14, QWORD PTR [rax]
	mov	r12, rax
	cmp	r14, rbp
	je	.L26
	test	r14, r14
	je	.L7
	mov	rdi, r14
	call	ext2fs_rb_is_red@PLT
	test	rax, rax
	jne	.L27
.L7:
	cmp	QWORD PTR 0[rbp], rbx
	je	.L28
.L8:
	mov	rdi, rbp
	call	ext2fs_rb_set_black@PLT
	mov	rdi, r12
	call	ext2fs_rb_set_red@PLT
	mov	rsi, r13
	mov	rdi, r12
	call	__rb_rotate_left@PLT
	mov	rdi, rbx
	call	ext2fs_rb_parent@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L9
.L11:
	mov	rdi, QWORD PTR 0[r13]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	jmp	ext2fs_rb_set_black@PLT
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	r15, QWORD PTR 8[rax]
	test	r15, r15
	je	.L4
	mov	rdi, r15
	call	ext2fs_rb_is_red@PLT
	test	rax, rax
	jne	.L29
.L4:
	cmp	QWORD PTR 8[rbp], rbx
	je	.L30
.L6:
	mov	rdi, rbp
	call	ext2fs_rb_set_black@PLT
	mov	rdi, r12
	call	ext2fs_rb_set_red@PLT
	mov	rsi, r13
	mov	rdi, r12
	call	__rb_rotate_right@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, rbp
	mov	rsi, r13
	call	__rb_rotate_right@PLT
	mov	rax, rbx
	mov	rbx, rbp
	mov	rbp, rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, r14
	mov	rbx, r12
	call	ext2fs_rb_set_black@PLT
	mov	rdi, rbp
	call	ext2fs_rb_set_black@PLT
	mov	rdi, r12
	call	ext2fs_rb_set_red@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, rbp
	mov	rsi, r13
	call	__rb_rotate_left@PLT
	mov	rax, rbx
	mov	rbx, rbp
	mov	rbp, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, r15
	mov	rbx, r12
	call	ext2fs_rb_set_black@PLT
	mov	rdi, r14
	call	ext2fs_rb_set_black@PLT
	mov	rdi, r12
	call	ext2fs_rb_set_red@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ext2fs_rb_insert_color, .-ext2fs_rb_insert_color
	.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_rbtree.c_ext2fs_rb_insert_color.c"
	.text
	.align	2
	.global	ext2fs_rb_insert_color
	.syntax unified
	.arm
	.fpu softvfp
	.type	ext2fs_rb_insert_color, %function
ext2fs_rb_insert_color:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	mov	r8, r1
.L2:
	mov	r0, r7
	bl	ext2fs_rb_parent
	subs	r4, r0, #0
	beq	.L11
.L9:
	bl	ext2fs_rb_is_red
	cmp	r0, #0
	beq	.L11
	mov	r0, r4
	bl	ext2fs_rb_parent
	ldr	r6, [r0]
	mov	r5, r0
	cmp	r6, r4
	beq	.L26
	cmp	r6, #0
	beq	.L7
	mov	r0, r6
	bl	ext2fs_rb_is_red
	cmp	r0, #0
	bne	.L27
.L7:
	ldr	r6, [r4]
	cmp	r6, r7
	beq	.L28
.L8:
	mov	r0, r4
	bl	ext2fs_rb_set_black
	mov	r0, r5
	bl	ext2fs_rb_set_red
	mov	r1, r8
	mov	r0, r5
	bl	__rb_rotate_left
	mov	r0, r7
	bl	ext2fs_rb_parent
	subs	r4, r0, #0
	bne	.L9
.L11:
	ldr	r0, [r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ext2fs_rb_set_black
.L26:
	ldr	r9, [r0, #4]
	cmp	r9, #0
	beq	.L4
	mov	r0, r9
	bl	ext2fs_rb_is_red
	cmp	r0, #0
	bne	.L29
.L4:
	ldr	r6, [r4, #4]
	cmp	r6, r7
	beq	.L30
.L6:
	mov	r0, r4
	bl	ext2fs_rb_set_black
	mov	r0, r5
	bl	ext2fs_rb_set_red
	mov	r1, r8
	mov	r0, r5
	bl	__rb_rotate_right
	b	.L2
.L28:
	mov	r0, r4
	mov	r1, r8
	mov	r7, r4
	bl	__rb_rotate_right
	mov	r4, r6
	b	.L8
.L27:
	mov	r0, r6
	bl	ext2fs_rb_set_black
	mov	r0, r4
	bl	ext2fs_rb_set_black
	mov	r0, r5
	bl	ext2fs_rb_set_red
	mov	r7, r5
	b	.L2
.L30:
	mov	r0, r4
	mov	r1, r8
	mov	r7, r4
	bl	__rb_rotate_left
	mov	r4, r6
	b	.L6
.L29:
	mov	r0, r9
	bl	ext2fs_rb_set_black
	mov	r0, r6
	bl	ext2fs_rb_set_black
	mov	r0, r5
	bl	ext2fs_rb_set_red
	mov	r7, r5
	b	.L2
	.size	ext2fs_rb_insert_color, .-ext2fs_rb_insert_color
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
