	.file	"extr_debug.c_diva_get_driver_dbg_mask.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"driver info"
	.text
	.p2align 4
	.globl	diva_get_driver_dbg_mask
	.type	diva_get_driver_dbg_mask, @function
diva_get_driver_dbg_mask:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	je	.L5
	mov	rbx, rdi
	test	rdi, rdi
	je	.L5
	mov	rdi, QWORD PTR clients[rip]
	mov	rbp, rsi
	call	ARRAY_SIZE@PLT
	cmp	rax, rbx
	jbe	.L5
	lea	r12, 4[rsp]
	lea	rdx, .LC0[rip]
	mov	r13d, -1
	mov	rsi, r12
	lea	rdi, dbg_q_lock[rip]
	call	diva_os_enter_spin_lock@PLT
	mov	rdx, QWORD PTR clients[rip]
	lea	rax, 0[0+rbx*8]
	mov	rdx, QWORD PTR [rdx+rbx*8]
	test	rdx, rdx
	je	.L6
	movsx	rdx, DWORD PTR [rdx]
	mov	r13d, 4
	mov	QWORD PTR 0[rbp], rdx
	add	rax, QWORD PTR clients[rip]
	mov	rdx, QWORD PTR [rax]
	mov	edx, DWORD PTR [rdx]
	sar	edx, 8
	movsx	rdx, edx
	mov	QWORD PTR 8[rbp], rdx
	mov	rdx, QWORD PTR [rax]
	movsx	rdx, WORD PTR 2[rdx]
	mov	QWORD PTR 16[rbp], rdx
	mov	rax, QWORD PTR [rax]
	movsx	rax, BYTE PTR 3[rax]
	mov	QWORD PTR 24[rbp], rax
.L6:
	lea	rdx, .LC0[rip]
	mov	rsi, r12
	lea	rdi, dbg_q_lock[rip]
	call	diva_os_leave_spin_lock@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r13d, -1
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	diva_get_driver_dbg_mask, .-diva_get_driver_dbg_mask
	.comm	dbg_q_lock,4,4
	.comm	clients,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_debug.c_diva_get_driver_dbg_mask.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"driver info\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	diva_get_driver_dbg_mask
	.syntax unified
	.arm
	.fpu softvfp
	.type	diva_get_driver_dbg_mask, %function
diva_get_driver_dbg_mask:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	cmpne	r1, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L11
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L4
	ldr	r5, .L11+4
	mov	r4, r0
	ldr	r0, [r5]
	mov	r6, r1
	bl	ARRAY_SIZE
	cmp	r0, r4
	bls	.L4
	mov	r1, sp
	ldr	r2, .L11+8
	ldr	r0, .L11+12
	bl	diva_os_enter_spin_lock
	ldr	r3, [r5]
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #0
	mvneq	r7, #0
	beq	.L5
	mov	r7, #4
	ldr	r3, [r3]
	str	r3, [r6]
	ldr	r3, [r5]
	ldr	r2, [r3, r4, lsl #2]
	ldr	r2, [r2]
	asr	r2, r2, #8
	str	r2, [r6, #4]
	ldr	r2, [r3, r4, lsl #2]
	ldrsh	r2, [r2, #2]
	str	r2, [r6, #8]
	ldr	r3, [r3, r4, lsl #2]
	ldrsb	r3, [r3, #3]
	str	r3, [r6, #12]
.L5:
	mov	r1, sp
	ldr	r2, .L11+8
	ldr	r0, .L11+12
	bl	diva_os_leave_spin_lock
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	mvn	r7, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	clients
	.word	.LC0
	.word	dbg_q_lock
	.size	diva_get_driver_dbg_mask, .-diva_get_driver_dbg_mask
	.comm	dbg_q_lock,4,4
	.comm	clients,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
