	.file	"extr_kern_osd.c_osd_get.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid type."
.LC1:
	.string	"Invalid slot."
.LC2:
	.string	"Unused slot."
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"Slot doesn't exist (type=%u, slot=%u)."
	.align 8
.LC4:
	.string	"Returning slot value (type=%u, slot=%u, value=%p)."
	.text
	.p2align 4
	.globl	osd_get
	.type	osd_get, @function
osd_get:
.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
	mov	r13, rsi
	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
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR OSD_FIRST[rip], rbp
	ja	.L2
	xor	edi, edi
	cmp	QWORD PTR OSD_LAST[rip], rbp
	setnb	dil
.L2:
	lea	rsi, .LC0[rip]
	mov	rbx, rbp
	lea	r14, 4[rsp]
	call	KASSERT@PLT
	xor	edi, edi
	test	r12, r12
	lea	rsi, .LC1[rip]
	setne	dil
	sal	rbx, 4
	lea	r15, 0[0+r12*8]
	call	KASSERT@PLT
	mov	rax, QWORD PTR osdm[rip]
	xor	edi, edi
	lea	rsi, .LC2[rip]
	mov	rax, QWORD PTR 8[rax+rbx]
	cmp	QWORD PTR -8[rax+r12*8], 0
	setne	dil
	call	KASSERT@PLT
	mov	rdi, QWORD PTR osdm[rip]
	mov	rsi, r14
	add	rdi, rbx
	call	rm_rlock@PLT
	cmp	QWORD PTR 0[r13], r12
	jb	.L10
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, r12
	mov	rsi, rbp
	lea	rdi, .LC4[rip]
	mov	r13, QWORD PTR -8[rax+r15]
	xor	eax, eax
	mov	rcx, r13
	call	OSD_DEBUG@PLT
.L4:
	add	rbx, QWORD PTR osdm[rip]
	mov	rsi, r14
	mov	rdi, rbx
	call	rm_runlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
.L10:
	.cfi_restore_state
	mov	rdx, r12
	mov	rsi, rbp
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	OSD_DEBUG@PLT
	xor	r13d, r13d
	jmp	.L4
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	osd_get, .-osd_get
	.comm	osdm,8,8
	.comm	OSD_LAST,8,8
	.comm	OSD_FIRST,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_kern_osd.c_osd_get.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid type.\000"
	.align	2
.LC1:
	.ascii	"Invalid slot.\000"
	.align	2
.LC2:
	.ascii	"Unused slot.\000"
	.align	2
.LC3:
	.ascii	"Slot doesn't exist (type=%u, slot=%u).\000"
	.align	2
.LC4:
	.ascii	"Returning slot value (type=%u, slot=%u, value=%p).\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	osd_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	osd_get, %function
osd_get:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L11
	sub	sp, sp, #12
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r3, r0
	ldr	r3, .L11+4
	mov	r6, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	movhi	r0, #0
	bhi	.L2
	ldr	r3, .L11+8
	ldr	r0, [r3]
	cmp	r0, r4
	movcc	r0, #0
	movcs	r0, #1
.L2:
	ldr	r1, .L11+12
	bl	KASSERT
	ldr	r7, .L11+16
	subs	r0, r5, #0
	movne	r0, #1
	ldr	r1, .L11+20
	bl	KASSERT
	ldr	r3, [r7]
	sub	r9, r5, #-1073741823
	add	r3, r3, r4, lsl #3
	ldr	r3, [r3, #4]
	ldr	r1, .L11+24
	ldr	r0, [r3, r9, lsl #2]
	lsl	r8, r4, #3
	subs	r0, r0, #0
	movne	r0, #1
	bl	KASSERT
	ldr	r0, [r7]
	mov	r1, sp
	add	r0, r0, r8
	bl	rm_rlock
	ldr	r3, [r6]
	cmp	r3, r5
	bcc	.L9
	ldr	r3, [r6, #4]
	mov	r2, r5
	ldr	r5, [r3, r9, lsl #2]
	mov	r1, r4
	mov	r3, r5
	ldr	r0, .L11+28
	bl	OSD_DEBUG
.L4:
	ldr	r0, [r7]
	mov	r1, sp
	add	r0, r0, r8
	bl	rm_runlock
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L11+32
	bl	OSD_DEBUG
	mov	r5, #0
	b	.L4
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	OSD_FIRST
	.word	.LC5
	.word	OSD_LAST
	.word	.LC0
	.word	osdm
	.word	.LC1
	.word	.LC2
	.word	.LC4
	.word	.LC3
	.size	osd_get, .-osd_get
	.comm	osdm,4,4
	.comm	OSD_LAST,4,4
	.comm	OSD_FIRST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
