	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_cc_link_policy
_hci_cc_link_policy:                    ## @hci_cc_link_policy
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$128, %edi
	jne	LBB0_10
## %bb.1:
	movq	%rsi, %r14
	movq	(%rsi), %rax
	movl	(%rax), %ecx
	movq	_HCI_SUCCESS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_9
## %bb.2:
	movq	_hci_active_links@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %r15d
	movl	4(%rax), %edi
	callq	_le16toh
	cmpl	%eax, %r15d
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	jmp	LBB0_3
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rdi
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LOG                            ## TAILCALL
LBB0_6:
	movq	_hci_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HCI_EVENT_WLP_COMPLETE         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HCI_SUCCESS,4,2                ## @HCI_SUCCESS
	.comm	_hci_active_links,8,3           ## @hci_active_links
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hci_cc_link_policy: Connection does not exist\n"

	.comm	_hci_dev,4,2                    ## @hci_dev
L_.str.1:                               ## @.str.1
	.asciz	"Unsuccessful HCI_W_LINK_POLICY.\n"

	.no_dead_strip	_hci_cc_link_policy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_cc_link_policy
_hci_cc_link_policy:                    ; @hci_cc_link_policy
	.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
	cmp	w0, #128
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _HCI_SUCCESS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HCI_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.2:
Lloh3:
	adrp	x9, _hci_active_links@GOTPAGE
Lloh4:
	ldr	x9, [x9, _hci_active_links@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x9]
	cbz	x20, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x20, #4]
	ldr	w0, [x8, #4]
	bl	_le16toh
	cmp	w21, w0
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	b	LBB0_3
LBB0_6:
	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
	ret
LBB0_7:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_9:
	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	_LOG
LBB0_10:
Lloh10:
	adrp	x8, _hci_dev@GOTPAGE
Lloh11:
	ldr	x8, [x8, _hci_dev@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, 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_EVENT_WLP_COMPLETE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HCI_SUCCESS,4,2                ; @HCI_SUCCESS
	.comm	_hci_active_links,8,3           ; @hci_active_links
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hci_cc_link_policy: Connection does not exist\n"

	.comm	_hci_dev,4,2                    ; @hci_dev
l_.str.1:                               ; @.str.1
	.asciz	"Unsuccessful HCI_W_LINK_POLICY.\n"

	.no_dead_strip	_hci_cc_link_policy
.subsections_via_symbols
