	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l2cap_connect_ind              ## -- Begin function l2cap_connect_ind
	.p2align	4, 0x90
_l2cap_connect_ind:                     ## @l2cap_connect_ind
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_l2cap_listenpcbs@GOTPCREL(%rip), %rdi
	callq	_btmemb_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$20, %rdi
	movq	%r13, %rsi
	callq	_bd_addr_set
	movl	%r12d, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	_L2CAP_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movq	_l2cap_pcbs@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_btmemb_free
	movq	_l2cap_listen_pcbs@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_L2CAP_REG
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_ERROR
	movq	_ERR_MEM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_l2cap_listenpcbs,4,2           ## @l2cap_listenpcbs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"l2cap_connect_ind: Could not allocate memory for lpcb\n"

	.comm	_ERR_MEM,4,2                    ## @ERR_MEM
	.comm	_L2CAP_LISTEN,4,2               ## @L2CAP_LISTEN
	.comm	_l2cap_pcbs,4,2                 ## @l2cap_pcbs
	.comm	_l2cap_listen_pcbs,4,2          ## @l2cap_listen_pcbs
	.comm	_ERR_OK,4,2                     ## @ERR_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l2cap_connect_ind              ; -- Begin function l2cap_connect_ind
	.p2align	2
_l2cap_connect_ind:                     ; @l2cap_connect_ind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _l2cap_listenpcbs@GOTPAGE
Lloh1:
	ldr	x0, [x0, _l2cap_listenpcbs@GOTPAGEOFF]
	bl	_btmemb_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	add	x0, x0, #20
	mov	x1, x23
	bl	_bd_addr_set
	str	w22, [x20, #16]
	str	x21, [x20, #8]
Lloh2:
	adrp	x8, _L2CAP_LISTEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _L2CAP_LISTEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	stp	w9, w8, [x20]
Lloh5:
	adrp	x0, _l2cap_pcbs@GOTPAGE
Lloh6:
	ldr	x0, [x0, _l2cap_pcbs@GOTPAGEOFF]
	mov	x1, x19
	bl	_btmemb_free
Lloh7:
	adrp	x0, _l2cap_listen_pcbs@GOTPAGE
Lloh8:
	ldr	x0, [x0, _l2cap_listen_pcbs@GOTPAGEOFF]
	mov	x1, x20
	bl	_L2CAP_REG
Lloh9:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERROR
Lloh13:
	adrp	x8, _ERR_MEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_MEM@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_l2cap_listenpcbs,4,2           ; @l2cap_listenpcbs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"l2cap_connect_ind: Could not allocate memory for lpcb\n"

	.comm	_ERR_MEM,4,2                    ; @ERR_MEM
	.comm	_L2CAP_LISTEN,4,2               ; @L2CAP_LISTEN
	.comm	_l2cap_pcbs,4,2                 ; @l2cap_pcbs
	.comm	_l2cap_listen_pcbs,4,2          ; @l2cap_listen_pcbs
	.comm	_ERR_OK,4,2                     ; @ERR_OK
.subsections_via_symbols
