	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmtp_add_connection            ## -- Begin function cmtp_add_connection
	.p2align	4, 0x90
_cmtp_add_connection:                   ## @cmtp_add_connection
	.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	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BT_DBG
	movl	(%r15), %edi
	callq	_bt_sk
	leaq	4(%rax), %rsi
	leaq	-48(%rbp), %rdi
	callq	_baswap
	movl	(%r15), %edi
	callq	_bt_sk
	leaq	-44(%rbp), %rdi
	movq	%rax, %rsi
	callq	_baswap
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_cmtp_session_sem@GOTPCREL(%rip), %rdi
	callq	_down_write
	movl	(%r15), %edi
	callq	_bt_sk
	movq	%rax, %rdi
	callq	___cmtp_get_session
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rax
	movq	_BT_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_5:
	leaq	56(%rbx), %r12
	movl	(%r15), %edi
	callq	_bt_sk
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_bacpy
	movq	_uint@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %edi
	callq	_l2cap_pi
	movl	4(%rax), %r13d
	movl	(%r15), %edi
	callq	_l2cap_pi
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_min_t
	movl	%eax, 52(%rbx)
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_BT_DBG
	movl	48(%rbx), %r12d
	leaq	-44(%rbp), %rdi
	callq	_batostr
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	movq	%rax, %rdx
	callq	_sprintf
	movq	%r15, 40(%rbx)
	movq	_BT_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	leaq	36(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	_CMTP_INITIAL_MSGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	leaq	28(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_skb_queue_head_init
	movq	16(%rbx), %rax
	movq	$0, (%rax)
	movq	16(%rbx), %rax
	movq	$0, 8(%rax)
	movq	16(%rbx), %rax
	movq	$0, 16(%rax)
	movq	16(%rbx), %rax
	movq	$0, 24(%rax)
	movq	16(%rbx), %rax
	movq	$0, 32(%rax)
	movq	16(%rbx), %rax
	movq	$0, 40(%rax)
	movq	16(%rbx), %rax
	movq	$0, 48(%rax)
	movq	16(%rbx), %rax
	movq	$0, 56(%rax)
	movq	16(%rbx), %rax
	movq	$0, 64(%rax)
	movq	16(%rbx), %rax
	movq	$0, 72(%rax)
	movq	16(%rbx), %rax
	movq	$0, 80(%rax)
	movq	16(%rbx), %rax
	movq	$0, 88(%rax)
	movq	16(%rbx), %rax
	movq	$0, 96(%rax)
	movq	16(%rbx), %rax
	movq	$0, 104(%rax)
	movq	16(%rbx), %rax
	movq	$0, 112(%rax)
	movq	16(%rbx), %rax
	movq	$0, 120(%rax)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	___cmtp_link_session
	movq	_cmtp_session@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CLONE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_kernel_thread
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	8(%rbx), %eax
	movq	_CMTP_LOOPBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jb	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_cmtp_attach_device
	testl	%eax, %eax
	js	LBB0_10
LBB0_9:
	movq	_cmtp_session_sem@GOTPCREL(%rip), %rdi
	callq	_up_write
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_6:
	movl	%eax, %r12d
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_cmtp_detach_device
LBB0_11:
	movq	%rbx, %rdi
	callq	___cmtp_unlink_session
LBB0_12:
	movq	_cmtp_session_sem@GOTPCREL(%rip), %rdi
	callq	_up_write
	movq	%rbx, %rdi
	callq	_kfree
LBB0_13:
	movl	%r12d, %eax
	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
	.space	1

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cmtp_session_sem,4,2           ## @cmtp_session_sem
	.comm	_BT_CONNECTED,8,3               ## @BT_CONNECTED
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_uint,4,2                       ## @uint
L_.str.1:                               ## @.str.1
	.asciz	"mtu %d"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

	.comm	_BT_CONFIG,8,3                  ## @BT_CONFIG
	.comm	_CMTP_INITIAL_MSGNUM,4,2        ## @CMTP_INITIAL_MSGNUM
	.comm	_cmtp_session,4,2               ## @cmtp_session
	.comm	_CLONE_KERNEL,4,2               ## @CLONE_KERNEL
	.comm	_CMTP_LOOPBACK,4,2              ## @CMTP_LOOPBACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmtp_add_connection            ; -- Begin function cmtp_add_connection
	.p2align	2
_cmtp_add_connection:                   ; @cmtp_add_connection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
	ldr	w0, [x21]
	bl	_bt_sk
	add	x1, x0, #4
	add	x0, sp, #12
	bl	_baswap
	ldr	w0, [x21]
	bl	_bt_sk
	mov	x1, x0
	add	x0, sp, #8
	bl	_baswap
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x0, _cmtp_session_sem@GOTPAGE
Lloh6:
	ldr	x0, [x0, _cmtp_session_sem@GOTPAGEOFF]
	bl	_down_write
	ldr	w0, [x21]
	bl	_bt_sk
	bl	___cmtp_get_session
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x0]
Lloh7:
	adrp	x9, _BT_CONNECTED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BT_CONNECTED@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _EEXIST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_4:
	add	x22, x19, #56
	ldr	w0, [x21]
	bl	_bt_sk
	mov	x1, x0
	mov	x0, x22
	bl	_bacpy
Lloh13:
	adrp	x8, _uint@GOTPAGE
Lloh14:
	ldr	x8, [x8, _uint@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	ldr	w0, [x21]
	bl	_l2cap_pi
	ldr	w23, [x0, #4]
	ldr	w0, [x21]
	bl	_l2cap_pi
	ldr	w2, [x0]
	mov	x0, x22
	mov	x1, x23
	bl	_min_t
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19, #52]
	str	x0, [sp]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_DBG
	ldr	w22, [x19, #48]
	add	x0, sp, #8
	bl	_batostr
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_sprintf
	str	x21, [x19, #40]
Lloh20:
	adrp	x8, _BT_CONFIG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BT_CONFIG@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x19]
	add	x0, x19, #36
	bl	_init_waitqueue_head
Lloh23:
	adrp	x8, _CMTP_INITIAL_MSGNUM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CMTP_INITIAL_MSGNUM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	add	x0, x19, #28
	bl	_INIT_LIST_HEAD
	add	x0, x19, #24
	bl	_skb_queue_head_init
	ldr	x8, [x19, #16]
	str	xzr, [x8]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #8]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #16]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #24]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #32]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #40]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #48]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #56]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #64]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #72]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #80]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #88]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #96]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #104]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #112]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #120]
	ldr	w8, [x20]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	___cmtp_link_session
Lloh26:
	adrp	x8, _cmtp_session@GOTPAGE
Lloh27:
	ldr	x8, [x8, _cmtp_session@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _CLONE_KERNEL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CLONE_KERNEL@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_kernel_thread
	tbnz	w0, #31, LBB0_9
; %bb.5:
	ldr	w8, [x19, #8]
Lloh32:
	adrp	x9, _CMTP_LOOPBACK@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CMTP_LOOPBACK@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbnz	w8, #0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_cmtp_attach_device
	tbnz	w0, #31, LBB0_10
LBB0_7:
Lloh35:
	adrp	x0, _cmtp_session_sem@GOTPAGE
Lloh36:
	ldr	x0, [x0, _cmtp_session_sem@GOTPAGEOFF]
	bl	_up_write
	mov	w20, #0
	b	LBB0_13
LBB0_8:
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_9:
	mov	x20, x0
	b	LBB0_11
LBB0_10:
	mov	x20, x0
	mov	x0, x19
	bl	_cmtp_detach_device
LBB0_11:
	mov	x0, x19
	bl	___cmtp_unlink_session
LBB0_12:
Lloh40:
	adrp	x0, _cmtp_session_sem@GOTPAGE
Lloh41:
	ldr	x0, [x0, _cmtp_session_sem@GOTPAGEOFF]
	bl	_up_write
	mov	x0, x19
	bl	_kfree
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cmtp_session_sem,4,2           ; @cmtp_session_sem
	.comm	_BT_CONNECTED,8,3               ; @BT_CONNECTED
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_uint,4,2                       ; @uint
l_.str.1:                               ; @.str.1
	.asciz	"mtu %d"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

	.comm	_BT_CONFIG,8,3                  ; @BT_CONFIG
	.comm	_CMTP_INITIAL_MSGNUM,4,2        ; @CMTP_INITIAL_MSGNUM
	.comm	_cmtp_session,4,2               ; @cmtp_session
	.comm	_CLONE_KERNEL,4,2               ; @CLONE_KERNEL
	.comm	_CMTP_LOOPBACK,4,2              ; @CMTP_LOOPBACK
.subsections_via_symbols
