	.file	"extr_bnode.c_hfsplus_bnode_put.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"put_node(%d:%d): %d\n"
	.text
	.p2align 4
	.globl	hfs_bnode_put
	.type	hfs_bnode_put, @function
hfs_bnode_put:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L17
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, 16[rdi]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r12, QWORD PTR 24[rdi]
	mov	rdi, r14
	lea	r13, 4[r12]
	call	atomic_read@PLT
	mov	ecx, DWORD PTR 20[rbp]
	mov	edi, DWORD PTR DBG_BNODE_REFS[rip]
	lea	rsi, .LC0[rip]
	mov	r8d, eax
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR 8[rax]
	call	dprint@PLT
	mov	rdi, r14
	call	atomic_read@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	BUG_ON@PLT
	mov	rsi, r13
	mov	rdi, r14
	call	atomic_dec_and_lock@PLT
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	jle	.L5
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rax+rbx*4]
	test	edi, edi
	je	.L6
	call	mark_page_accessed@PLT
.L6:
	add	rbx, 1
	cmp	DWORD PTR [r12], ebx
	jg	.L7
.L5:
	mov	edi, DWORD PTR HFS_BNODE_DELETED[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	test	rax, rax
	jne	.L21
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	mov	rdi, rbp
	call	hfs_bnode_unhash@PLT
	mov	rdi, r13
	call	spin_unlock@PLT
	mov	rdi, rbp
	call	hfs_bmap_free@PLT
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	hfs_bnode_free@PLT
	.cfi_endproc
.LFE0:
	.size	hfs_bnode_put, .-hfs_bnode_put
	.comm	HFS_BNODE_DELETED,4,4
	.comm	DBG_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_put.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"put_node(%d:%d): %d\012\000"
	.text
	.align	2
	.global	hfs_bnode_put
	.syntax unified
	.arm
	.fpu softvfp
	.type	hfs_bnode_put, %function
hfs_bnode_put:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	subs	r5, r0, #0
	sub	sp, sp, #12
	beq	.L1
	ldr	r6, [r5, #16]
	ldr	r3, .L19
	add	r4, r5, #8
	mov	r0, r4
	ldr	r7, [r3]
	ldr	r9, [r6, #8]
	ldr	r8, [r5, #12]
	bl	atomic_read
	mov	r1, r0
	mov	r2, r9
	mov	r3, r8
	mov	r0, r7
	str	r1, [sp]
	ldr	r1, .L19+4
	bl	dprint
	mov	r0, r4
	bl	atomic_read
	clz	r0, r0
	add	r7, r6, #4
	lsr	r0, r0, #5
	bl	BUG_ON
	mov	r0, r4
	mov	r1, r7
	bl	atomic_dec_and_lock
	cmp	r0, #0
	beq	.L1
	ldr	r2, [r6]
	cmp	r2, #0
	ble	.L5
	mov	r4, #0
.L7:
	ldr	r3, [r5, #4]
	ldr	r0, [r3, r4, lsl #2]
	add	r4, r4, #1
	cmp	r0, #0
	beq	.L6
	bl	mark_page_accessed
	ldr	r2, [r6]
.L6:
	cmp	r2, r4
	bgt	.L7
.L5:
	ldr	r3, .L19+8
	mov	r1, r5
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L18
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	spin_unlock
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L18:
	mov	r0, r5
	bl	hfs_bnode_unhash
	mov	r0, r7
	bl	spin_unlock
	mov	r0, r5
	bl	hfs_bmap_free
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	hfs_bnode_free
.L20:
	.align	2
.L19:
	.word	DBG_BNODE_REFS
	.word	.LC0
	.word	HFS_BNODE_DELETED
	.size	hfs_bnode_put, .-hfs_bnode_put
	.comm	HFS_BNODE_DELETED,4,4
	.comm	DBG_BNODE_REFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
