	.file	"extr_bsd_stubs.c_cdevsw_isfree.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cdevsw_isfree
	.type	cdevsw_isfree, @function
cdevsw_isfree:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	eax, DWORD PTR nchrdev[rip]
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	edi, edi
	js	.L16
.L2:
	cmp	eax, r12d
	jle	.L6
	mov	rdx, QWORD PTR cdevsw[rip]
	movsx	rax, r12d
	lea	rsi, nocdev[rip]
	lea	rdi, [rdx+rax*4]
	mov	edx, 4
	call	memcmp@PLT
	test	rax, rax
	jne	.L6
.L5:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rbx, QWORD PTR cdevsw[rip]
	cmp	edi, -1
	je	.L17
	neg	r12d
	movsx	rdx, r12d
	lea	rbx, [rbx+rdx*4]
	cmp	eax, r12d
	jle	.L6
.L4:
	lea	rbp, nocdev[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L18:
	add	r12d, 1
	add	rbx, 4
	cmp	DWORD PTR nchrdev[rip], r12d
	jle	.L7
.L8:
	mov	edx, 4
	mov	rsi, rbp
	mov	rdi, rbx
	call	memcmp@PLT
	test	rax, rax
	jne	.L18
.L7:
	test	r12d, r12d
	js	.L6
	mov	eax, DWORD PTR nchrdev[rip]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	xor	r12d, r12d
	test	eax, eax
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r12d, -1
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	cdevsw_isfree, .-cdevsw_isfree
	.comm	nocdev,4,4
	.comm	nchrdev,4,4
	.comm	cdevsw,8,8
	.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_bsd_stubs.c_cdevsw_isfree.c"
	.text
	.align	2
	.global	cdevsw_isfree
	.syntax unified
	.arm
	.fpu softvfp
	.type	cdevsw_isfree, %function
cdevsw_isfree:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L20
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r0, #0
	ldr	r6, [r3]
	blt	.L17
.L2:
	cmp	r6, r4
	ble	.L11
	ldr	r3, .L20+4
	mov	r2, #4
	ldr	r0, [r3]
	ldr	r1, .L20+8
	add	r0, r0, r4, lsl #2
	bl	memcmp
	cmp	r0, #0
	mvnne	r4, #0
.L5:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r3, .L20+4
	cmn	r4, #1
	ldr	r5, [r3]
	beq	.L18
	rsb	r3, r4, #0
	cmp	r3, r6
	rsb	r4, r4, r4, lsl #30
	add	r5, r5, r4, lsl #2
	bge	.L11
.L4:
	mov	r4, r3
	ldr	r7, .L20+8
	b	.L7
.L19:
	add	r4, r4, #1
	cmp	r4, r6
	add	r5, r5, #4
	bge	.L11
.L7:
	mov	r2, #4
	mov	r1, r7
	mov	r0, r5
	bl	memcmp
	cmp	r0, #0
	bne	.L19
	cmp	r4, #0
	bge	.L2
.L11:
	mvn	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	cmp	r6, #0
	movgt	r3, #0
	bgt	.L4
	b	.L5
.L21:
	.align	2
.L20:
	.word	nchrdev
	.word	cdevsw
	.word	nocdev
	.size	cdevsw_isfree, .-cdevsw_isfree
	.comm	nocdev,4,4
	.comm	nchrdev,4,4
	.comm	cdevsw,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
