	.file	"extr_vcos_logcat.c_vcos_log_register.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"*"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"VC_LOGLEVEL format invalid at %s\n"
	.align 8
.LC2:
	.string	"Registered log category '%s' with level %s"
	.text
	.p2align 4
	.globl	vcos_log_register
	.type	vcos_log_register, @function
vcos_log_register:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 96
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsi], rdi
	mov	rax, QWORD PTR VCOS_LOG_UNINITIALIZED[rip]
	cmp	QWORD PTR 8[rsi], rax
	jne	.L2
	mov	rax, QWORD PTR VCOS_LOG_ERROR[rip]
	mov	QWORD PTR 8[rsi], rax
.L2:
	lea	rax, dflt_log_category[rip]
	lea	rdi, lock[rip]
	cmp	rbx, rax
	setne	al
	movzx	eax, al
	mov	DWORD PTR 32[rbx], eax
	call	vcos_mutex_lock@PLT
	mov	rdx, QWORD PTR vcos_logging_categories[rip]
	test	rdx, rdx
	je	.L3
	cmp	rbx, rdx
	je	.L17
	mov	rax, rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	rbx, rax
	je	.L4
.L5:
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L7
.L3:
	add	DWORD PTR 16[rbx], 1
	mov	rdi, rbx
	mov	QWORD PTR 24[rbx], rdx
	mov	QWORD PTR vcos_logging_categories[rip], rbx
	call	vcos_log_platform_register@PLT
	jmp	.L6
.L17:
	mov	rax, rbx
	.p2align 4,,10
	.p2align 3
.L4:
	add	DWORD PTR 16[rax], 1
.L6:
	lea	rdi, lock[rip]
	call	vcos_mutex_unlock@PLT
	xor	eax, eax
	call	_VCOS_LOG_LEVEL@PLT
	mov	QWORD PTR [rsp], rax
	test	rax, rax
	je	.L8
	cmp	BYTE PTR [rax], 0
	je	.L8
	mov	r12, rsp
	lea	rbp, 16[rsp]
	lea	r14, 8[rsp]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR [rsp]
	cmp	BYTE PTR [rax], 0
	je	.L8
.L15:
	mov	ecx, 58
	mov	rdx, r12
	mov	esi, 64
	mov	rdi, rbp
	call	read_tok@PLT
	test	rax, rax
	je	.L9
	mov	edx, 44
	mov	rsi, r12
	mov	rdi, r14
	call	read_level@PLT
	test	rax, rax
	je	.L9
	mov	rsi, r13
	mov	rdi, rbp
	call	strcmp@PLT
	test	rax, rax
	je	.L12
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	strcmp@PLT
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR [rsp]
	cmp	BYTE PTR [rax], 0
	jne	.L15
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR 8[rbx]
	call	vcos_log_level_to_string@PLT
	mov	rsi, QWORD PTR [rbx]
	lea	rdi, .LC2[rip]
	mov	edx, eax
	call	vcos_log_info@PLT
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L37
	add	rsp, 96
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR warned_loglevel[rip]
	test	eax, eax
	jne	.L1
	mov	rsi, QWORD PTR [rsp]
	lea	rdi, .LC1[rip]
	call	vcos_log@PLT
	mov	DWORD PTR warned_loglevel[rip], 1
	jmp	.L1
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vcos_log_register, .-vcos_log_register
	.comm	warned_loglevel,4,4
	.comm	vcos_logging_categories,8,8
	.comm	lock,4,4
	.comm	dflt_log_category,40,32
	.comm	VCOS_LOG_UNINITIALIZED,8,8
	.comm	VCOS_LOG_ERROR,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_vcos_logcat.c_vcos_log_register.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"*\000"
	.align	2
.LC1:
	.ascii	"VC_LOGLEVEL format invalid at %s\012\000"
	.align	2
.LC2:
	.ascii	"Registered log category '%s' with level %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vcos_log_register
	.syntax unified
	.arm
	.fpu softvfp
	.type	vcos_log_register, %function
vcos_log_register:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r1
	ldr	r3, .L43
	ldr	r2, [r1, #4]
	ldr	r3, [r3]
	ldr	r1, .L43+4
	cmp	r2, r3
	ldreq	r3, .L43+8
	sub	sp, sp, #84
	ldreq	r3, [r3]
	ldr	r1, [r1]
	str	r1, [sp, #76]
	mov	r1,#0
	streq	r3, [r4, #4]
	ldr	r3, .L43+12
	str	r0, [r4]
	subs	r3, r4, r3
	movne	r3, #1
	mov	r5, r0
	str	r3, [r4, #16]
	ldr	r0, .L43+16
	bl	vcos_mutex_lock
	ldr	r1, .L43+20
	ldr	r2, [r1]
	cmp	r2, #0
	beq	.L3
	cmp	r4, r2
	beq	.L18
	mov	r3, r2
	b	.L5
.L7:
	cmp	r4, r3
	beq	.L4
.L5:
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L7
.L3:
	ldr	r3, [r4, #8]
	mov	r0, r4
	add	r3, r3, #1
	str	r2, [r4, #12]
	str	r3, [r4, #8]
	str	r4, [r1]
	bl	vcos_log_platform_register
	b	.L6
.L18:
	mov	r3, r4
.L4:
	ldr	r2, [r3, #8]
	add	r2, r2, #1
	str	r2, [r3, #8]
.L6:
	ldr	r0, .L43+16
	bl	vcos_mutex_unlock
	bl	_VCOS_LOG_LEVEL
	cmp	r0, #0
	str	r0, [sp, #4]
	beq	.L8
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
.L8:
	ldr	r0, [r4, #4]
	ldr	r5, [r4]
	bl	vcos_log_level_to_string
	mov	r1, r5
	mov	r2, r0
	ldr	r0, .L43+24
	bl	vcos_log_info
.L1:
	ldr	r3, .L43+4
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L41
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, pc}
.L42:
	ldrh	r3, [sp, #12]
	cmp	r3, #42
	beq	.L10
.L13:
	ldr	r3, [sp, #4]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
.L16:
	mov	r3, #58
	mov	r1, #64
	add	r2, sp, #4
	add	r0, sp, #12
	bl	read_tok
	cmp	r0, #0
	beq	.L9
	mov	r2, #44
	add	r1, sp, #4
	add	r0, sp, #8
	bl	read_level
	cmp	r0, #0
	beq	.L9
	mov	r1, r5
	add	r0, sp, #12
	bl	strcmp
	cmp	r0, #0
	bne	.L42
.L10:
	ldr	r3, [sp, #8]
	str	r3, [r4, #4]
	b	.L13
.L9:
	ldr	r4, .L43+28
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L1
	ldr	r1, [sp, #4]
	ldr	r0, .L43+32
	bl	vcos_log
	mov	r3, #1
	str	r3, [r4]
	b	.L1
.L41:
	bl	__stack_chk_fail
.L44:
	.align	2
.L43:
	.word	VCOS_LOG_UNINITIALIZED
	.word	.LC3
	.word	VCOS_LOG_ERROR
	.word	dflt_log_category
	.word	lock
	.word	vcos_logging_categories
	.word	.LC2
	.word	warned_loglevel
	.word	.LC1
	.size	vcos_log_register, .-vcos_log_register
	.comm	warned_loglevel,4,4
	.comm	vcos_logging_categories,4,4
	.comm	lock,4,4
	.comm	dflt_log_category,20,4
	.comm	VCOS_LOG_UNINITIALIZED,4,4
	.comm	VCOS_LOG_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
