	.file	"extr_kern_conf.c_make_dev_sv.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"make_dev_sv: both WAITOK and NOWAIT specified"
	.align 8
.LC1:
	.string	"make_dev_sv: bad si_name (error=%d, si_name=%s)"
	.text
	.p2align 4
	.type	make_dev_sv, @function
make_dev_sv:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	mov	esi, 40
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	DWORD PTR 12[rsp], ecx
	lea	r15, 16[rsp]
	mov	rdi, r15
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	bzero@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	r14d, DWORD PTR EINVAL[rip]
	cmp	edx, 40
	jbe	.L30
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	mov	rdi, rbp
	mov	rsi, r15
	call	bcopy@PLT
	mov	eax, DWORD PTR 20[rsp]
	mov	edi, 1
	test	DWORD PTR MAKEDEV_WAITOK[rip], eax
	je	.L4
	xor	edi, edi
	test	DWORD PTR MAKEDEV_NOWAIT[rip], eax
	sete	dil
.L4:
	lea	rsi, .LC0[rip]
	call	KASSERT@PLT
	mov	edi, DWORD PTR 20[rsp]
	call	devfs_alloc@PLT
	mov	r14d, DWORD PTR ENOMEM[rip]
	mov	r13, rax
	test	rax, rax
	je	.L1
	xor	eax, eax
	call	dev_lock@PLT
	mov	esi, DWORD PTR 20[rsp]
	mov	rdi, QWORD PTR 48[rsp]
	call	prep_cdevsw@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L32
	mov	rsi, r13
	mov	rdi, r15
	call	newdev@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR SI_NAMED[rip], eax
	je	.L33
.L7:
	mov	eax, DWORD PTR 20[rsp]
	test	DWORD PTR MAKEDEV_REF[rip], eax
	jne	.L34
.L10:
	test	DWORD PTR MAKEDEV_ETERNAL[rip], eax
	je	.L11
	mov	eax, DWORD PTR SI_ETERNAL[rip]
	or	DWORD PTR 0[rbp], eax
.L11:
	mov	rdi, rbp
	call	dev2unit@PLT
	mov	rdi, rbp
	call	devtoname@PLT
	xor	edi, edi
	movsx	rsi, eax
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR SI_NAMED[rip], eax
	sete	dil
	call	KASSERT@PLT
	mov	rdi, QWORD PTR 40[rsp]
	mov	eax, DWORD PTR SI_NAMED[rip]
	or	DWORD PTR 0[rbp], eax
	test	rdi, rdi
	je	.L12
	call	crhold@PLT
	mov	DWORD PTR 16[rbp], eax
.L12:
	mov	eax, DWORD PTR 32[rsp]
	mov	rdi, rbp
	mov	DWORD PTR 12[rbp], eax
	mov	eax, DWORD PTR 28[rsp]
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR 24[rsp]
	mov	DWORD PTR 4[rbp], eax
	call	devfs_create@PLT
	mov	edi, DWORD PTR devfs_inos[rip]
	call	clean_unrhdrl@PLT
	xor	eax, eax
	call	dev_unlock_and_free@PLT
	mov	esi, DWORD PTR 20[rsp]
	mov	rdi, rbp
	call	notify_create@PLT
	mov	QWORD PTR [rbx], rbp
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	call	prep_devname@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR 20[rsp]
	test	DWORD PTR MAKEDEV_CHECKNAME[rip], eax
	je	.L35
.L8:
	cmp	r13, rbp
	je	.L36
	xor	eax, eax
	mov	r14d, r12d
	call	dev_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	xor	eax, eax
	call	dev_unlock@PLT
	mov	rdi, r13
	call	devfs_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdi, rbp
	call	dev_refl@PLT
	mov	eax, DWORD PTR 20[rsp]
	jmp	.L10
.L35:
	mov	edx, DWORD PTR 20[rbp]
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	call	panic@PLT
	jmp	.L8
.L36:
	mov	esi, DWORD PTR si_list[rip]
	mov	rdi, r13
	mov	r14d, r12d
	call	LIST_REMOVE@PLT
	xor	eax, eax
	call	dev_unlock@PLT
	mov	rdi, r13
	call	devfs_free@PLT
	jmp	.L1
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	make_dev_sv, .-make_dev_sv
	.comm	si_list,4,4
	.comm	devfs_inos,4,4
	.comm	SI_NAMED,4,4
	.comm	SI_ETERNAL,4,4
	.comm	MAKEDEV_WAITOK,4,4
	.comm	MAKEDEV_REF,4,4
	.comm	MAKEDEV_NOWAIT,4,4
	.comm	MAKEDEV_ETERNAL,4,4
	.comm	MAKEDEV_CHECKNAME,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_kern_conf.c_make_dev_sv.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"make_dev_sv: both WAITOK and NOWAIT specified\000"
	.align	2
