	.file	"extr_inode.c_hfs_read_inode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hfs_read_inode, @function
hfs_read_inode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 80[rdi]
	call	HFS_SB@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	HFS_I@PLT
	mov	rdi, rbp
	mov	DWORD PTR 8[rax], 0
	call	HFS_I@PLT
	mov	rdi, rbp
	mov	QWORD PTR 24[rax], 0
	call	HFS_I@PLT
	lea	rdi, 20[rax]
	call	mutex_init@PLT
	mov	rdi, rbp
	call	HFS_I@PLT
	lea	rdi, 16[rax]
	call	INIT_LIST_HEAD@PLT
	mov	eax, DWORD PTR 12[rbx]
	mov	r13, QWORD PTR 8[r12]
	mov	rdi, rbp
	mov	DWORD PTR 76[rbp], eax
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 0[rbp], 1
	mov	DWORD PTR 72[rbp], eax
	test	r13, r13
	je	.L2
	call	HFS_I@PLT
	mov	edx, DWORD PTR 0[r13]
	mov	DWORD PTR 12[rax], edx
.L3:
	mov	r13d, DWORD PTR sys_tz[rip]
	mov	rdi, rbp
	call	HFS_I@PLT
	mov	r12, QWORD PTR [r12]
	imul	r13d, r13d, 60
	mov	DWORD PTR [rax], r13d
	mov	eax, DWORD PTR [r12]
	cmp	eax, 128
	je	.L4
	cmp	eax, 129
	je	.L5
	mov	rdi, rbp
	call	make_bad_inode@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	call	HFS_IS_RSRC@PLT
	mov	edi, DWORD PTR 28[r12]
	test	eax, eax
	je	.L14
	call	be16_to_cpu@PLT
	mov	ecx, DWORD PTR 32[r12]
	mov	edx, DWORD PTR 36[r12]
	mov	rdi, rbp
	mov	esi, DWORD PTR 40[r12]
	mov	r8d, eax
	call	hfs_inode_read_fork@PLT
.L8:
	mov	edi, DWORD PTR 24[r12]
	call	be32_to_cpu@PLT
	mov	QWORD PTR 56[rbp], rax
	mov	eax, DWORD PTR S_IRUGO[rip]
	or	eax, DWORD PTR S_IXUGO[rip]
	mov	edx, eax
	mov	eax, DWORD PTR 16[r12]
	test	DWORD PTR HFS_FIL_LOCK[rip], eax
	jne	.L9
	or	edx, DWORD PTR S_IWUGO[rip]
.L9:
	mov	eax, DWORD PTR [rbx]
	mov	edi, DWORD PTR 20[r12]
	not	eax
	and	eax, edx
	or	eax, DWORD PTR S_IFREG[rip]
	mov	DWORD PTR 4[rbp], eax
	call	hfs_m_to_utime@PLT
	lea	rcx, hfs_aops[rip]
	mov	QWORD PTR 24[rbp], rax
	mov	QWORD PTR 32[rbp], rax
	mov	QWORD PTR 40[rbp], rax
	lea	rax, hfs_file_inode_operations[rip]
	mov	QWORD PTR 16[rbp], rax
	lea	rax, hfs_file_operations[rip]
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR 64[rbp]
	mov	QWORD PTR [rax], rcx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[r12]
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 8[r12]
	mov	QWORD PTR 56[rbp], rax
	call	be16_to_cpu@PLT
	mov	rdi, rbp
	add	eax, 2
	mov	DWORD PTR 48[rbp], eax
	call	HFS_I@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	DWORD PTR 4[rax], 0
	mov	eax, DWORD PTR 4[rbx]
	not	eax
	and	eax, DWORD PTR S_IRWXUGO[rip]
	or	eax, DWORD PTR S_IFDIR[rip]
	mov	DWORD PTR 4[rbp], eax
	call	hfs_m_to_utime@PLT
	mov	QWORD PTR 24[rbp], rax
	mov	QWORD PTR 32[rbp], rax
	mov	QWORD PTR 40[rbp], rax
	lea	rax, hfs_dir_inode_operations[rip]
	mov	QWORD PTR 16[rbp], rax
	lea	rax, hfs_dir_operations[rip]
	mov	QWORD PTR 8[rbp], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L2:
	.cfi_restore_state
	call	HFS_I@PLT
	mov	edx, DWORD PTR HFS_FLG_RSRC[rip]
	or	DWORD PTR 8[rax], edx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	call	be16_to_cpu@PLT
	mov	ecx, DWORD PTR 44[r12]
	mov	edx, DWORD PTR 48[r12]
	mov	rdi, rbp
	mov	esi, DWORD PTR 52[r12]
	mov	r8d, eax
	call	hfs_inode_read_fork@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	hfs_read_inode, .-hfs_read_inode
	.comm	sys_tz,4,4
	.comm	hfs_file_operations,4,4
	.comm	hfs_file_inode_operations,4,4
	.comm	hfs_dir_operations,4,4
	.comm	hfs_dir_inode_operations,4,4
	.comm	hfs_aops,4,4
	.comm	S_IXUGO,4,4
	.comm	S_IWUGO,4,4
	.comm	S_IRWXUGO,4,4
	.comm	S_IRUGO,4,4
	.comm	S_IFREG,4,4
	.comm	S_IFDIR,4,4
	.comm	HFS_FLG_RSRC,4,4
	.comm	HFS_FIL_LOCK,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_inode.c_hfs_read_inode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hfs_read_inode, %function
