	.file	"extr_bnode.c_hfsplus_bnode_unhash.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"remove_node(%d:%d): %d\n"
	.text
	.p2align 4
	.globl	hfs_bnode_unhash
	.type	hfs_bnode_unhash, @function
hfs_bnode_unhash:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	add	rdi, 20
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	atomic_read@PLT
	mov	ecx, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR BNODE_REFS[rip]
	lea	rsi, .LC0[rip]
	mov	r8d, eax
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR 16[rax]
	call	hfs_dbg@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR 16[rbx]
	mov	rbp, QWORD PTR 8[rax]
	call	hfs_bnode_hash@PLT
	lea	rbp, 0[rbp+rax*8]
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	jne	.L2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rbp, 8[rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L5
.L2:
	cmp	rbx, rax
	jne	.L4
	xor	edi, edi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, 1
.L3:
	call	BUG_ON@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR [rbx]
	sub	DWORD PTR [rax], 1
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	hfs_bnode_unhash, .-hfs_bnode_unhash
	.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_hfsplus_bnode_unhash.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"remove_node(%d:%d): %d\012\000"
	.text
	.align	2
	.global	hfs_bnode_unhash
	.syntax unified
	.arm
	.fpu softvfp
	.type	hfs_bnode_unhash, %function
hfs_bnode_unhash:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r2, [r0]
	ldr	r3, .L9
	sub	sp, sp, #12
	add	r0, r0, #12
	ldr	r6, [r4, #8]
	ldr	r5, [r3]
	ldr	r7, [r2, #8]
	bl	atomic_read
	mov	r1, r0
	mov	r3, r6
	mov	r2, r7
	str	r1, [sp]
	mov	r0, r5
	ldr	r1, .L9+4
	bl	hfs_dbg
	ldr	r3, [r4]
	ldr	r0, [r4, #8]
	ldr	r6, [r3, #4]
	bl	hfs_bnode_hash
	ldr	r3, [r6, r0, lsl #2]
	add	r6, r6, r0, lsl #2
	cmp	r3, #0
	bne	.L2
	b	.L5
.L4:
	add	r6, r3, #4
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L5
.L2:
	cmp	r4, r3
	bne	.L4
	mov	r0, #0
	b	.L3
.L5:
	mov	r0, #1
.L3:
	bl	BUG_ON
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	ldr	r3, [r2]
	str	r1, [r6]
	sub	r3, r3, #1
	str	r3, [r2]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	.align	2
.L9:
	.word	BNODE_REFS
	.word	.LC0
	.size	hfs_bnode_unhash, .-hfs_bnode_unhash
	.comm	BNODE_REFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
