	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_check_encryption
_l2cap_check_encryption:                ## @l2cap_check_encryption
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_SOCK_SEQPACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_l2cap_pi
	movq	(%rax), %rax
	movq	_BT_SECURITY_MEDIUM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.5:
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_l2cap_sock_clear_timer         ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	cmpq	%rcx, %rax
	jne	LBB0_3
## %bb.7:
	callq	_l2cap_sock_clear_timer
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_l2cap_sock_set_timer           ## TAILCALL
LBB0_3:
	callq	_l2cap_pi
	movq	(%rax), %rax
	movq	_BT_SECURITY_HIGH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___l2cap_sock_close             ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_SEQPACKET,8,3             ## @SOCK_SEQPACKET
	.comm	_BT_SECURITY_MEDIUM,8,3         ## @BT_SECURITY_MEDIUM
	.comm	_HZ,4,2                         ## @HZ
	.comm	_BT_SECURITY_HIGH,8,3           ## @BT_SECURITY_HIGH
	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.no_dead_strip	_l2cap_check_encryption
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_check_encryption
_l2cap_check_encryption:                ; @l2cap_check_encryption
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SOCK_SEQPACKET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOCK_SEQPACKET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_l2cap_pi
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _BT_SECURITY_MEDIUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BT_SECURITY_MEDIUM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cbz	w20, LBB0_4
; %bb.2:
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_l2cap_sock_clear_timer
LBB0_4:
	mov	x0, x19
	b.ne	LBB0_6
; %bb.5:
	bl	_l2cap_sock_clear_timer
Lloh6:
	adrp	x8, _HZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w1, w8, w8, lsl #2
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_l2cap_sock_set_timer
LBB0_6:
	bl	_l2cap_pi
	ldr	x8, [x0]
Lloh9:
	adrp	x9, _BT_SECURITY_HIGH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BT_SECURITY_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___l2cap_sock_close
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_SEQPACKET,8,3             ; @SOCK_SEQPACKET
	.comm	_BT_SECURITY_MEDIUM,8,3         ; @BT_SECURITY_MEDIUM
	.comm	_HZ,4,2                         ; @HZ
	.comm	_BT_SECURITY_HIGH,8,3           ; @BT_SECURITY_HIGH
	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.no_dead_strip	_l2cap_check_encryption
.subsections_via_symbols
