	.file	"extr_block_dev.c_blkdev_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	blkdev_open, @function
blkdev_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rsi]
	mov	edx, DWORD PTR 4[rsi]
	or	eax, DWORD PTR O_LARGEFILE[rip]
	or	edx, DWORD PTR FMODE_NOWAIT[rip]
	mov	DWORD PTR [rsi], eax
	mov	DWORD PTR 4[rsi], edx
	test	DWORD PTR O_NDELAY[rip], eax
	je	.L2
	or	edx, DWORD PTR FMODE_NDELAY[rip]
	mov	DWORD PTR 4[rsi], edx
.L2:
	test	DWORD PTR O_EXCL[rip], eax
	je	.L3
	mov	edx, DWORD PTR FMODE_EXCL[rip]
	or	DWORD PTR 4[r12], edx
.L3:
	and	eax, DWORD PTR O_ACCMODE[rip]
	cmp	eax, 3
	jne	.L4
	mov	eax, DWORD PTR FMODE_WRITE_IOCTL[rip]
	or	DWORD PTR 4[r12], eax
.L4:
	call	bd_acquire@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	mov	DWORD PTR 8[r12], edi
	call	filemap_sample_wb_err@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	rdx, r12
	mov	rdi, rbp
	mov	DWORD PTR 12[r12], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	blkdev_get@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	blkdev_open, .-blkdev_open
	.comm	O_NDELAY,4,4
	.comm	O_LARGEFILE,4,4
	.comm	O_EXCL,4,4
	.comm	O_ACCMODE,4,4
	.comm	FMODE_WRITE_IOCTL,4,4
	.comm	FMODE_NOWAIT,4,4
	.comm	FMODE_NDELAY,4,4
	.comm	FMODE_EXCL,4,4
	.comm	ENOMEM,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_block_dev.c_blkdev_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	blkdev_open, %function
blkdev_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r3, .L17
	ldr	ip, .L17+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r1, .L17+8
	ldr	ip, [ip]
	ldr	r1, [r1]
	orr	r3, r2, r3
	ldr	r2, [r4, #4]
	tst	r3, ip
	orr	r2, r2, r1
	ldrne	r1, .L17+12
	str	r2, [r4, #4]
	ldrne	r1, [r1]
	str	r3, [r4]
	orrne	r2, r1, r2
	strne	r2, [r4, #4]
	ldr	r2, .L17+16
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r1, .L17+20
	ldrne	r2, [r4, #4]
	ldrne	r1, [r1]
	orrne	r2, r2, r1
	strne	r2, [r4, #4]
	ldr	r2, .L17+24
	ldr	r2, [r2]
	and	r3, r3, r2
	cmp	r3, #3
	ldreq	r2, .L17+28
	ldreq	r3, [r4, #4]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r4, #4]
	bl	bd_acquire
	subs	r5, r0, #0
	beq	.L16
	ldr	r3, [r5]
	ldr	r0, [r3]
	str	r0, [r4, #8]
	bl	filemap_sample_wb_err
	mov	r2, r4
	str	r0, [r4, #12]
	ldr	r1, [r4, #4]
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	blkdev_get
.L16:
	ldr	r3, .L17+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L18:
	.align	2
.L17:
	.word	O_LARGEFILE
	.word	O_NDELAY
	.word	FMODE_NOWAIT
	.word	FMODE_NDELAY
	.word	O_EXCL
	.word	FMODE_EXCL
	.word	O_ACCMODE
	.word	FMODE_WRITE_IOCTL
	.word	ENOMEM
	.size	blkdev_open, .-blkdev_open
	.comm	O_NDELAY,4,4
	.comm	O_LARGEFILE,4,4
	.comm	O_EXCL,4,4
	.comm	O_ACCMODE,4,4
	.comm	FMODE_WRITE_IOCTL,4,4
	.comm	FMODE_NOWAIT,4,4
	.comm	FMODE_NDELAY,4,4
	.comm	FMODE_EXCL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
