	.file	"extr_bnode.c___hfs_bnode_create.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"request for non-existent node %d in B*Tree\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"new_node(%d:%d): 1\n"
	.text
	.p2align 4
	.type	__hfs_bnode_create, @function
__hfs_bnode_create:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR [rdi], rsi
	jle	.L16
	movsx	rax, DWORD PTR 8[rdi]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rbx, rdi
	lea	edi, 56[0+rax*8]
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	QWORD PTR 40[rax], rbx
	mov	edi, DWORD PTR HFS_BNODE_NEW[rip]
	lea	rax, 4[rax]
	lea	r14, 24[rbx]
	mov	QWORD PTR 28[rax], rbp
	mov	rsi, rax
	mov	QWORD PTR 8[rsp], rax
	call	set_bit@PLT
	lea	rdi, 48[r12]
	mov	esi, 1
	call	atomic_set@PLT
	mov	rax, QWORD PTR 40[r12]
	mov	rcx, QWORD PTR 32[r12]
	lea	rsi, .LC1[rip]
	mov	edi, DWORD PTR BNODE_REFS[rip]
	mov	edx, DWORD PTR 40[rax]
	call	hfs_dbg@PLT
	lea	rdi, 16[r12]
	call	init_waitqueue_head@PLT
	mov	rdi, r14
	call	spin_lock@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	hfs_bnode_findhash@PLT
	mov	r13, rax
	test	rax, rax
	je	.L17
	mov	rdi, r14
	call	spin_unlock@PLT
	mov	rdi, r12
	mov	r12, r13
	call	kfree@PLT
	mov	edi, DWORD PTR HFS_BNODE_NEW[rip]
	lea	rsi, 4[r13]
	call	test_bit@PLT
	xor	esi, esi
	mov	edi, DWORD PTR 16[r13]
	test	eax, eax
	sete	sil
	call	wait_event@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L17:
	.cfi_restore_state
	mov	rdi, rbp
	xor	r15d, r15d
	call	hfs_bnode_hash@PLT
	mov	rdx, QWORD PTR 32[rbx]
	mov	rdi, r14
	cdqe
	lea	rax, [rdx+rax*8]
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR 24[r12], rdx
	mov	QWORD PTR [rax], r12
	add	DWORD PTR 28[rbx], 1
	call	spin_unlock@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	ecx, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR PAGE_MASK[rip]
	sal	ebp, cl
	mov	r14, QWORD PTR [rax]
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	not	esi
	mov	eax, DWORD PTR 8[rbx]
	mov	r13d, ebp
	and	ebp, esi
	sar	r13d, cl
	mov	DWORD PTR [r12], ebp
	test	eax, eax
	jg	.L5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbp
	call	PageError@PLT
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR [rax+r15*8], rbp
	add	r15, 1
	cmp	DWORD PTR 8[rbx], r15d
	jle	.L1
.L5:
	xor	edx, edx
	mov	rdi, r14
	lea	esi, 0[r13+r15]
	call	read_mapping_page@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L19
.L6:
	endbr64
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR HFS_BNODE_ERROR[rip]
	call	set_bit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rdi, .LC0[rip]
	xor	r12d, r12d
	call	pr_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbp
	call	put_page@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR HFS_BNODE_ERROR[rip]
	call	set_bit@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	__hfs_bnode_create, .-__hfs_bnode_create
	.comm	PAGE_SHIFT,4,4
	.comm	PAGE_MASK,4,4
	.comm	HFS_BNODE_NEW,4,4
	.comm	HFS_BNODE_ERROR,4,4
	.comm	GFP_KERNEL,4,4
	.comm	BNODE_REFS,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_bnode.c___hfs_bnode_create.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"request for non-existent node %d in B*Tree\012\000"
	.align	2
.LC1:
	.ascii	"new_node(%d:%d): 1\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__hfs_bnode_create, %function
