	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcos_log_unregister            ## -- Begin function vcos_log_unregister
	.p2align	4, 0x90
_vcos_log_unregister:                   ## @vcos_log_unregister
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_vcos_mutex_lock
	decq	(%rbx)
	jne	LBB0_10
## %bb.1:
	movq	_vcos_logging_categories@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rbx, %rcx
	je	LBB0_3
## %bb.2:
	testq	%rcx, %rcx
	je	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, %rcx
	jne	LBB0_5
## %bb.7:
	addq	$8, %rax
	jmp	LBB0_8
LBB0_3:
	testq	%rcx, %rcx
	je	LBB0_9
LBB0_8:
	movq	8(%rbx), %rcx
	movq	%rcx, (%rax)
LBB0_9:
	movq	%rbx, %rdi
	callq	_vcos_log_platform_unregister
	jmp	LBB0_10
LBB0_6:
	xorl	%edi, %edi
	callq	_vcos_assert
LBB0_10:
	movq	_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_vcos_mutex_unlock              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_lock,4,2                       ## @lock
	.comm	_vcos_logging_categories,8,3    ## @vcos_logging_categories
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcos_log_unregister            ; -- Begin function vcos_log_unregister
	.p2align	2
_vcos_log_unregister:                   ; @vcos_log_unregister
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_vcos_mutex_lock
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.ne	LBB0_10
; %bb.1:
Lloh2:
	adrp	x8, _vcos_logging_categories@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vcos_logging_categories@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x19
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_4
; %bb.2:
	cbz	x8, LBB0_8
; %bb.3:
Lloh5:
	adrp	x8, _vcos_logging_categories@GOTPAGE
Lloh6:
	ldr	x8, [x8, _vcos_logging_categories@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.6:
	add	x8, x9, #8
LBB0_7:
	ldr	x9, [x19, #8]
	str	x9, [x8]
LBB0_8:
	mov	x0, x19
	bl	_vcos_log_platform_unregister
	b	LBB0_10
LBB0_9:
	mov	w0, #0
	bl	_vcos_assert
LBB0_10:
Lloh7:
	adrp	x0, _lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vcos_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_lock,4,2                       ; @lock
	.comm	_vcos_logging_categories,8,3    ; @vcos_logging_categories
.subsections_via_symbols
