	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_parse_conf_rsp
_l2cap_parse_conf_rsp:                  ## @l2cap_parse_conf_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, -112(%rbp)
	callq	_l2cap_pi
	movq	%rax, %r12
	movq	16(%r13), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%r13, %r8
	callq	_BT_DBG
	movq	_L2CAP_CONF_OPT_SIZE@GOTPCREL(%rip), %r14
	cmpl	%ebx, (%r14)
	jle	LBB0_8
LBB0_1:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_L2CAP_CONF_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movl	-88(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.4:
	movl	-72(%rbp), %eax
	movl	%eax, 48(%r12)
	movl	-76(%rbp), %eax
	movl	%eax, 44(%r12)
	movl	-80(%rbp), %eax
	movl	%eax, 40(%r12)
LBB0_5:
	movl	-84(%rbp), %edi
	callq	_le16_to_cpu
	movq	%rax, 32(%r12)
LBB0_6:
	movl	24(%r12), %edi
	callq	_cpu_to_le16
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rax, 8(%rbx)
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movl	-48(%rbp), %eax
	subl	%ebx, %eax
LBB0_7:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	-56(%rbp), %r13
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rcx
	movq	%rcx, 8(%r12)
	leaq	-48(%rbp), %rdi
	movl	$132, %esi
LBB0_10:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	$2, %edx
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	callq	_l2cap_add_conf_opt
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	subl	%r15d, %ebx
	cmpl	(%r14), %ebx
	jl	LBB0_1
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	leaq	-112(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	movq	%r13, %rcx
	callq	_l2cap_get_conf_opt
	movq	%rax, %r15
	movl	-64(%rbp), %eax
	cmpl	$130, %eax
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$132, %eax
	je	LBB0_9
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$131, %eax
	jne	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rcx
	movq	_L2CAP_DEFAULT_MIN_MTU@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_L2CAP_CONF_UNACCEPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_L2CAP_DEFAULT_MIN_MTU@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rcx, (%r12)
	leaq	-48(%rbp), %rdi
	movl	$131, %esi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$20, -60(%rbp)
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rsi
	leaq	-88(%rbp), %rdi
	movl	$20, %edx
	callq	_memcpy
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_L2CAP_CONF_STATE2_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-88(%rbp), %eax
	testl	%ecx, 16(%r12)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	20(%r12), %eax
	jne	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%eax, 20(%r12)
	movl	$0, 52(%r12)
	leaq	-48(%rbp), %rdi
	movl	$130, %esi
	movl	$20, %edx
	leaq	-88(%rbp), %rcx
	jmp	LBB0_11
LBB0_24:
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sk %p, rsp %p, len %d, req %p"

	.comm	_L2CAP_CONF_OPT_SIZE,4,2        ## @L2CAP_CONF_OPT_SIZE
	.comm	_L2CAP_DEFAULT_MIN_MTU,8,3      ## @L2CAP_DEFAULT_MIN_MTU
	.comm	_L2CAP_CONF_UNACCEPT,8,3        ## @L2CAP_CONF_UNACCEPT
	.comm	_L2CAP_CONF_STATE2_DEVICE,4,2   ## @L2CAP_CONF_STATE2_DEVICE
	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_L2CAP_CONF_SUCCESS,8,3         ## @L2CAP_CONF_SUCCESS
	.no_dead_strip	_l2cap_parse_conf_rsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_parse_conf_rsp
_l2cap_parse_conf_rsp:                  ; @l2cap_parse_conf_rsp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	str	x1, [sp, #56]
	bl	_l2cap_pi
	mov	x20, x0
	ldr	x8, [x19, #16]
	str	x8, [sp, #48]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x19
	bl	_BT_DBG
Lloh2:
	adrp	x24, _L2CAP_CONF_OPT_SIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _L2CAP_CONF_OPT_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w22
	b.le	LBB0_8
LBB0_1:
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _L2CAP_CONF_SUCCESS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _L2CAP_CONF_SUCCESS@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [sp, #8]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [sp, #24]
	str	w8, [x20, #48]
	ldr	d0, [sp, #16]
	str	d0, [x20, #40]
LBB0_5:
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	str	x0, [x20, #32]
LBB0_6:
	ldr	w0, [x20, #24]
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	mov	w0, #0
	bl	_cpu_to_le16
	str	x0, [x19]
	ldr	w8, [sp, #48]
	sub	w0, w8, w19
LBB0_7:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
Lloh7:
	adrp	x25, _L2CAP_CONF_STATE2_DEVICE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _L2CAP_CONF_STATE2_DEVICE@GOTPAGEOFF]
Lloh9:
	adrp	x26, _L2CAP_DEFAULT_MIN_MTU@GOTPAGE
Lloh10:
	ldr	x26, [x26, _L2CAP_DEFAULT_MIN_MTU@GOTPAGEOFF]
Lloh11:
	adrp	x27, _L2CAP_CONF_UNACCEPT@GOTPAGE
Lloh12:
	ldr	x27, [x27, _L2CAP_CONF_UNACCEPT@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_13 Depth=1
	ldr	x3, [sp, #32]
	str	x3, [x20, #8]
	add	x0, sp, #48
	mov	w1, #132
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w2, #2
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	_l2cap_add_conf_opt
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x24]
	sub	w22, w22, w23
	cmp	w22, w8
	b.lt	LBB0_1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #56
	add	x1, sp, #44
	add	x2, sp, #40
	add	x3, sp, #32
	bl	_l2cap_get_conf_opt
	mov	x23, x0
	ldr	w8, [sp, #44]
	cmp	w8, #130
	b.eq	LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w8, #132
	b.eq	LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w8, #131
	b.ne	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x3, [sp, #32]
	ldr	x8, [x26]
	cmp	x3, x8
	b.hs	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x27]
	str	x8, [x21]
	ldr	x3, [x26]
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	str	x3, [x20]
	add	x0, sp, #48
	mov	w1, #131
	b	LBB0_10
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [sp, #40]
	cmp	w8, #20
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x1, [sp, #32]
	add	x0, sp, #8
	mov	w2, #20
	bl	_memcpy
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [x20, #16]
	ldr	w10, [x25]
	ldr	w8, [sp, #8]
	tst	w10, w9
	b.eq	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [x20, #20]
	cmp	w8, w9
	b.ne	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_13 Depth=1
	str	w8, [x20, #20]
	str	wzr, [x20, #52]
	add	x0, sp, #48
	add	x3, sp, #8
	mov	w1, #130
	mov	w2, #20
	b	LBB0_11
LBB0_24:
Lloh13:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sk %p, rsp %p, len %d, req %p"

	.comm	_L2CAP_CONF_OPT_SIZE,4,2        ; @L2CAP_CONF_OPT_SIZE
	.comm	_L2CAP_DEFAULT_MIN_MTU,8,3      ; @L2CAP_DEFAULT_MIN_MTU
	.comm	_L2CAP_CONF_UNACCEPT,8,3        ; @L2CAP_CONF_UNACCEPT
	.comm	_L2CAP_CONF_STATE2_DEVICE,4,2   ; @L2CAP_CONF_STATE2_DEVICE
	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_L2CAP_CONF_SUCCESS,8,3         ; @L2CAP_CONF_SUCCESS
	.no_dead_strip	_l2cap_parse_conf_rsp
.subsections_via_symbols
