	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_information_req
_l2cap_information_req:                 ## @l2cap_information_req
	.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	%r12
	pushq	%rbx
	subq	$304, %rsp                      ## imm = 0x130
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	(%rdx), %edi
	callq	___le16_to_cpu
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_BT_DBG
	movq	_L2CAP_IT_FEAT_MASK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_4
## %bb.1:
	movq	_l2cap_feat_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_cpu_to_le16
	movq	%rax, -328(%rbp)
	movq	_L2CAP_IR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, -336(%rbp)
	movq	_enable_ertm@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_L2CAP_FEAT_ERTM@GOTPCREL(%rip), %rax
	movq	_L2CAP_FEAT_STREAMING@GOTPCREL(%rip), %rcx
	movq	_L2CAP_FEAT_FCS@GOTPCREL(%rip), %rdx
	orl	(%rax), %r12d
	orl	(%rcx), %r12d
	orl	(%rdx), %r12d
LBB0_3:
	movl	%r12d, %edi
	callq	_put_unaligned_le32
	movl	(%r15), %esi
	movq	_L2CAP_INFO_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-336(%rbp), %r8
	movq	%r14, %rdi
	movl	$192, %ecx
	jmp	LBB0_7
LBB0_4:
	movq	_L2CAP_IT_FIXED_CHAN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_cpu_to_le16
	movq	%rax, -328(%rbp)
	movq	_L2CAP_IR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, -336(%rbp)
	leaq	-240(%rbp), %rdi
	movq	_l2cap_fixed_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_memcpy
	movl	(%r15), %esi
	movq	_L2CAP_INFO_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-336(%rbp), %r8
	movq	%r14, %rdi
	movl	$288, %ecx                      ## imm = 0x120
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_cpu_to_le16
	movq	%rax, -328(%rbp)
	movq	_L2CAP_IR_NOTSUPP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, -336(%rbp)
	movl	(%r15), %esi
	movq	_L2CAP_INFO_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-336(%rbp), %r8
	movq	%r14, %rdi
	movl	$24, %ecx
LBB0_7:
	callq	_l2cap_send_cmd
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	addq	$304, %rsp                      ## imm = 0x130
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"type 0x%4.4x"

	.comm	_L2CAP_IT_FEAT_MASK,8,3         ## @L2CAP_IT_FEAT_MASK
	.comm	_l2cap_feat_mask,4,2            ## @l2cap_feat_mask
	.comm	_L2CAP_IR_SUCCESS,8,3           ## @L2CAP_IR_SUCCESS
	.comm	_enable_ertm,8,3                ## @enable_ertm
	.comm	_L2CAP_FEAT_ERTM,4,2            ## @L2CAP_FEAT_ERTM
	.comm	_L2CAP_FEAT_STREAMING,4,2       ## @L2CAP_FEAT_STREAMING
	.comm	_L2CAP_FEAT_FCS,4,2             ## @L2CAP_FEAT_FCS
	.comm	_L2CAP_INFO_RSP,4,2             ## @L2CAP_INFO_RSP
	.comm	_L2CAP_IT_FIXED_CHAN,8,3        ## @L2CAP_IT_FIXED_CHAN
	.comm	_l2cap_fixed_chan,4,2           ## @l2cap_fixed_chan
	.comm	_L2CAP_IR_NOTSUPP,8,3           ## @L2CAP_IR_NOTSUPP
	.no_dead_strip	_l2cap_information_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_information_req
_l2cap_information_req:                 ; @l2cap_information_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x20, x1
	mov	x19, 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]
	bl	___le16_to_cpu
	mov	x22, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_BT_DBG
Lloh5:
	adrp	x8, _L2CAP_IT_FEAT_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _L2CAP_IT_FEAT_MASK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_4
; %bb.1:
Lloh8:
	adrp	x8, _l2cap_feat_mask@GOTPAGE
