	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdlc_Protocol2Nam              ## -- Begin function hdlc_Protocol2Nam
	.p2align	4, 0x90
_hdlc_Protocol2Nam:                     ## @hdlc_Protocol2Nam
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_NPROTOCOLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rax
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.1:
	movq	_protocols@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%rcx,%rdx)
	jg	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdi, 8(%rcx,%rdx)
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_2
LBB0_6:
	popq	%rbp
	retq
LBB0_4:
	movq	16(%rcx,%rdx), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPROTOCOLS,4,2                 ## @NPROTOCOLS
	.comm	_protocols,8,3                  ## @protocols
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unrecognised protocol"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdlc_Protocol2Nam              ; -- Begin function hdlc_Protocol2Nam
	.p2align	2
_hdlc_Protocol2Nam:                     ; @hdlc_Protocol2Nam
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _NPROTOCOLS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NPROTOCOLS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cbz	w9, LBB0_6
; %bb.1:
	mov	x8, x0
Lloh3:
	adrp	x10, _protocols@GOTPAGE
Lloh4:
	ldr	x10, [x10, _protocols@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x10, x10, #16
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x10, #-16]
	cmp	x11, x8
	b.gt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	x11, [x10, #-8]
	cmp	x11, x8
	b.ge	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #24
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_5:
	ret
LBB0_6:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	ret
LBB0_7:
	ldr	x0, [x10]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NPROTOCOLS,4,2                 ; @NPROTOCOLS
	.comm	_protocols,8,3                  ; @protocols
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unrecognised protocol"

.subsections_via_symbols
