	.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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_dispmanx_client@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_vcos_assert
	leaq	24(%r15), %rdi
	callq	_vcos_mutex_lock
	movq	%rax, %r14
	cmpl	$0, (%r15)
	je	LBB0_4
## %bb.1:
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_vchi_service_use
	incq	%rbx
	cmpq	8(%r15), %rbx
	jb	LBB0_3
LBB0_4:
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r14
	sete	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vcos_assert                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dispmanx_client,32,3           ## @dispmanx_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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x20, _dispmanx_client@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dispmanx_client@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_vcos_assert
	add	x0, x20, #24
	bl	_vcos_mutex_lock
	mov	x19, x0
	ldr	w8, [x20]
	ldr	x9, [x20, #8]
	cmp	w8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x21, lsl #2]
	bl	_vchi_service_use
	add	x21, x21, #1
	ldr	x8, [x20, #8]
	cmp	x21, x8
	b.lo	LBB0_2
LBB0_3:
Lloh2:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x19, x8
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_vcos_assert
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_dispmanx_client,32,3           ; @dispmanx_client
	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.no_dead_strip	_lock_obtain
.subsections_via_symbols
