	.file	"extr_btree.c_xchk_btree_ptr_ok.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xchk_btree_ptr_ok, @function
xchk_btree_ptr_ok:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rcx, QWORD PTR [rdi]
	mov	rbx, rdi
	mov	eax, DWORD PTR [rcx]
	test	DWORD PTR XFS_BTREE_ROOT_IN_INODE[rip], eax
	je	.L2
	mov	r12d, 1
	cmp	DWORD PTR 4[rcx], esi
	je	.L1
.L2:
	mov	edi, DWORD PTR [rdx]
	test	DWORD PTR XFS_BTREE_LONG_PTRS[rip], eax
	jne	.L12
	call	be32_to_cpu@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	edx, r13d
	mov	esi, eax
	call	xfs_btree_check_sptr@PLT
	mov	r12d, eax
.L5:
	test	r12d, r12d
	jne	.L1
	mov	edi, DWORD PTR 8[rbx]
	mov	rsi, QWORD PTR [rbx]
	mov	edx, r13d
	call	xchk_btree_set_corrupt@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.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
.L12:
	.cfi_restore_state
	call	be64_to_cpu@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	edx, r13d
	mov	esi, eax
	call	xfs_btree_check_lptr@PLT
	mov	r12d, eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	xchk_btree_ptr_ok, .-xchk_btree_ptr_ok
	.comm	XFS_BTREE_ROOT_IN_INODE,4,4
	.comm	XFS_BTREE_LONG_PTRS,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_btree.c_xchk_btree_ptr_ok.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xchk_btree_ptr_ok, %function
xchk_btree_ptr_ok:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	mov	r6, r0
	ldr	r0, .L13
	ldr	r3, [r5]
	ldr	r0, [r0]
	mov	r4, r1
	tst	r3, r0
	beq	.L2
	ldr	r1, [r5, #4]
	cmp	r1, r4
	moveq	r5, #1
	beq	.L1
.L2:
	ldr	r1, .L13+4
	ldr	r0, [r2]
	ldr	r2, [r1]
	tst	r3, r2
	bne	.L12
	bl	be32_to_cpu
	mov	r2, r4
	mov	r1, r0
	mov	r0, r5
	bl	xfs_btree_check_sptr
	mov	r5, r0
.L5:
	cmp	r5, #0
	bne	.L1
	mov	r2, r4
	ldr	r1, [r6]
	ldr	r0, [r6, #4]
	bl	xchk_btree_set_corrupt
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L12:
	bl	be64_to_cpu
	mov	r2, r4
	mov	r1, r0
	mov	r0, r5
	bl	xfs_btree_check_lptr
	mov	r5, r0
	b	.L5
.L14:
	.align	2
.L13:
	.word	XFS_BTREE_ROOT_IN_INODE
	.word	XFS_BTREE_LONG_PTRS
	.size	xchk_btree_ptr_ok, .-xchk_btree_ptr_ok
	.comm	XFS_BTREE_ROOT_IN_INODE,4,4
	.comm	XFS_BTREE_LONG_PTRS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
