	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l2cap_accepted                 ## -- Begin function l2cap_accepted
	.p2align	4, 0x90
_l2cap_accepted:                        ## @l2cap_accepted
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ERR_OK@GOTPCREL(%rip), %r15
	cmpq	%rdx, (%r15)
	jne	LBB0_10
## %bb.1:
	movq	_bte_process_input@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_l2cap_recv
	movq	_l2cap_disconnected_ind@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_l2cap_disconnect_ind
	movq	%rbx, %rdi
	callq	_l2cap_psm
	cmpl	$129, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.4:
	movl	$40, %eax
	jmp	LBB0_5
LBB0_10:
	movq	%rbx, %rdi
	callq	_l2cap_close
	movq	_ERR_CONN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%r14)
	movl	8(%r14), %edi
	movq	(%rax), %rdx
	movq	%r14, %rsi
	callq	*16(%r14)
	jmp	LBB0_11
LBB0_2:
	movl	$32, %eax
LBB0_5:
	movq	%rbx, (%r14,%rax)
LBB0_6:
	cmpq	$0, 40(%r14)
	je	LBB0_11
## %bb.7:
	cmpq	$0, 32(%r14)
	je	LBB0_11
## %bb.8:
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movq	_STATE_CONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	8(%r14), %edi
	movq	(%r15), %rdx
	movq	%r14, %rsi
	callq	*%rax
LBB0_11:
	movq	(%r15), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_OK,8,3                     ## @ERR_OK
	.comm	_bte_process_input,4,2          ## @bte_process_input
	.comm	_l2cap_disconnected_ind,4,2     ## @l2cap_disconnected_ind
	.comm	_STATE_CONNECTED,8,3            ## @STATE_CONNECTED
	.comm	_ERR_CONN,8,3                   ## @ERR_CONN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l2cap_accepted                 ; -- Begin function l2cap_accepted
	.p2align	2
_l2cap_accepted:                        ; @l2cap_accepted
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _ERR_OK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ERR_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x2
	b.ne	LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _bte_process_input@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bte_process_input@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_l2cap_recv
Lloh5:
	adrp	x8, _l2cap_disconnected_ind@GOTPAGE
Lloh6:
	ldr	x8, [x8, _l2cap_disconnected_ind@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_l2cap_disconnect_ind
	mov	x0, x20
	bl	_l2cap_psm
	cmp	w0, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #128
	b.ne	LBB0_7
; %bb.3:
	mov	w8, #40
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_l2cap_close
Lloh8:
	adrp	x8, _ERR_CONN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_CONN@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x19]
	ldr	x9, [x19, #16]
	ldr	w0, [x19, #8]
	ldr	x2, [x8]
	mov	x1, x19
	blr	x9
	b	LBB0_11
LBB0_5:
	mov	w8, #32
LBB0_6:
	str	x20, [x19, x8]
LBB0_7:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	x8, [x21]
	str	x8, [x19]
Lloh10:
	adrp	x8, _STATE_CONNECTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STATE_CONNECTED@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w0, [x19, #8]
	ldr	x2, [x21]
	mov	x1, x19
	blr	x8
LBB0_11:
	ldr	x0, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_OK,8,3                     ; @ERR_OK
	.comm	_bte_process_input,4,2          ; @bte_process_input
	.comm	_l2cap_disconnected_ind,4,2     ; @l2cap_disconnected_ind
	.comm	_STATE_CONNECTED,8,3            ; @STATE_CONNECTED
	.comm	_ERR_CONN,8,3                   ; @ERR_CONN
.subsections_via_symbols
