	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbas_ec_probe
_cbas_ec_probe:                         ## @cbas_ec_probe
	.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	%rdi, %rbx
	movq	_cbas_ec_reglock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_cbas_ec@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	___cbas_ec_probe
	movl	%eax, %ebx
LBB0_3:
	movq	_cbas_ec_reglock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cbas_ec_reglock,4,2            ## @cbas_ec_reglock
	.comm	_cbas_ec,8,3                    ## @cbas_ec
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_cbas_ec_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbas_ec_probe
_cbas_ec_probe:                         ; @cbas_ec_probe
	.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, x0
Lloh0:
	adrp	x0, _cbas_ec_reglock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _cbas_ec_reglock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _cbas_ec@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cbas_ec@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	___cbas_ec_probe
	mov	x19, x0
LBB0_3:
Lloh8:
	adrp	x0, _cbas_ec_reglock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _cbas_ec_reglock@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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_cbas_ec_reglock,4,2            ; @cbas_ec_reglock
	.comm	_cbas_ec,8,3                    ; @cbas_ec
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_cbas_ec_probe
.subsections_via_symbols
