	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_check_security
_l2cap_check_security:                  ## @l2cap_check_security
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_l2cap_pi
	movq	16(%rax), %r12
	movq	%r15, %rdi
	callq	_l2cap_pi
	movq	(%rax), %r14
	movl	$1, %edi
	callq	_cpu_to_le16
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_l2cap_pi
	movl	8(%rax), %eax
	cmpq	%rbx, %r14
	jne	LBB0_6
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_2
## %bb.3:
	movq	_HCI_AT_NO_BONDING_MITM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	cmpl	$128, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$129, %eax
	jne	LBB0_10
## %bb.8:
	movq	_HCI_AT_GENERAL_BONDING_MITM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movq	_HCI_AT_NO_BONDING@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_l2cap_pi
	movl	8(%rax), %eax
	movq	_BT_SECURITY_LOW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.5:
	movq	_BT_SECURITY_SDP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_l2cap_pi
	movl	%ebx, 8(%rax)
	jmp	LBB0_12
LBB0_9:
	movq	_HCI_AT_GENERAL_BONDING@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_HCI_AT_NO_BONDING@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r14d
LBB0_12:
	movl	(%r12), %ebx
	movq	%r15, %rdi
	callq	_l2cap_pi
	movl	8(%rax), %esi
	movl	%ebx, %edi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hci_conn_security              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HCI_AT_NO_BONDING_MITM,4,2     ## @HCI_AT_NO_BONDING_MITM
	.comm	_HCI_AT_NO_BONDING,4,2          ## @HCI_AT_NO_BONDING
	.comm	_BT_SECURITY_LOW,4,2            ## @BT_SECURITY_LOW
	.comm	_BT_SECURITY_SDP,4,2            ## @BT_SECURITY_SDP
	.comm	_HCI_AT_GENERAL_BONDING_MITM,4,2 ## @HCI_AT_GENERAL_BONDING_MITM
	.comm	_HCI_AT_GENERAL_BONDING,4,2     ## @HCI_AT_GENERAL_BONDING
	.no_dead_strip	_l2cap_check_security
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_check_security
_l2cap_check_security:                  ; @l2cap_check_security
	.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	x19, x0
	bl	_l2cap_pi
	ldr	x21, [x0, #16]
	mov	x0, x19
	bl	_l2cap_pi
	ldr	x22, [x0]
	mov	w0, #1
	bl	_cpu_to_le16
	mov	x20, x0
	mov	x0, x19
	bl	_l2cap_pi
	ldr	w8, [x0, #8]
	cmp	x22, x20
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _HCI_AT_NO_BONDING_MITM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HCI_AT_NO_BONDING_MITM@GOTPAGEOFF]
Lloh2:
	adrp	x10, _HCI_AT_NO_BONDING@GOTPAGE
Lloh3:
	ldr	x10, [x10, _HCI_AT_NO_BONDING@GOTPAGEOFF]
	cmp	w8, #129
	csel	x8, x9, x10, eq
	ldr	w20, [x8]
	mov	x0, x19
	bl	_l2cap_pi
	ldr	w8, [x0, #8]
Lloh4:
	adrp	x9, _BT_SECURITY_LOW@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BT_SECURITY_LOW@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.2:
Lloh7:
	adrp	x8, _BT_SECURITY_SDP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BT_SECURITY_SDP@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_l2cap_pi
	str	w22, [x0, #8]
	b	LBB0_9
LBB0_3:
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.5:
Lloh10:
	adrp	x8, _HCI_AT_GENERAL_BONDING_MITM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HCI_AT_GENERAL_BONDING_MITM@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x8, _HCI_AT_GENERAL_BONDING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HCI_AT_GENERAL_BONDING@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _HCI_AT_NO_BONDING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HCI_AT_NO_BONDING@GOTPAGEOFF]
LBB0_8:
	ldr	w20, [x8]
LBB0_9:
	ldr	w21, [x21]
	mov	x0, x19
	bl	_l2cap_pi
	ldr	w1, [x0, #8]
	mov	x0, x21
	mov	x2, x20
	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
	b	_hci_conn_security
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HCI_AT_NO_BONDING_MITM,4,2     ; @HCI_AT_NO_BONDING_MITM
	.comm	_HCI_AT_NO_BONDING,4,2          ; @HCI_AT_NO_BONDING
	.comm	_BT_SECURITY_LOW,4,2            ; @BT_SECURITY_LOW
	.comm	_BT_SECURITY_SDP,4,2            ; @BT_SECURITY_SDP
	.comm	_HCI_AT_GENERAL_BONDING_MITM,4,2 ; @HCI_AT_GENERAL_BONDING_MITM
	.comm	_HCI_AT_GENERAL_BONDING,4,2     ; @HCI_AT_GENERAL_BONDING
	.no_dead_strip	_l2cap_check_security
.subsections_via_symbols
