	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btpad_find_empty_connection
_btpad_find_empty_connection:           ## @btpad_find_empty_connection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAX_USERS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	movq	_g_connections@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_BTPAD_EMPTY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rax)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rax
	decq	%rcx
	jne	LBB0_2
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.comm	_g_connections,8,3              ## @g_connections
	.comm	_BTPAD_EMPTY,8,3                ## @BTPAD_EMPTY
	.no_dead_strip	_btpad_find_empty_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btpad_find_empty_connection
_btpad_find_empty_connection:           ; @btpad_find_empty_connection
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_USERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_USERS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _g_connections@GOTPAGE
Lloh4:
	ldr	x9, [x9, _g_connections@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x9]
Lloh6:
	adrp	x9, _BTPAD_EMPTY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BTPAD_EMPTY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0]
	cmp	x10, x9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x0, #0
LBB0_5:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.comm	_g_connections,8,3              ; @g_connections
	.comm	_BTPAD_EMPTY,8,3                ; @BTPAD_EMPTY
	.no_dead_strip	_btpad_find_empty_connection
.subsections_via_symbols
