	.file	"extr_vhba.c_vhba_modprobe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vhba"
	.text
	.p2align 4
	.globl	vhba_modprobe
	.type	vhba_modprobe, @function
vhba_modprobe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	cmp	esi, 128
	je	.L2
	mov	r12d, DWORD PTR EOPNOTSUPP[rip]
	cmp	esi, 129
	jne	.L1
	mov	esi, DWORD PTR M_DEVBUF[rip]
	mov	edx, DWORD PTR M_WAITOK[rip]
	mov	edi, 12
	or	edx, DWORD PTR M_ZERO[rip]
	call	malloc@PLT
	mov	ecx, DWORD PTR MTX_DEF[rip]
	xor	edx, edx
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	QWORD PTR vhba[rip], rax
	call	mtx_init@PLT
	mov	rdi, QWORD PTR vhba[rip]
	call	vhba_attach@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L11
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR vhba[rip]
	call	mtx_lock@PLT
	mov	rax, QWORD PTR vhba[rip]
	lea	rdi, 8[rax]
	call	TAILQ_FIRST@PLT
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR vhba[rip]
	lea	rdi, 4[rax]
	call	TAILQ_FIRST@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	mov	rdi, QWORD PTR vhba[rip]
	call	vhba_detach@PLT
	mov	rdi, QWORD PTR vhba[rip]
	call	mtx_unlock@PLT
.L11:
	mov	rdi, QWORD PTR vhba[rip]
	call	mtx_destroy@PLT
	mov	esi, DWORD PTR M_DEVBUF[rip]
	mov	rdi, QWORD PTR vhba[rip]
	call	free@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r12d, DWORD PTR EBUSY[rip]
	mov	rdi, QWORD PTR vhba[rip]
	call	mtx_unlock@PLT
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vhba_modprobe, .-vhba_modprobe
	.comm	vhba,8,8
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_DEVBUF,4,4
	.comm	MTX_DEF,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EBUSY,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_vhba.c_vhba_modprobe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vhba\000"
	.text
	.align	2
	.global	vhba_modprobe
	.syntax unified
	.arm
	.fpu softvfp
	.type	vhba_modprobe, %function
vhba_modprobe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #128
	push	{r4, r5, r6, lr}
	beq	.L2
	cmp	r1, #129
	bne	.L3
	ldr	r2, .L13
	ldr	r3, .L13+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r6, .L13+8
	orr	r2, r2, r3
	ldr	r1, [r6]
	mov	r0, #12
	bl	malloc
	ldr	r3, .L13+12
	ldr	r5, .L13+16
	mov	r2, #0
	ldr	r3, [r3]
	ldr	r1, .L13+20
	str	r0, [r5]
	bl	mtx_init
	ldr	r0, [r5]
	bl	vhba_attach
	subs	r4, r0, #0
	bne	.L12
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r5, .L13+16
	ldr	r0, [r5]
	bl	mtx_lock
	ldr	r0, [r5]
	add	r0, r0, #8
	bl	TAILQ_FIRST
	cmp	r0, #0
	bne	.L6
	ldr	r0, [r5]
	add	r0, r0, #4
	bl	TAILQ_FIRST
	subs	r4, r0, #0
	bne	.L6
	ldr	r0, [r5]
	bl	vhba_detach
	ldr	r0, [r5]
	bl	mtx_unlock
	ldr	r0, [r5]
	bl	mtx_destroy
	ldr	r3, .L13+8
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	free
	b	.L1
.L6:
	ldr	r3, .L13+24
	ldr	r0, [r5]
	ldr	r4, [r3]
	bl	mtx_unlock
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, .L13+28
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r0, [r5]
	bl	mtx_destroy
	ldr	r1, [r6]
	ldr	r0, [r5]
	bl	free
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	M_WAITOK
	.word	M_ZERO
	.word	M_DEVBUF
	.word	MTX_DEF
	.word	vhba
	.word	.LC0
	.word	EBUSY
	.word	EOPNOTSUPP
	.size	vhba_modprobe, .-vhba_modprobe
	.comm	vhba,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_DEVBUF,4,4
	.comm	MTX_DEF,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
