	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_capi20_isinstalled             ## -- Begin function capi20_isinstalled
	.p2align	4, 0x90
_capi20_isinstalled:                    ## @capi20_isinstalled
	.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
	movq	_CAPI_REGNOTINSTALLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_capi_controller_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_CAPI_MAXCONTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	movq	_capi_controller@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CAPI_CTR_RUNNING@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdx, (%rdi)
	jne	LBB0_5
## %bb.4:
	movq	_CAPI_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movq	_capi_controller_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAPI_REGNOTINSTALLED,4,2       ## @CAPI_REGNOTINSTALLED
	.comm	_capi_controller_lock,4,2       ## @capi_controller_lock
	.comm	_CAPI_MAXCONTR,4,2              ## @CAPI_MAXCONTR
	.comm	_capi_controller,8,3            ## @capi_controller
	.comm	_CAPI_CTR_RUNNING,8,3           ## @CAPI_CTR_RUNNING
	.comm	_CAPI_NOERROR,4,2               ## @CAPI_NOERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_capi20_isinstalled             ; -- Begin function capi20_isinstalled
	.p2align	2
_capi20_isinstalled:                    ; @capi20_isinstalled
	.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
Lloh0:
	adrp	x8, _CAPI_REGNOTINSTALLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAPI_REGNOTINSTALLED@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x0, _capi_controller_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _capi_controller_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh5:
	adrp	x8, _CAPI_MAXCONTR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAPI_MAXCONTR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
Lloh8:
	adrp	x9, _capi_controller@GOTPAGE
Lloh9:
	ldr	x9, [x9, _capi_controller@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _CAPI_CTR_RUNNING@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CAPI_CTR_RUNNING@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cbz	x11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x11]
	cmp	x11, x10
	b.ne	LBB0_2
; %bb.5:
Lloh14:
	adrp	x8, _CAPI_NOERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CAPI_NOERROR@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
LBB0_6:
Lloh17:
	adrp	x0, _capi_controller_lock@GOTPAGE
Lloh18:
	ldr	x0, [x0, _capi_controller_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CAPI_REGNOTINSTALLED,4,2       ; @CAPI_REGNOTINSTALLED
	.comm	_capi_controller_lock,4,2       ; @capi_controller_lock
	.comm	_CAPI_MAXCONTR,4,2              ; @CAPI_MAXCONTR
	.comm	_capi_controller,8,3            ; @capi_controller
	.comm	_CAPI_CTR_RUNNING,8,3           ; @CAPI_CTR_RUNNING
	.comm	_CAPI_NOERROR,4,2               ; @CAPI_NOERROR
.subsections_via_symbols
