	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rfcomm_dlc_accept              ## -- Begin function rfcomm_dlc_accept
	.p2align	4, 0x90
_rfcomm_dlc_accept:                     ## @rfcomm_dlc_accept
	.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	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_BT_DBG
	movq	8(%rbx), %rdi
	movl	4(%rbx), %esi
	callq	_rfcomm_send_ua
	movq	%rbx, %rdi
	callq	_rfcomm_dlc_clear_timer
	movq	%rbx, %rdi
	callq	_rfcomm_dlc_lock
	movq	_BT_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*24(%rbx)
	movq	%rbx, %rdi
	callq	_rfcomm_dlc_unlock
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_l2cap_pi
	movq	(%rax), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_hci_conn_switch_role
LBB0_2:
	movq	8(%rbx), %rdi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rfcomm_send_msc                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dlc %p"

	.comm	_BT_CONNECTED,4,2               ## @BT_CONNECTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rfcomm_dlc_accept              ; -- Begin function rfcomm_dlc_accept
	.p2align	2
_rfcomm_dlc_accept:                     ; @rfcomm_dlc_accept
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x20, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BT_DBG
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #4]
	bl	_rfcomm_send_ua
	mov	x0, x19
	bl	_rfcomm_dlc_clear_timer
	mov	x0, x19
	bl	_rfcomm_dlc_lock
Lloh2:
	adrp	x8, _BT_CONNECTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BT_CONNECTED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	mov	x0, x19
	bl	_rfcomm_dlc_unlock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_l2cap_pi
	ldr	x8, [x0]
	ldr	w0, [x8]
	mov	w1, #0
	bl	_hci_conn_switch_role
LBB0_2:
	ldr	x0, [x19, #8]
	ldp	w3, w2, [x19]
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rfcomm_send_msc
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dlc %p"

	.comm	_BT_CONNECTED,4,2               ; @BT_CONNECTED
.subsections_via_symbols
