	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_btsock_l2cap_addrtype_to_linktype ## -- Begin function ng_btsock_l2cap_addrtype_to_linktype
	.p2align	4, 0x90
_ng_btsock_l2cap_addrtype_to_linktype:  ## @ng_btsock_l2cap_addrtype_to_linktype
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %edi
	jne	LBB0_1
## %bb.2:
	movq	_NG_HCI_LINK_LE_RANDOM@GOTPCREL(%rip), %rax
	cmpl	$129, %edi
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_NG_HCI_LINK_ACL@GOTPCREL(%rip), %rax
	cmpl	$129, %edi
	jne	LBB0_5
LBB0_4:
	movq	_NG_HCI_LINK_LE_PUBLIC@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_HCI_LINK_LE_PUBLIC,4,2      ## @NG_HCI_LINK_LE_PUBLIC
	.comm	_NG_HCI_LINK_LE_RANDOM,4,2      ## @NG_HCI_LINK_LE_RANDOM
	.comm	_NG_HCI_LINK_ACL,4,2            ## @NG_HCI_LINK_ACL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_btsock_l2cap_addrtype_to_linktype ; -- Begin function ng_btsock_l2cap_addrtype_to_linktype
	.p2align	2
_ng_btsock_l2cap_addrtype_to_linktype:  ; @ng_btsock_l2cap_addrtype_to_linktype
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _NG_HCI_LINK_LE_PUBLIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_HCI_LINK_LE_PUBLIC@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NG_HCI_LINK_LE_RANDOM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NG_HCI_LINK_LE_RANDOM@GOTPAGEOFF]
Lloh4:
	adrp	x10, _NG_HCI_LINK_ACL@GOTPAGE
Lloh5:
	ldr	x10, [x10, _NG_HCI_LINK_ACL@GOTPAGEOFF]
	cmp	w0, #128
	csel	x9, x9, x10, eq
	cmp	w0, #129
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_HCI_LINK_LE_PUBLIC,4,2      ; @NG_HCI_LINK_LE_PUBLIC
	.comm	_NG_HCI_LINK_LE_RANDOM,4,2      ; @NG_HCI_LINK_LE_RANDOM
	.comm	_NG_HCI_LINK_ACL,4,2            ; @NG_HCI_LINK_ACL
.subsections_via_symbols
