	.file	"extr_dissect-image.c_is_loop_device.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/../loop/"
.LC1:
	.string	"/loop/"
	.text
	.p2align 4
	.type	is_loop_device, @function
is_loop_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	.cfi_offset 12, -24
	mov	r12, rdi
	lea	rdi, .LC0[rip]
	sub	rsp, 24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	SYS_BLOCK_PATH_MAX@PLT
	mov	rcx, rsp
	cdqe
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L19:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L19
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L20
.L4:
	mov	rdi, r12
	call	assert@PLT
	lea	rsi, -32[rbp]
	mov	rdi, r12
	call	stat@PLT
	test	rax, rax
	js	.L21
	mov	edi, DWORD PTR -28[rbp]
	call	S_ISBLK@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR ENOTBLK[rip]
	neg	eax
.L1:
	mov	rsi, QWORD PTR -24[rbp]
	xor	rsi, QWORD PTR fs:40
	jne	.L22
	mov	r12, QWORD PTR -8[rbp]
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	eax, DWORD PTR errno[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR -32[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rsp
	call	xsprintf_sys_block_path@PLT
	mov	esi, DWORD PTR F_OK[rip]
	mov	rdi, rsp
	call	access@PLT
	test	rax, rax
	js	.L8
.L10:
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR errno[rip]
	cmp	eax, DWORD PTR ENOENT[rip]
	je	.L9
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, DWORD PTR -32[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rsp
	call	xsprintf_sys_block_path@PLT
	mov	esi, DWORD PTR F_OK[rip]
	mov	rdi, rsp
	call	access@PLT
	test	rax, rax
	jns	.L10
	mov	edx, DWORD PTR errno[rip]
	xor	eax, eax
	cmp	edx, DWORD PTR ENOENT[rip]
	je	.L1
	mov	eax, edx
	neg	eax
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	is_loop_device, .-is_loop_device
	.comm	errno,4,4
	.comm	F_OK,4,4
	.comm	ENOTBLK,4,4
	.comm	ENOENT,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_dissect-image.c_is_loop_device.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/../loop/\000"
	.align	2
.LC1:
	.ascii	"/loop/\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_loop_device, %function
is_loop_device:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #20
	ldr	r3, .L15
	mov	r4, r0
	ldr	r0, .L15+4
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	SYS_BLOCK_PATH_MAX
	add	r3, r0, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r0, r4
	bl	assert
	mov	r0, r4
	sub	r1, fp, #32
	bl	stat
	cmp	r0, #0
	blt	.L13
	ldr	r0, [fp, #-28]
	bl	S_ISBLK
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L15+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L4:
	ldr	r4, .L15+12
	ldr	r2, [fp, #-32]
	ldr	r1, .L15+16
	mov	r0, sp
	bl	xsprintf_sys_block_path
	mov	r0, sp
	ldr	r1, [r4]
	bl	access
	cmp	r0, #0
	blt	.L5
.L7:
	mov	r0, #1
	b	.L1
.L13:
	ldr	r3, .L15+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L5:
	ldr	r6, .L15+20
	ldr	r5, .L15+24
	ldr	r0, [r6]
	ldr	r3, [r5]
	cmp	r0, r3
	beq	.L6
.L11:
	rsb	r0, r0, #0
	b	.L1
.L6:
	ldr	r2, [fp, #-32]
	ldr	r1, .L15+4
	mov	r0, sp
	bl	xsprintf_sys_block_path
	mov	r0, sp
	ldr	r1, [r4]
	bl	access
	cmp	r0, #0
	bge	.L7
	ldr	r0, [r6]
	ldr	r3, [r5]
	cmp	r0, r3
	moveq	r0, #0
	bne	.L11
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	.LC0
	.word	ENOTBLK
	.word	F_OK
	.word	.LC1
	.word	errno
	.word	ENOENT
	.size	is_loop_device, .-is_loop_device
	.comm	errno,4,4
	.comm	F_OK,4,4
	.comm	ENOTBLK,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
