	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_config_rsp
_l2cap_config_rsp:                      ## @l2cap_config_rsp
	.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	$104, %rsp
	.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, -136(%rbp)                ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	12(%rdx), %edi
	callq	___le16_to_cpu
	movl	%eax, %ebx
	movl	8(%r14), %edi
	callq	___le16_to_cpu
	movl	%eax, %r15d
	movl	4(%r14), %edi
	callq	___le16_to_cpu
	movl	%eax, %r13d
	movl	%eax, -116(%rbp)
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_BT_DBG
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_l2cap_get_chan_by_scid
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r12
	cmpl	$129, %r13d
	je	LBB0_10
## %bb.2:
	cmpl	$128, %r13d
	jne	LBB0_9
## %bb.3:
	movq	%r12, %rdi
	callq	_l2cap_pi
	movl	44(%rax), %eax
	movq	_L2CAP_CONF_MAX_CONF_RSP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_4
LBB0_9:
	movq	_BT_DISCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %esi
	movq	%r12, %rdi
	callq	_l2cap_sock_set_timer
LBB0_5:
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	callq	_l2cap_send_disconn_req
	jmp	LBB0_16
LBB0_10:
	testb	$1, %r15b
	jne	LBB0_16
LBB0_11:
	movq	_L2CAP_CONF_INPUT_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_l2cap_pi
	orl	%ebx, (%rax)
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	_L2CAP_CONF_OUTPUT_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.12:
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	_L2CAP_CONF_NO_FCS_RECV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	8(%rax), %rax
	movq	_L2CAP_FCS_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
LBB0_14:
	movq	_L2CAP_FCS_CRC16@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	%rbx, 8(%rax)
LBB0_15:
	movq	_BT_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	$0, 32(%rax)
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	$0, 24(%rax)
	movq	%r12, %rdi
	callq	_l2cap_pi
	movq	$0, 16(%rax)
	movq	%r12, %rdi
	callq	_TX_QUEUE
	movl	%eax, %edi
	callq	___skb_queue_head_init
	movq	%r12, %rdi
	callq	_SREJ_QUEUE
	movl	%eax, %edi
	callq	___skb_queue_head_init
	movq	%r12, %rdi
	callq	_l2cap_chan_ready
LBB0_16:
	movq	%r12, %rdi
	callq	_bh_unlock_sock
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edx
	addl	$-16, %edx
	cmpl	$61, %edx
	jae	LBB0_5
## %bb.6:
	movl	$129, -116(%rbp)
	movl	(%r14), %esi
	leaq	-112(%rbp), %rcx
	leaq	-116(%rbp), %r8
	movq	%r12, %rdi
	callq	_l2cap_parse_conf_rsp
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	movl	%eax, %ebx
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	_l2cap_get_ident
	movq	_L2CAP_CONF_REQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-112(%rbp), %r8
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %ecx
	callq	_l2cap_send_cmd
	movq	%r12, %rdi
	callq	_l2cap_pi
	incl	40(%rax)
	cmpl	$129, -116(%rbp)
	jne	LBB0_16
## %bb.8:
	andl	$1, %r15d
	je	LBB0_11
	jmp	LBB0_16
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scid 0x%4.4x flags 0x%2.2x result 0x%2.2x"

	.comm	_L2CAP_CONF_MAX_CONF_RSP,4,2    ## @L2CAP_CONF_MAX_CONF_RSP
	.comm	_L2CAP_CONF_REQ,4,2             ## @L2CAP_CONF_REQ
	.comm	_BT_DISCONN,4,2                 ## @BT_DISCONN
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_HZ,4,2                         ## @HZ
	.comm	_L2CAP_CONF_INPUT_DONE,4,2      ## @L2CAP_CONF_INPUT_DONE
	.comm	_L2CAP_CONF_OUTPUT_DONE,4,2     ## @L2CAP_CONF_OUTPUT_DONE
	.comm	_L2CAP_CONF_NO_FCS_RECV,4,2     ## @L2CAP_CONF_NO_FCS_RECV
	.comm	_L2CAP_FCS_NONE,8,3             ## @L2CAP_FCS_NONE
	.comm	_L2CAP_FCS_CRC16,8,3            ## @L2CAP_FCS_CRC16
	.comm	_BT_CONNECTED,4,2               ## @BT_CONNECTED
	.no_dead_strip	_l2cap_config_rsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_config_rsp