Lloh9:
	ldr	x8, [x8, _l2cap_feat_mask@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [sp, #16]
Lloh11:
	adrp	x8, _L2CAP_IR_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _L2CAP_IR_SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #8]
Lloh14:
	adrp	x8, _enable_ertm@GOTPAGE
Lloh15:
	ldr	x8, [x8, _enable_ertm@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh17:
	adrp	x8, _L2CAP_FEAT_ERTM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _L2CAP_FEAT_ERTM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _L2CAP_FEAT_STREAMING@GOTPAGE
Lloh21:
	ldr	x9, [x9, _L2CAP_FEAT_STREAMING@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _L2CAP_FEAT_FCS@GOTPAGE
Lloh24:
	ldr	x10, [x10, _L2CAP_FEAT_FCS@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w8, w8, w21
	orr	w8, w8, w9
	orr	w21, w8, w10
LBB0_3:
	mov	x0, x21
	bl	_put_unaligned_le32
	ldr	w1, [x20]
Lloh26:
	adrp	x8, _L2CAP_INFO_RSP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _L2CAP_INFO_RSP@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	w3, #192
	b	LBB0_7
LBB0_4:
Lloh29:
	adrp	x8, _L2CAP_IT_FIXED_CHAN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _L2CAP_IT_FIXED_CHAN@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	mov	x0, x22
	cmp	x22, x8
	b.ne	LBB0_6
; %bb.5:
	bl	_cpu_to_le16
	str	x0, [sp, #16]
Lloh32:
	adrp	x8, _L2CAP_IR_SUCCESS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _L2CAP_IR_SUCCESS@GOTPAGEOFF]
Lloh34:
	ldr	x0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #8]
	add	x8, sp, #8
	add	x0, x8, #96
Lloh35:
	adrp	x8, _l2cap_fixed_chan@GOTPAGE
Lloh36:
	ldr	x8, [x8, _l2cap_fixed_chan@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_memcpy
	ldr	w1, [x20]
Lloh38:
	adrp	x8, _L2CAP_INFO_RSP@GOTPAGE
Lloh39:
	ldr	x8, [x8, _L2CAP_INFO_RSP@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	w3, #288
	b	LBB0_7
LBB0_6:
	bl	_cpu_to_le16
	str	x0, [sp, #16]
Lloh41:
	adrp	x8, _L2CAP_IR_NOTSUPP@GOTPAGE
Lloh42:
	ldr	x8, [x8, _L2CAP_IR_NOTSUPP@GOTPAGEOFF]
Lloh43:
	ldr	x0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #8]
	ldr	w1, [x20]
Lloh44:
	adrp	x8, _L2CAP_INFO_RSP@GOTPAGE
Lloh45:
	ldr	x8, [x8, _L2CAP_INFO_RSP@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	w3, #24
LBB0_7:
	bl	_l2cap_send_cmd
	ldur	x8, [x29, #-56]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"type 0x%4.4x"

	.comm	_L2CAP_IT_FEAT_MASK,8,3         ; @L2CAP_IT_FEAT_MASK
	.comm	_l2cap_feat_mask,4,2            ; @l2cap_feat_mask
	.comm	_L2CAP_IR_SUCCESS,8,3           ; @L2CAP_IR_SUCCESS
	.comm	_enable_ertm,8,3                ; @enable_ertm
	.comm	_L2CAP_FEAT_ERTM,4,2            ; @L2CAP_FEAT_ERTM
	.comm	_L2CAP_FEAT_STREAMING,4,2       ; @L2CAP_FEAT_STREAMING
	.comm	_L2CAP_FEAT_FCS,4,2             ; @L2CAP_FEAT_FCS
	.comm	_L2CAP_INFO_RSP,4,2             ; @L2CAP_INFO_RSP
	.comm	_L2CAP_IT_FIXED_CHAN,8,3        ; @L2CAP_IT_FIXED_CHAN
	.comm	_l2cap_fixed_chan,4,2           ; @l2cap_fixed_chan
	.comm	_L2CAP_IR_NOTSUPP,8,3           ; @L2CAP_IR_NOTSUPP
	.no_dead_strip	_l2cap_information_req
.subsections_via_symbols
