	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lock_obtain
_lock_obtain:                           ## @lock_obtain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_gencmd_client@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	movq	_gencmd_client@GOTPCREL(%rip), %rdi
	callq	_vcos_mutex_lock
	movq	%rax, %rcx
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	setne	%al
	negl	%eax
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gencmd_client,16,3             ## @gencmd_client
	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
	.no_dead_strip	_lock_obtain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lock_obtain
_lock_obtain:                           ; @lock_obtain
	.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
Lloh0:
	adrp	x8, _gencmd_client@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gencmd_client@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, _gencmd_client@GOTPAGE
Lloh4:
	ldr	x0, [x0, _gencmd_client@GOTPAGEOFF]
	bl	_vcos_mutex_lock
Lloh5:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	csetm	w0, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_gencmd_client,16,3             ; @gencmd_client
	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.no_dead_strip	_lock_obtain
.subsections_via_symbols