hfs_read_inode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	sub	sp, sp, #12
	ldr	r0, [r0, #48]
	mov	r7, r1
	bl	HFS_SB
	mov	r6, r0
	mov	r0, r4
	bl	HFS_I
	mov	r5, #0
	str	r5, [r0, #8]
	mov	r0, r4
	bl	HFS_I
	str	r5, [r0, #24]
	mov	r0, r4
	bl	HFS_I
	add	r0, r0, #20
	bl	mutex_init
	mov	r0, r4
	bl	HFS_I
	add	r0, r0, #16
	bl	INIT_LIST_HEAD
	mov	r2, #1
	ldr	r3, [r6, #12]
	ldr	r5, [r7, #4]
	str	r3, [r4, #44]
	ldr	r3, [r6, #8]
	cmp	r5, #0
	mov	r0, r4
	str	r2, [r4]
	str	r3, [r4, #40]
	beq	.L2
	bl	HFS_I
	ldr	r3, [r5]
	str	r3, [r0, #12]
.L3:
	ldr	r3, .L15
	mov	r0, r4
	ldr	r5, [r3]
	bl	HFS_I
	ldr	r7, [r7]
	rsb	r5, r5, r5, lsl #4
	ldr	r3, [r7]
	lsl	r5, r5, #2
	cmp	r3, #128
	str	r5, [r0]
	beq	.L4
	cmp	r3, #129
	beq	.L5
	mov	r0, r4
	bl	make_bad_inode
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L4:
	mov	r0, r4
	bl	HFS_IS_RSRC
	cmp	r0, #0
	ldr	r0, [r7, #28]
	ldreq	r5, [r7, #52]
	ldreq	r8, [r7, #48]
	ldreq	r9, [r7, #44]
	ldrne	r5, [r7, #40]
	ldrne	r8, [r7, #36]
	ldrne	r9, [r7, #32]
	bl	be16_to_cpu
	mov	r3, r9
	mov	r2, r8
	mov	r1, r5
	str	r0, [sp]
	mov	r0, r4
	bl	hfs_inode_read_fork
	ldr	r0, [r7, #24]
	bl	be32_to_cpu
	ldr	r1, .L15+4
	ldr	r2, .L15+8
	ldr	ip, [r1]
	ldr	r2, [r2]
	ldr	r1, [r7, #16]
	ldr	r3, .L15+12
	tst	r1, r2
	ldreq	r2, .L15+16
	ldr	r3, [r3]
	ldreq	r2, [r2]
	orr	r3, r3, ip
	orreq	r3, r3, r2
	ldr	r2, .L15+20
	ldr	r1, [r6]
	ldr	r2, [r2]
	bic	r3, r3, r1
	orr	r3, r3, r2
	str	r0, [r4, #32]
	ldr	r0, [r7, #20]
	str	r3, [r4, #4]
	bl	hfs_m_to_utime
	str	r0, [r4, #16]
	str	r0, [r4, #20]
	str	r0, [r4, #24]
	mov	r0, #0
	ldr	ip, .L15+24
	ldr	r1, .L15+28
	ldr	r3, [r4, #36]
	ldr	r2, .L15+32
	str	ip, [r4, #12]
	str	r1, [r4, #8]
	str	r2, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	ldr	r0, [r7, #12]
	bl	be32_to_cpu
	mov	r3, r0
	ldr	r0, [r7, #8]
	str	r3, [r4, #32]
	bl	be16_to_cpu
	add	r0, r0, #2
	str	r0, [r4, #28]
	mov	r0, r4
	bl	HFS_I
	mov	r1, #0
	mov	r2, r0
	ldr	r3, .L15+36
	ldr	ip, [r6, #4]
	ldr	r3, [r3]
	ldr	r0, .L15+40
	bic	r3, r3, ip
	ldr	ip, [r0]
	ldr	r0, [r7, #4]
	orr	r3, r3, ip
	str	r1, [r2, #4]
	str	r3, [r4, #4]
	bl	hfs_m_to_utime
	str	r0, [r4, #16]
	str	r0, [r4, #20]
	str	r0, [r4, #24]
	mov	r0, #0
	ldr	r2, .L15+44
	ldr	r3, .L15+48
	str	r2, [r4, #12]
	str	r3, [r4, #8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	bl	HFS_I
	ldr	r2, .L15+52
	ldr	r3, [r0, #8]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r0, #8]
	b	.L3
.L16:
	.align	2
.L15:
	.word	sys_tz
	.word	S_IXUGO
	.word	HFS_FIL_LOCK
	.word	S_IRUGO
	.word	S_IWUGO
	.word	S_IFREG
	.word	hfs_file_inode_operations
	.word	hfs_file_operations
	.word	hfs_aops
	.word	S_IRWXUGO
	.word	S_IFDIR
	.word	hfs_dir_inode_operations
	.word	hfs_dir_operations
	.word	HFS_FLG_RSRC
	.size	hfs_read_inode, .-hfs_read_inode
	.comm	sys_tz,4,4
	.comm	hfs_file_operations,4,4
	.comm	hfs_file_inode_operations,4,4
	.comm	hfs_dir_operations,4,4
	.comm	hfs_dir_inode_operations,4,4
	.comm	hfs_aops,4,4
	.comm	S_IXUGO,4,4
	.comm	S_IWUGO,4,4
	.comm	S_IRWXUGO,4,4
	.comm	S_IRUGO,4,4
	.comm	S_IFREG,4,4
	.comm	S_IFDIR,4,4
	.comm	HFS_FLG_RSRC,4,4
	.comm	HFS_FIL_LOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
