	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcos_log_register              ## -- Begin function vcos_log_register
	.p2align	4, 0x90
_vcos_log_register:                     ## @vcos_log_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, (%rsi)
	movq	8(%rsi), %rax
	movq	_VCOS_LOG_UNINITIALIZED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_VCOS_LOG_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_2:
	xorl	%eax, %eax
	cmpq	_dflt_log_category@GOTPCREL(%rip), %rbx
	setne	%al
	movl	%eax, 32(%rbx)
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_vcos_mutex_lock
	movq	_vcos_logging_categories@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.3:
	movq	%rcx, %rdx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rdx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rdx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_4
LBB0_7:
	movq	%rcx, 24(%rbx)
	movq	%rbx, (%rax)
	incl	16(%rbx)
	movq	%rbx, %rdi
	callq	_vcos_log_platform_register
	jmp	LBB0_8
LBB0_5:
	incl	16(%rbx)
LBB0_8:
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_vcos_mutex_unlock
	xorl	%eax, %eax
	callq	__VCOS_LOG_LEVEL
	movq	%rax, -120(%rbp)
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	cmpb	$0, (%rax)
	je	LBB0_17
## %bb.10:
	leaq	-112(%rbp), %r15
	leaq	-120(%rbp), %r12
	leaq	-128(%rbp), %r13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-128(%rbp), %rax
	movq	%rax, 8(%rbx)
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-120(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_17
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$64, %esi
	movq	%r12, %rdx
	movl	$58, %ecx
	callq	_read_tok
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$44, %edx
	callq	_read_level
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_15
LBB0_17:
	movq	(%rbx), %r14
	movq	8(%rbx), %rdi
	callq	_vcos_log_level_to_string
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_vcos_log_info
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_warned_loglevel@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_20
## %bb.19:
	movq	-120(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_vcos_log
	movl	$1, (%rbx)
	jmp	LBB0_20
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VCOS_LOG_UNINITIALIZED,8,3     ## @VCOS_LOG_UNINITIALIZED
	.comm	_VCOS_LOG_ERROR,8,3             ## @VCOS_LOG_ERROR
	.comm	_dflt_log_category,40,3         ## @dflt_log_category
	.comm	_lock,4,2                       ## @lock
	.comm	_vcos_logging_categories,8,3    ## @vcos_logging_categories
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*"

	.comm	_warned_loglevel,4,2            ## @warned_loglevel
L_.str.1:                               ## @.str.1
	.asciz	"VC_LOGLEVEL format invalid at %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Registered log category '%s' with level %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcos_log_register              ; -- Begin function vcos_log_register
	.p2align	2
_vcos_log_register:                     ; @vcos_log_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	x0, [x1]
	ldr	x8, [x1, #8]
Lloh3:
	adrp	x9, _VCOS_LOG_UNINITIALIZED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VCOS_LOG_UNINITIALIZED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _VCOS_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VCOS_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_2:
Lloh9:
	adrp	x8, _dflt_log_category@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dflt_log_category@GOTPAGEOFF]
	cmp	x19, x8
	cset	w8, ne
	str	w8, [x19, #32]
Lloh11:
	adrp	x0, _lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_vcos_mutex_lock
Lloh13:
	adrp	x8, _vcos_logging_categories@GOTPAGE
Lloh14:
	ldr	x8, [x8, _vcos_logging_categories@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_6
; %bb.3:
	mov	x10, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x10, x19
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x10, #24]
	cbnz	x10, LBB0_4
LBB0_6:
	str	x9, [x19, #24]
	str	x19, [x8]
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_vcos_log_platform_register
	b	LBB0_8
LBB0_7:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_8:
Lloh15:
	adrp	x0, _lock@GOTPAGE
Lloh16:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_vcos_mutex_unlock
	bl	__VCOS_LOG_LEVEL
	str	x0, [sp, #16]
	cbz	x0, LBB0_17
; %bb.9:
	ldrb	w8, [x0]
	cbz	w8, LBB0_17
; %bb.10:
Lloh17:
	adrp	x21, l_.str@PAGE
Lloh18:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #16]
	ldrb	w8, [x8]
	cbz	w8, LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	add	x2, sp, #16
	mov	w1, #64
	mov	w3, #58
	bl	_read_tok
	cbz	x0, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #8
	add	x1, sp, #16
	mov	w2, #44
	bl	_read_level
	cbz	x0, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #24
	mov	x1, x20
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #24
	mov	x1, x21
	bl	_strcmp
	cbnz	x0, LBB0_12
	b	LBB0_11
LBB0_17:
	ldp	x20, x0, [x19]
	bl	_vcos_log_level_to_string
	mov	x2, x0
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_vcos_log_info
LBB0_18:
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.19:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_20:
Lloh24:
	adrp	x19, _warned_loglevel@GOTPAGE
Lloh25:
	ldr	x19, [x19, _warned_loglevel@GOTPAGEOFF]
	ldr	w8, [x19]
	cbnz	w8, LBB0_18
; %bb.21:
	ldr	x1, [sp, #16]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_vcos_log
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_18
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_VCOS_LOG_UNINITIALIZED,8,3     ; @VCOS_LOG_UNINITIALIZED
	.comm	_VCOS_LOG_ERROR,8,3             ; @VCOS_LOG_ERROR
	.comm	_dflt_log_category,40,3         ; @dflt_log_category
	.comm	_lock,4,2                       ; @lock
	.comm	_vcos_logging_categories,8,3    ; @vcos_logging_categories
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*"

	.comm	_warned_loglevel,4,2            ; @warned_loglevel
l_.str.1:                               ; @.str.1
	.asciz	"VC_LOGLEVEL format invalid at %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Registered log category '%s' with level %s"

.subsections_via_symbols