__hfs_bnode_create:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, r1
	ble	.L15
	mov	r7, r0
	ldr	r0, [r0, #4]
	ldr	r3, .L20
	add	r0, r0, #8
	mov	r5, r1
	lsl	r0, r0, #2
	ldr	r1, [r3]
	bl	kzalloc
	subs	r6, r0, #0
	beq	.L1
	ldr	r10, .L20+4
	add	r9, r6, #4
	mov	r1, r9
	ldr	r0, [r10]
	str	r7, [r6, #24]
	str	r5, [r6, #20]
	bl	set_bit
	mov	r1, #1
	add	r0, r6, #28
	bl	atomic_set
	ldr	r2, [r6, #24]
	ldr	r3, .L20+8
	ldr	r2, [r2, #28]
	ldr	r1, .L20+12
	ldr	r0, [r3]
	ldr	r3, [r6, #20]
	bl	hfs_dbg
	add	r8, r7, #16
	add	r0, r6, #12
	bl	init_waitqueue_head
	mov	r0, r8
	bl	spin_lock
	mov	r1, r5
	mov	r0, r7
	bl	hfs_bnode_findhash
	subs	r4, r0, #0
	beq	.L16
	mov	r0, r8
	bl	spin_unlock
	mov	r0, r6
	bl	kfree
	add	r1, r4, #4
	ldr	r0, [r10]
	ldr	r5, [r4, #12]
	bl	test_bit
	clz	r1, r0
	mov	r0, r5
	lsr	r1, r1, #5
	bl	wait_event
	mov	r6, r4
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	mov	r0, r5
	bl	hfs_bnode_hash
	mov	r3, r0
	ldr	r1, [r7, #24]
	ldr	r2, [r7, #20]
	ldr	ip, [r1, r0, lsl #2]
	add	r2, r2, #1
	str	ip, [r6, #16]
	mov	r0, r8
	str	r6, [r1, r3, lsl #2]
	str	r2, [r7, #20]
	bl	spin_unlock
	ldr	r3, .L20+16
	ldr	r8, [r7, #8]
	ldr	r2, .L20+20
	ldr	r3, [r3]
	ldr	r1, [r7, #4]
	lsl	r5, r5, r8
	ldr	r8, [r2]
	ldr	r2, [r7, #12]
	bic	r3, r5, r3
	cmp	r1, #0
	ldr	r10, [r2]
	asr	r8, r5, r8
	str	r3, [r6]
	bgt	.L5
	b	.L1
.L18:
	mov	r0, r5
	bl	PageError
	cmp	r0, #0
	bne	.L17
	ldr	r2, [r6, #8]
	ldr	r3, [r7, #4]
	str	r5, [r2, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L1
.L5:
	mov	r2, #0
	add	r1, r8, r4
	mov	r0, r10
	bl	read_mapping_page
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L18
.L6:
	ldr	r3, .L20+24
	mov	r1, r9
	ldr	r0, [r3]
	bl	set_bit
.L19:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	mov	r6, #0
	ldr	r0, .L20+28
	bl	pr_err
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	mov	r0, r5
	bl	put_page
	ldr	r3, .L20+24
	mov	r1, r9
	ldr	r0, [r3]
	bl	set_bit
	b	.L19
.L21:
	.align	2
.L20:
	.word	GFP_KERNEL
	.word	HFS_BNODE_NEW
	.word	BNODE_REFS
	.word	.LC1
	.word	PAGE_MASK
	.word	PAGE_SHIFT
	.word	HFS_BNODE_ERROR
	.word	.LC0
	.size	__hfs_bnode_create, .-__hfs_bnode_create
	.comm	PAGE_SHIFT,4,4
	.comm	PAGE_MASK,4,4
	.comm	HFS_BNODE_NEW,4,4
	.comm	HFS_BNODE_ERROR,4,4
	.comm	GFP_KERNEL,4,4
	.comm	BNODE_REFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
