	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetLockStatus
_GetLockStatus:                         ## @GetLockStatus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, (%rsi)
	movl	$8519755, %esi                  ## imm = 0x82004B
	callq	_RD16
	movl	%eax, %edx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$2, (%rbx)
	jne	LBB0_9
## %bb.3:
	notl	%ecx
	testb	$7, %cl
	je	LBB0_4
## %bb.5:
	testb	$3, %cl
	je	LBB0_6
LBB0_7:
	testb	$1, %dl
	jne	LBB0_8
	jmp	LBB0_9
LBB0_1:
	movl	%edx, %eax
	jmp	LBB0_9
LBB0_4:
	orb	$1, (%r14)
	testb	$3, %cl
	jne	LBB0_7
LBB0_6:
	orb	$2, (%r14)
	testb	$1, %dl
	je	LBB0_9
LBB0_8:
	orb	$4, (%r14)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_GetLockStatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetLockStatus
_GetLockStatus:                         ; @GetLockStatus
	.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, x1
	mov	x20, x0
	str	wzr, [x1]
	mov	w1, #75
	movk	w1, #130, lsl #16
	bl	_RD16
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.2:
	mvn	w8, w0
	tst	w8, #0x7
	b.ne	LBB0_6
; %bb.3:
	ldr	w9, [x19]
	orr	w9, w9, #0x1
	str	w9, [x19]
	tst	w8, #0x3
	b.eq	LBB0_7
LBB0_4:
	tbnz	w0, #0, LBB0_8
LBB0_5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
	tst	w8, #0x3
	b.ne	LBB0_4
LBB0_7:
	ldr	w8, [x19]
	orr	w8, w8, #0x2
	str	w8, [x19]
	tbz	w0, #0, LBB0_5
LBB0_8:
	mov	w0, #0
	ldr	w8, [x19]
	orr	w8, w8, #0x4
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_GetLockStatus
.subsections_via_symbols
