	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __l2cap_chan_add
___l2cap_chan_add:                      ## @__l2cap_chan_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	%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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	4(%rdi), %r15
	movq	%rsi, %rdi
	callq	_l2cap_pi
	movl	32(%rax), %r13d
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	8(%rax), %rcx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_BT_DBG
	movl	$19, (%rbx)
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	%rbx, 24(%rax)
	movq	(%r12), %rax
	movq	_SOCK_SEQPACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_l2cap_alloc_cid
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	%rbx, 16(%rax)
	jmp	LBB0_6
LBB0_2:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_L2CAP_CID_CONN_LESS@GOTPCREL(%rip), %r13
	jmp	LBB0_5
LBB0_4:
	movq	_L2CAP_CID_SIGNALING@GOTPCREL(%rip), %r13
LBB0_5:
	movq	(%r13), %rbx
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	%rbx, 16(%rax)
	movq	(%r13), %rbx
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	%rbx, 8(%rax)
	movq	_L2CAP_DEFAULT_MTU@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	%rbx, (%rax)
LBB0_6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	___l2cap_chan_link
	testq	%r14, %r14
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bt_accept_enqueue              ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"conn %p, psm 0x%2.2x, dcid 0x%4.4x"

	.comm	_SOCK_SEQPACKET,8,3             ## @SOCK_SEQPACKET
	.comm	_SOCK_DGRAM,8,3                 ## @SOCK_DGRAM
	.comm	_L2CAP_CID_CONN_LESS,8,3        ## @L2CAP_CID_CONN_LESS
	.comm	_L2CAP_DEFAULT_MTU,8,3          ## @L2CAP_DEFAULT_MTU
	.comm	_L2CAP_CID_SIGNALING,8,3        ## @L2CAP_CID_SIGNALING
	.no_dead_strip	___l2cap_chan_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __l2cap_chan_add
___l2cap_chan_add:                      ; @__l2cap_chan_add
	.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	x20, x2
	mov	x19, x1
	mov	x22, x0
	add	x21, x0, #4
	mov	x0, x1
	bl	_l2cap_pi
	ldr	w23, [x0, #32]
	mov	x0, x19
	bl	_l2cap_pi
	ldr	x3, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	bl	_BT_DBG
	mov	w8, #19
	str	w8, [x22]
	mov	x0, x19
	bl	_l2cap_pi
	str	x22, [x0, #24]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _SOCK_SEQPACKET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SOCK_SEQPACKET@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_l2cap_alloc_cid
	mov	x22, x0
	mov	x0, x19
	bl	_l2cap_pi
	str	x22, [x0, #16]
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x22, _L2CAP_CID_CONN_LESS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _L2CAP_CID_CONN_LESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x22, _L2CAP_CID_SIGNALING@GOTPAGE
Lloh11:
	ldr	x22, [x22, _L2CAP_CID_SIGNALING@GOTPAGEOFF]
LBB0_5:
	ldr	x23, [x22]
	mov	x0, x19
	bl	_l2cap_pi
	str	x23, [x0, #16]
	ldr	x22, [x22]
	mov	x0, x19
	bl	_l2cap_pi
	str	x22, [x0, #8]
Lloh12:
	adrp	x8, _L2CAP_DEFAULT_MTU@GOTPAGE
Lloh13:
	ldr	x8, [x8, _L2CAP_DEFAULT_MTU@GOTPAGEOFF]
Lloh14:
	ldr	x22, [x8]
	mov	x0, x19
	bl	_l2cap_pi
	str	x22, [x0]
LBB0_6:
	mov	x0, x21
	mov	x1, x19
	bl	___l2cap_chan_link
	cbz	x20, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	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
	b	_bt_accept_enqueue
LBB0_8:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"conn %p, psm 0x%2.2x, dcid 0x%4.4x"

	.comm	_SOCK_SEQPACKET,8,3             ; @SOCK_SEQPACKET
	.comm	_SOCK_DGRAM,8,3                 ; @SOCK_DGRAM
	.comm	_L2CAP_CID_CONN_LESS,8,3        ; @L2CAP_CID_CONN_LESS
	.comm	_L2CAP_DEFAULT_MTU,8,3          ; @L2CAP_DEFAULT_MTU
	.comm	_L2CAP_CID_SIGNALING,8,3        ; @L2CAP_CID_SIGNALING
	.no_dead_strip	___l2cap_chan_add
.subsections_via_symbols
