	.file	"extr_debug.c_debug_register_view.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Registering view %s/%s would exceed the maximum number of views %i\n"
	.text
	.p2align 4
	.globl	debug_register_view
	.type	debug_register_view, @function
debug_register_view:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L9
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR S_IXUGO[rip]
	mov	esi, DWORD PTR [rdi]
	or	esi, DWORD PTR S_IFREG[rip]
	not	eax
	and	esi, eax
	cmp	QWORD PTR 24[r12], 0
	jne	.L3
	cmp	QWORD PTR 16[r12], 0
	jne	.L3
	cmp	QWORD PTR 8[r12], 0
	jne	.L3
	mov	eax, DWORD PTR S_IRUSR[rip]
	or	eax, DWORD PTR S_IRGRP[rip]
	or	eax, DWORD PTR S_IROTH[rip]
	not	eax
	and	esi, eax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 4[r12]
	test	eax, eax
	je	.L19
.L4:
	mov	edx, DWORD PTR 28[rbx]
	mov	edi, DWORD PTR [r12]
	mov	rcx, rbx
	lea	r13, 4[rbx]
	lea	r8, debug_file_ops[rip]
	call	debugfs_create_file@PLT
	xor	esi, esi
	mov	rdi, r13
	mov	rbp, rax
	call	spin_lock_irqsave@PLT
	mov	r8d, DWORD PTR DEBUG_MAX_VIEWS[rip]
	test	r8d, r8d
	jle	.L5
	mov	rcx, QWORD PTR 16[rbx]
	xor	eax, eax
	xor	edx, edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	add	edx, 1
	add	rax, 8
	cmp	edx, r8d
	je	.L8
.L7:
	cmp	QWORD PTR [rcx+rax], 0
	lea	rsi, [rcx+rax]
	jne	.L20
.L6:
	mov	rdx, QWORD PTR 8[rbx]
	mov	QWORD PTR [rsi], r12
	mov	rdi, r13
	xor	esi, esi
	mov	QWORD PTR [rdx+rax], rbp
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L19:
	.cfi_restore_state
	mov	eax, DWORD PTR S_IWUSR[rip]
	or	eax, DWORD PTR S_IWGRP[rip]
	or	eax, DWORD PTR S_IWOTH[rip]
	not	eax
	and	esi, eax
	jmp	.L4
.L5:
	je	.L8
	mov	rsi, QWORD PTR 16[rbx]
	xor	eax, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
.L2:
	endbr64
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	edx, DWORD PTR [r12]
	mov	esi, DWORD PTR 24[rbx]
	mov	ecx, r8d
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	mov	rdi, r13
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	rdi, rbp
	call	debugfs_remove@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, -1
	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
	.cfi_endproc
.LFE0:
	.size	debug_register_view, .-debug_register_view
	.comm	debug_file_ops,4,4
	.comm	S_IXUGO,4,4
	.comm	S_IWUSR,4,4
	.comm	S_IWOTH,4,4
	.comm	S_IWGRP,4,4
	.comm	S_IRUSR,4,4
	.comm	S_IROTH,4,4
	.comm	S_IRGRP,4,4
	.comm	S_IFREG,4,4
	.comm	DEBUG_MAX_VIEWS,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_debug.c_debug_register_view.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Registering view %s/%s would exceed the maximum num"
	.ascii	"ber of views %i\012\000"
	.text
	.align	2
	.global	debug_register_view
	.syntax unified
	.arm
	.fpu softvfp
	.type	debug_register_view, %function
debug_register_view:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
.L2:
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r0, #0
	moveq	r0, r5
	sub	sp, sp, #8
	beq	.L1
	mov	r6, r1
	ldr	r2, .L18
	ldr	r3, .L18+4
	ldr	r0, [r2]
	ldr	r1, [r5]
	ldr	r2, [r6, #16]
	ldr	r3, [r3]
	orr	r1, r1, r0
	cmp	r2, #0
	bic	r1, r1, r3
	bne	.L3
	ldr	r3, [r6, #12]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [r6, #8]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L18+8
	ldr	r0, .L18+12
	ldr	r2, .L18+16
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	r2, [r2]
	orr	r3, r3, r0
	orr	r3, r3, r2
	bic	r1, r1, r3
.L3:
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L16
.L4:
	ldr	r3, .L18+20
	add	r8, r5, #4
	str	r3, [sp]
	ldr	r2, [r5, #20]
	mov	r3, r5
	ldr	r0, [r6]
	bl	debugfs_create_file
	mov	r1, #0
	mov	r7, r0
	mov	r0, r8
	bl	spin_lock_irqsave
	ldr	r3, .L18+24
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L5
	mov	r2, #0
	ldr	ip, [r5, #12]
	b	.L7
.L17:
	cmp	r2, r3
	beq	.L8
.L7:
	ldr	r4, [ip]
	mov	lr, ip
	cmp	r4, #0
	lsl	r1, r2, #2
	add	ip, ip, #4
	add	r2, r2, #1
	bne	.L17
.L6:
	ldr	r3, [r5, #8]
	mov	r0, r8
	str	r6, [lr]
	str	r7, [r3, r1]
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, #0
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r3, .L18+28
	ldr	r0, .L18+32
	ldr	r2, .L18+36
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	r2, [r2]
	orr	r3, r3, r0
	orr	r3, r3, r2
	bic	r1, r1, r3
	b	.L4
.L5:
	movne	r1, #0
	ldrne	lr, [r5, #12]
	bne	.L6
.L8:
	ldr	r2, [r6]
	ldr	r1, [r5, #16]
	ldr	r0, .L18+40
	bl	pr_err
	mov	r1, #0
	mov	r0, r8
	bl	spin_unlock_irqrestore
	mov	r0, r7
	bl	debugfs_remove
	mvn	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	.align	2
.L18:
	.word	S_IFREG
	.word	S_IXUGO
	.word	S_IRUSR
	.word	S_IRGRP
	.word	S_IROTH
	.word	debug_file_ops
	.word	DEBUG_MAX_VIEWS
	.word	S_IWUSR
	.word	S_IWGRP
	.word	S_IWOTH
	.word	.LC0
	.size	debug_register_view, .-debug_register_view
	.comm	debug_file_ops,4,4
	.comm	S_IXUGO,4,4
	.comm	S_IWUSR,4,4
	.comm	S_IWOTH,4,4
	.comm	S_IWGRP,4,4
	.comm	S_IRUSR,4,4
	.comm	S_IROTH,4,4
	.comm	S_IRGRP,4,4
	.comm	S_IFREG,4,4
	.comm	DEBUG_MAX_VIEWS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
