	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vcos_term
_vcos_term:                             ## @vcos_term
	.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
	movl	%edi, %ebx
	movq	_VCOS_INIT_MSGQ@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_vcos_msgq_deinit
LBB0_2:
	movq	_VCOS_INIT_MAIN_SEM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_vcos_thread_main@GOTPCREL(%rip), %rdi
	callq	_vcos_semaphore_delete
LBB0_4:
	movq	_VCOS_INIT_NAMED_SEM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	__vcos_named_semaphore_deinit   ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCOS_INIT_MSGQ,4,2             ## @VCOS_INIT_MSGQ
	.comm	_VCOS_INIT_MAIN_SEM,4,2         ## @VCOS_INIT_MAIN_SEM
	.comm	_vcos_thread_main,4,2           ## @vcos_thread_main
	.comm	_VCOS_INIT_NAMED_SEM,4,2        ## @VCOS_INIT_NAMED_SEM
	.comm	_VCOS_INIT_PRINTF_LOCK,4,2      ## @VCOS_INIT_PRINTF_LOCK
	.comm	_printf_lock,4,2                ## @printf_lock
	.no_dead_strip	_vcos_term
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vcos_term
_vcos_term:                             ; @vcos_term
	.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	x8, _VCOS_INIT_MSGQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCOS_INIT_MSGQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	bl	_vcos_msgq_deinit
LBB0_2:
Lloh3:
	adrp	x8, _VCOS_INIT_MAIN_SEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCOS_INIT_MAIN_SEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, _vcos_thread_main@GOTPAGE
Lloh7:
	ldr	x0, [x0, _vcos_thread_main@GOTPAGEOFF]
	bl	_vcos_semaphore_delete
LBB0_4:
Lloh8:
	adrp	x8, _VCOS_INIT_NAMED_SEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VCOS_INIT_NAMED_SEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__vcos_named_semaphore_deinit
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VCOS_INIT_MSGQ,4,2             ; @VCOS_INIT_MSGQ
	.comm	_VCOS_INIT_MAIN_SEM,4,2         ; @VCOS_INIT_MAIN_SEM
	.comm	_vcos_thread_main,4,2           ; @vcos_thread_main
	.comm	_VCOS_INIT_NAMED_SEM,4,2        ; @VCOS_INIT_NAMED_SEM
	.comm	_VCOS_INIT_PRINTF_LOCK,4,2      ; @VCOS_INIT_PRINTF_LOCK
	.comm	_printf_lock,4,2                ; @printf_lock
	.no_dead_strip	_vcos_term
.subsections_via_symbols