.LC1:
	.ascii	"make_dev_sv: bad si_name (error=%d, si_name=%s)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_dev_sv, %function
make_dev_sv:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	sub	sp, sp, #32
	mov	r7, r3
	ldr	r3, .L36
	mov	r5, r1
	mov	r0, sp
	mov	r1, #28
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	bzero
	ldr	r2, [r4]
	cmp	r2, #28
	bls	.L2
	ldr	r3, .L36+4
	ldr	r6, [r3]
.L1:
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	mov	r0, r6
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, r4
	mov	r1, sp
	bl	bcopy
	ldr	r2, .L36+8
	ldr	r3, [sp, #4]
	ldr	r2, [r2]
	tst	r3, r2
	moveq	r0, #1
	beq	.L4
	ldr	r2, .L36+12
	ldr	r2, [r2]
	tst	r3, r2
	moveq	r0, #1
	movne	r0, #0
.L4:
	ldr	r1, .L36+16
	bl	KASSERT
	ldr	r0, [sp, #4]
	bl	devfs_alloc
	subs	r9, r0, #0
	beq	.L30
	bl	dev_lock
	ldr	r1, [sp, #4]
	ldr	r0, [sp, #24]
	bl	prep_cdevsw
	subs	r6, r0, #0
	bne	.L31
	mov	r0, sp
	mov	r1, r9
	bl	newdev
	ldr	r10, .L36+20
	ldr	r2, [r0]
	ldr	r3, [r10]
	mov	r4, r0
	tst	r2, r3
	beq	.L32
.L7:
	ldr	r3, .L36+24
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L33
.L10:
	ldr	r1, .L36+28
	ldr	r3, [r4]
	ldr	r1, [r1]
	mov	r0, r4
	tst	r2, r1
	ldrne	r2, .L36+32
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	ldr	r2, [r10]
	strne	r3, [r4]
	tst	r3, r2
	moveq	r7, #1
	movne	r7, #0
	bl	dev2unit
	mov	r0, r4
	bl	devtoname
	mov	r1, r0
	mov	r0, r7
	bl	KASSERT
	ldr	r2, [r10]
	ldr	r3, [r4]
	ldr	r0, [sp, #20]
	orr	r3, r3, r2
	cmp	r0, #0
	str	r3, [r4]
	beq	.L12
	bl	crhold
	str	r0, [r4, #16]
.L12:
	ldr	r1, [sp, #16]
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #8]
	str	r1, [r4, #12]
	str	r2, [r4, #8]
	str	r3, [r4, #4]
	mov	r0, r4
	bl	devfs_create
	ldr	r3, .L36+36
	ldr	r0, [r3]
	bl	clean_unrhdrl
	bl	dev_unlock_and_free
	mov	r0, r4
	ldr	r1, [sp, #4]
	bl	notify_create
	str	r4, [r5]
	b	.L1
.L32:
	mov	r2, r7
	mov	r1, r8
	bl	prep_devname
	subs	r7, r0, #0
	beq	.L7
	ldr	r3, .L36+40
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L34
.L8:
	cmp	r9, r4
	beq	.L35
	bl	dev_unlock
	mov	r6, r7
	b	.L1
.L30:
	ldr	r3, .L36+44
	ldr	r6, [r3]
	b	.L1
.L31:
	bl	dev_unlock
	mov	r0, r9
	bl	devfs_free
	b	.L1
.L33:
	mov	r0, r4
	bl	dev_refl
	ldr	r2, [sp, #4]
	b	.L10
.L34:
	mov	r1, r7
	ldr	r2, [r4, #20]
	ldr	r0, .L36+48
	bl	panic
	b	.L8
.L35:
	ldr	r3, .L36+52
	mov	r0, r9
	ldr	r1, [r3]
	bl	LIST_REMOVE
	bl	dev_unlock
	mov	r0, r9
	mov	r6, r7
	bl	devfs_free
	b	.L1
.L29:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	.LC2
	.word	EINVAL
	.word	MAKEDEV_WAITOK
	.word	MAKEDEV_NOWAIT
	.word	.LC0
	.word	SI_NAMED
	.word	MAKEDEV_REF
	.word	MAKEDEV_ETERNAL
	.word	SI_ETERNAL
	.word	devfs_inos
	.word	MAKEDEV_CHECKNAME
	.word	ENOMEM
	.word	.LC1
	.word	si_list
	.size	make_dev_sv, .-make_dev_sv
	.comm	si_list,4,4
	.comm	devfs_inos,4,4
	.comm	SI_NAMED,4,4
	.comm	SI_ETERNAL,4,4
	.comm	MAKEDEV_WAITOK,4,4
	.comm	MAKEDEV_REF,4,4
	.comm	MAKEDEV_NOWAIT,4,4
	.comm	MAKEDEV_ETERNAL,4,4
	.comm	MAKEDEV_CHECKNAME,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
