	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__free_ps2_io                   ## -- Begin function _free_ps2_io
	.p2align	4, 0x90
__free_ps2_io:                          ## @_free_ps2_io
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	__lock
	xorl	%eax, %eax
	callq	__unlock
	movq	__lock_sema_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	js	LBB0_1
## %bb.2:
	popq	%rbp
	jmp	_DeleteSema                     ## TAILCALL
LBB0_1:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__lock_sema_id,8,3              ## @_lock_sema_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__free_ps2_io                   ; -- Begin function _free_ps2_io
	.p2align	2
__free_ps2_io:                          ; @_free_ps2_io
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	__lock
	bl	__unlock
Lloh0:
	adrp	x8, __lock_sema_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, __lock_sema_id@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_DeleteSema
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__lock_sema_id,8,3              ; @_lock_sema_id
.subsections_via_symbols