_l2cap_config_rsp:                      ; @l2cap_config_rsp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w0, [x2, #12]
	bl	___le16_to_cpu
	mov	x19, x0
	ldr	w0, [x22, #8]
	bl	___le16_to_cpu
	mov	x21, x0
	ldr	w0, [x22, #4]
	bl	___le16_to_cpu
	mov	x24, x0
	str	w0, [sp, #4]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	mov	x3, x24
	bl	_BT_DBG
	mov	x0, x20
	mov	x1, x19
	bl	_l2cap_get_chan_by_scid
	cbz	x0, LBB0_16
; %bb.1:
	mov	x19, x0
	cmp	w24, #129
	b.eq	LBB0_9
; %bb.2:
	cmp	w24, #128
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_l2cap_pi
	ldr	w8, [x0, #44]
Lloh5:
	adrp	x9, _L2CAP_CONF_MAX_CONF_RSP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _L2CAP_CONF_MAX_CONF_RSP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _BT_DISCONN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BT_DISCONN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh11:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh14:
	adrp	x8, _HZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	add	w1, w8, w8, lsl #2
	mov	x0, x19
	bl	_l2cap_sock_set_timer
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_l2cap_send_disconn_req
	b	LBB0_15
LBB0_6:
	ldr	w8, [x23]
	sub	w2, w8, #16
	cmp	w2, #61
	b.hs	LBB0_5
; %bb.7:
	mov	w8, #129
	str	w8, [sp, #4]
	ldr	w1, [x22]
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x19
	bl	_l2cap_parse_conf_rsp
	tbnz	w0, #31, LBB0_5
; %bb.8:
	mov	x22, x0
	mov	x0, x20
	bl	_l2cap_get_ident
	mov	x1, x0
Lloh17:
	adrp	x8, _L2CAP_CONF_REQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _L2CAP_CONF_REQ@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x0, x20
	mov	x3, x22
	bl	_l2cap_send_cmd
	mov	x0, x19
	bl	_l2cap_pi
	ldr	w8, [x0, #40]
	add	w8, w8, #1
	str	w8, [x0, #40]
	ldr	w8, [sp, #4]
	cmp	w8, #129
	b.ne	LBB0_15
LBB0_9:
	tbnz	w21, #0, LBB0_15
; %bb.10:
Lloh20:
	adrp	x8, _L2CAP_CONF_INPUT_DONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _L2CAP_CONF_INPUT_DONE@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_l2cap_pi
	ldr	w8, [x0]
	orr	w8, w8, w20
	str	w8, [x0]
	mov	x0, x19
	bl	_l2cap_pi
	ldr	w8, [x0]
Lloh23:
	adrp	x9, _L2CAP_CONF_OUTPUT_DONE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _L2CAP_CONF_OUTPUT_DONE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.11:
	mov	x0, x19
	bl	_l2cap_pi
	ldr	w8, [x0]
Lloh26:
	adrp	x9, _L2CAP_CONF_NO_FCS_RECV@GOTPAGE
Lloh27:
	ldr	x9, [x9, _L2CAP_CONF_NO_FCS_RECV@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_l2cap_pi
	ldr	x8, [x0, #8]
Lloh29:
	adrp	x9, _L2CAP_FCS_NONE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _L2CAP_FCS_NONE@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
LBB0_13:
Lloh32:
	adrp	x8, _L2CAP_FCS_CRC16@GOTPAGE
Lloh33:
	ldr	x8, [x8, _L2CAP_FCS_CRC16@GOTPAGEOFF]
Lloh34:
	ldr	x20, [x8]
	mov	x0, x19
	bl	_l2cap_pi
	str	x20, [x0, #8]
LBB0_14:
Lloh35:
	adrp	x8, _BT_CONNECTED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BT_CONNECTED@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_l2cap_pi
	str	xzr, [x0, #32]
	mov	x0, x19
	bl	_l2cap_pi
	str	xzr, [x0, #24]
	mov	x0, x19
	bl	_l2cap_pi
	str	xzr, [x0, #16]
	mov	x0, x19
	bl	_TX_QUEUE
	bl	___skb_queue_head_init
	mov	x0, x19
	bl	_SREJ_QUEUE
	bl	___skb_queue_head_init
	mov	x0, x19
	bl	_l2cap_chan_ready
LBB0_15:
	mov	x0, x19
	bl	_bh_unlock_sock
LBB0_16:
	ldur	x8, [x29, #-56]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	w0, #0
	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
	add	sp, sp, #144
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scid 0x%4.4x flags 0x%2.2x result 0x%2.2x"

	.comm	_L2CAP_CONF_MAX_CONF_RSP,4,2    ; @L2CAP_CONF_MAX_CONF_RSP
	.comm	_L2CAP_CONF_REQ,4,2             ; @L2CAP_CONF_REQ
	.comm	_BT_DISCONN,4,2                 ; @BT_DISCONN
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_HZ,4,2                         ; @HZ
	.comm	_L2CAP_CONF_INPUT_DONE,4,2      ; @L2CAP_CONF_INPUT_DONE
	.comm	_L2CAP_CONF_OUTPUT_DONE,4,2     ; @L2CAP_CONF_OUTPUT_DONE
	.comm	_L2CAP_CONF_NO_FCS_RECV,4,2     ; @L2CAP_CONF_NO_FCS_RECV
	.comm	_L2CAP_FCS_NONE,8,3             ; @L2CAP_FCS_NONE
	.comm	_L2CAP_FCS_CRC16,8,3            ; @L2CAP_FCS_CRC16
	.comm	_BT_CONNECTED,4,2               ; @BT_CONNECTED
	.no_dead_strip	_l2cap_config_rsp
.subsections_via_symbols
