	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_conn_add
_l2cap_conn_add:                        ## @l2cap_conn_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	16(%rdi), %rbx
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.1:
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.2:
	movq	%rdi, %r14
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, 16(%r14)
	movq	%r14, 48(%rax)
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_BT_DBG
	movq	8(%r14), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 40(%rbx)
	movq	%rax, 32(%rbx)
	movq	%r14, 24(%rbx)
	movq	$0, 16(%rbx)
	leaq	12(%rbx), %rdi
	callq	_spin_lock_init
	leaq	8(%rbx), %rdi
	callq	_rwlock_init
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	_l2cap_info_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_setup_timer
	movl	$19, (%rbx)
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hcon %p conn %p"

	.comm	_l2cap_info_timeout,4,2         ## @l2cap_info_timeout
	.no_dead_strip	_l2cap_conn_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_conn_add
_l2cap_conn_add:                        ; @l2cap_conn_add
	.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
	ldr	x19, [x0, #16]
	cbnz	x1, LBB0_4
; %bb.1:
	cbnz	x19, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.3:
	str	x19, [x20, #16]
	str	x20, [x19, #48]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_BT_DBG
	ldr	x8, [x20, #8]
	ldr	w9, [x8, #4]
	str	w9, [x19, #40]
	stp	x20, x8, [x19, #24]
	str	xzr, [x19, #16]
	add	x0, x19, #12
	bl	_spin_lock_init
	add	x0, x19, #8
	bl	_rwlock_init
	add	x0, x19, #4
Lloh5:
	adrp	x8, _l2cap_info_timeout@GOTPAGE
Lloh6:
	ldr	x8, [x8, _l2cap_info_timeout@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_setup_timer
	mov	w8, #19
	str	w8, [x19]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hcon %p conn %p"

	.comm	_l2cap_info_timeout,4,2         ; @l2cap_info_timeout
	.no_dead_strip	_l2cap_conn_add
.subsections_via_symbols
