	.file	"extr_mount.c_ismounted.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ismounted
	.type	ismounted, @function
ismounted:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15d, edx
	push	r14
	.cfi_offset 14, -32
	mov	r14, rdi
	push	r13
	push	r12
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR PATH_MAX[rip]
	mov	rcx, rsp
	mov	rbx, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L25
	mov	rdi, QWORD PTR [r14]
	mov	r13, rsp
	cmp	BYTE PTR [rdi], 47
	jne	.L5
.L28:
	cmp	BYTE PTR 1[rdi], 0
	je	.L6
.L5:
	mov	rsi, r13
	call	realpath@PLT
	test	rax, rax
	je	.L26
.L7:
	test	r15d, r15d
	jle	.L6
	movsx	rax, r15d
	lea	rax, [rax+rax*2]
	sal	rax, 2
	lea	rbx, -12[r12+rax]
	lea	r12, -24[r12+rax]
	lea	eax, -1[r15]
	lea	rax, [rax+rax*2]
	sal	rax, 2
	sub	r12, rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	sub	rbx, 12
	cmp	rbx, r12
	je	.L6
.L9:
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, r13
	call	strcmp@PLT
	test	rax, rax
	jne	.L10
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, QWORD PTR 8[r14]
	call	strcmp@PLT
	test	rax, rax
	jne	.L10
	mov	rdi, QWORD PTR 8[r14]
	call	isremountable@PLT
	test	eax, eax
	je	.L13
	mov	rdi, QWORD PTR 16[r14]
	mov	esi, DWORD PTR [rbx]
	call	strcmp@PLT
	test	rax, rax
	jne	.L10
.L13:
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L27
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L25:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	mov	rdi, QWORD PTR [r14]
	cmp	BYTE PTR [rdi], 47
	mov	r13, rsp
	je	.L28
	jmp	.L5
.L26:
	mov	rsi, QWORD PTR [r14]
	mov	edx, ebx
	mov	rdi, r13
	call	strlcpy@PLT
	jmp	.L7
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ismounted, .-ismounted
	.comm	PATH_MAX,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_mount.c_ismounted.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ismounted
	.syntax unified
	.arm
	.fpu softvfp
	.type	ismounted, %function
ismounted:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #12
	ldr	r3, .L23
	mov	r7, r0
	ldr	r5, [r3]
	ldr	r0, [r0]
	add	r3, r5, #7
	bic	r3, r3, #7
	ldrb	ip, [r0]	@ zero_extendqisi2
	sub	sp, sp, r3
	ldr	r3, .L23+4
	cmp	ip, #47
	mov	r4, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r6, sp
	bne	.L2
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L3
.L2:
	mov	r1, r6
	bl	realpath
	cmp	r0, #0
	beq	.L21
.L4:
	subs	r5, r8, #1
	bmi	.L3
	add	r8, r8, r8, lsl #1
	add	r4, r4, r8, lsl #2
	sub	r4, r4, #12
	b	.L6
.L7:
	sub	r5, r5, #1
	cmn	r5, #1
	sub	r4, r4, #12
	beq	.L3
.L6:
	mov	r0, r6
	ldr	r1, [r4, #8]
	bl	strcmp
	cmp	r0, #0
	bne	.L7
	ldr	r1, [r4, #4]
	ldr	r0, [r7, #4]
	bl	strcmp
	cmp	r0, #0
	bne	.L7
	ldr	r0, [r7, #4]
	bl	isremountable
	cmp	r0, #0
	beq	.L10
	ldr	r1, [r4]
	ldr	r0, [r7, #8]
	bl	strcmp
	cmp	r0, #0
	bne	.L7
.L10:
	mov	r0, #1
	b	.L1
.L3:
	mov	r0, #0
.L1:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L21:
	mov	r2, r5
	mov	r0, r6
	ldr	r1, [r7]
	bl	strlcpy
	b	.L4
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	PATH_MAX
	.word	.LC0
	.size	ismounted, .-ismounted
	.comm	PATH_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
