	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_sig_channel
_l2cap_sig_channel:                     ## @l2cap_sig_channel
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rsi), %rbx
	movl	(%rsi), %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	callq	_l2cap_raw_recv
	movq	_L2CAP_CMD_HDR_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	cmpl	%edx, %r14d
	jl	LBB0_22
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r14d, %rax
	leaq	(%rbx,%rax,4), %rbx
	movl	(%r13), %edx
	movl	-80(%rbp), %r14d                ## 4-byte Reload
	cmpl	%edx, %r14d
	jl	LBB0_22
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, -76(%rbp)                ## 4-byte Spill
	leaq	-64(%rbp), %rdi
	movq	%rbx, %r15
	movq	%rbx, %rsi
	callq	_memcpy
	movq	%r13, %rbx
	movslq	(%r13), %rbx
	subl	%ebx, %r14d
	movl	-56(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %r12d
	movl	-64(%rbp), %esi
	movl	-60(%rbp), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_BT_DBG
	movl	%r14d, %eax
	subl	%r12d, %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	jl	LBB0_21
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-60(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_21
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %r14d
	leaq	(%r15,%rbx,4), %rbx
	movl	-64(%rbp), %eax
	leal	-128(%rax), %ecx
	cmpl	$10, %ecx
	ja	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rax
	addq	%rdx, %rax
	movl	-76(%rbp), %r12d                ## 4-byte Reload
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_l2cap_information_rsp
	jmp	LBB0_15
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_BT_ERR
	xorl	%r12d, %r12d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	testl	%r12d, %r12d
	jne	LBB0_19
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_l2cap_information_req
	jmp	LBB0_15
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$130, %edx
	movl	%r14d, %ecx
	movq	%rbx, %r8
	callq	_l2cap_send_cmd
	testl	%r12d, %r12d
	jne	LBB0_19
	jmp	LBB0_2
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_l2cap_disconnect_rsp
	jmp	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_l2cap_disconnect_req
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_l2cap_connect_rsp
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_l2cap_connect_req
	jmp	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_l2cap_config_rsp
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r12d
	testl	%r12d, %r12d
	jne	LBB0_19
	jmp	LBB0_2
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-64(%rbp), %rsi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	callq	_l2cap_config_req
	movl	%eax, %r12d
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	je	LBB0_2
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_BT_DBG
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movl	%eax, -72(%rbp)
	movl	-60(%rbp), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$138, %edx
	movl	$4, %ecx
	leaq	-72(%rbp), %r8
	callq	_l2cap_send_cmd
	jmp	LBB0_2
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_l2cap_command_rej
	testl	%r12d, %r12d
	jne	LBB0_19
	jmp	LBB0_2
LBB0_21:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_BT_DBG
LBB0_22:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree_skb
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_18
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.comm	_L2CAP_CMD_HDR_SIZE,4,2         ## @L2CAP_CMD_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"code 0x%2.2x len %d id 0x%2.2x"

L_.str.1:                               ## @.str.1
	.asciz	"corrupted command"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown signaling command 0x%2.2x"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"error %d"

	.no_dead_strip	_l2cap_sig_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_sig_channel
_l2cap_sig_channel:                     ; @l2cap_sig_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x26, [x1, #8]
	ldr	w28, [x1]
	bl	_l2cap_raw_recv
Lloh0:
	adrp	x27, _L2CAP_CMD_HDR_SIZE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _L2CAP_CMD_HDR_SIZE@GOTPAGEOFF]
	ldr	w2, [x27]
	cmp	w28, w2
	b.lt	LBB0_20
; %bb.1:
	mov	w25, #0
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x22, lJTI0_0@PAGE
Lloh5:
	add	x22, x22, lJTI0_0@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, w24, sxtw #2
	ldr	w2, [x27]
	cmp	w28, w2
	b.lt	LBB0_20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #32
	mov	x1, x26
	bl	_memcpy
	ldrsw	x23, [x27]
	sub	w28, w28, w23
	ldr	w0, [sp, #40]
	bl	_le16_to_cpu
	mov	x24, x0
	ldp	w8, w9, [sp, #32]
	stp	x24, x9, [sp, #8]
	str	x8, [sp]
	mov	x0, x21
	bl	_BT_DBG
	ldr	w1, [sp, #36]
	subs	w28, w28, w24
	ccmp	w1, #0, #4, ge
	b.eq	LBB0_19
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, x23, lsl #2
	ldr	w8, [sp, #32]
	sub	w9, w8, #128
	cmp	w9, #10
	b.hi	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x8, LBB0_6
	ldrb	w10, [x22, x9]
	add	x8, x8, x10, lsl #2
	br	x8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #32
	mov	x0, x20
	mov	x2, x26
	bl	_l2cap_information_rsp
	mov	x25, x0
	cbnz	w25, LBB0_17
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x8
	bl	_BT_ERR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w25, w8
	cbnz	w25, LBB0_17
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #32
	mov	x0, x20
	mov	x2, x26
	bl	_l2cap_information_req
	mov	x25, x0
	cbnz	w25, LBB0_17
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	w2, #130
	mov	x3, x24
	mov	x4, x26
	bl	_l2cap_send_cmd
	cbnz	w25, LBB0_17
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #32
	mov	x0, x20
	mov	x2, x26
	bl	_l2cap_disconnect_rsp
	mov	x25, x0
	cbnz	w25, LBB0_17
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #32
	mov	x0, x20
	mov	x2, x26
	bl	_l2cap_disconnect_req
	mov	x25, x0
	cbnz	w25, LBB0_17
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #32
	mov	x0, x20
	mov	x2, x26
	bl	_l2cap_connect_rsp
	mov	x25, x0
	cbnz	w25, LBB0_17
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #32
	mov	x0, x20
	mov	x2, x26
	bl	_l2cap_connect_req
	mov	x25, x0
	cbnz	w25, LBB0_17
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #32
	mov	x0, x20
	mov	x2, x26
	bl	_l2cap_config_rsp
	mov	x25, x0
	cbnz	w25, LBB0_17
	b	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #32
	mov	x0, x20
	mov	x2, x24
	mov	x3, x26
	bl	_l2cap_config_req
	mov	x25, x0
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w25, LBB0_2
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x25, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_BT_DBG
	mov	w0, #0
	bl	_cpu_to_le16
	str	w0, [sp, #24]
	ldr	w1, [sp, #36]
	add	x4, sp, #24
	mov	x0, x20
	mov	w2, #138
	mov	w3, #4
	bl	_l2cap_send_cmd
	b	LBB0_2
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #32
	mov	x0, x20
	mov	x2, x26
	bl	_l2cap_command_rej
	cbnz	w25, LBB0_17
	b	LBB0_2
LBB0_19:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_DBG
LBB0_20:
	mov	x0, x19
	bl	_kfree_skb
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_16-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_18-LBB0_6)>>2
                                        ; -- End function
	.comm	_L2CAP_CMD_HDR_SIZE,4,2         ; @L2CAP_CMD_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"code 0x%2.2x len %d id 0x%2.2x"

l_.str.1:                               ; @.str.1
	.asciz	"corrupted command"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown signaling command 0x%2.2x"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"error %d"

	.no_dead_strip	_l2cap_sig_channel
.subsections_via_symbols
