	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_nsap
_lookup_nsap:                           ## @lookup_nsap
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	$0, %edi
	movl	$0, %r14d
	cmpl	$7, %edx
	jl	LBB0_2
## %bb.1:
	movl	%r12d, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	-24(%rcx,%rax,4), %r14d
	shll	$8, %r14d
	orl	-20(%rcx,%rax,4), %r14d
	movl	-16(%rcx,%rax,4), %edi
	shll	$8, %edi
	orl	-12(%rcx,%rax,4), %edi
	movl	-8(%rcx,%rax,4), %r15d
	shll	$8, %r15d
	orl	-4(%rcx,%rax,4), %r15d
LBB0_2:
	movq	_nsaptable@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %ecx
	xorl	%r15d, %ecx
	movq	_HASHNAMESIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	decq	%rdx
	movslq	%ecx, %rcx
	andq	%rdx, %rcx
	shlq	$5, %rcx
	leaq	(%rax,%rcx), %rbx
	leaq	(%rax,%rcx), %r13
	addq	$24, %r13
	movq	24(%rax,%rcx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	leaq	24(%rax), %r13
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	cmpl	%r12d, (%rsi)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r15d, 8(%rbx)
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%edi, 12(%rbx)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r14d, 16(%rbx)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_11:
	movl	%r15d, 8(%rbx)
	movl	%edi, 12(%rbx)
	movl	%r14d, 16(%rbx)
	leal	1(%r12), %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	*(%rdi)
	movq	(%rbx), %rax
LBB0_13:
	movl	%r12d, (%rax)
	addq	$4, %rax
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_memcpy
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	*(%rdi)
LBB0_15:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nsaptable,8,3                  ## @nsaptable
	.comm	_HASHNAMESIZE,4,2               ## @HASHNAMESIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lookup_nsap: malloc"

L_.str.1:                               ## @.str.1
	.asciz	"lookup_nsap: calloc"

	.no_dead_strip	_lookup_nsap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_nsap
_lookup_nsap:                           ; @lookup_nsap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmp	w2, #7
	b.lt	LBB0_2
; %bb.1:
	add	x8, x21, w20, uxtw #2
	ldp	w9, w10, [x8, #-24]
	orr	w23, w10, w9, lsl #8
	ldp	w9, w10, [x8, #-16]
	orr	w25, w10, w9, lsl #8
	ldp	w9, w8, [x8, #-8]
	orr	w26, w8, w9, lsl #8
	b	LBB0_3
LBB0_2:
	mov	w26, #0
	mov	w25, #0
	mov	w23, #0
LBB0_3:
Lloh0:
	adrp	x8, _nsaptable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nsaptable@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	eor	w9, w25, w26
Lloh3:
	adrp	x10, _HASHNAMESIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HASHNAMESIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x10, [x10]
	sub	x10, x10, #1
	sxtw	x9, w9
	and	x9, x10, x9
	add	x22, x8, x9, lsl #5
	mov	x24, x22
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x8
	mov	x24, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #24]!
	cbz	x8, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x22]
	ldr	w10, [x9]
	cmp	w10, w20
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x22, #8]
	cmp	w10, w26
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x22, #12]
	cmp	w10, w25
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x22, #16]
	cmp	w10, w23
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x9, #4
	mov	x0, x21
	mov	x2, x20
	bl	_memcmp
	cbz	x0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	b	LBB0_4
LBB0_12:
	stp	w26, w25, [x22, #8]
	add	w0, w20, #1
	str	w23, [x22, #16]
	bl	_malloc
	str	x0, [x22]
	cbnz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	blr	x8
	ldr	x0, [x22]
LBB0_14:
	str	w20, [x0], #4
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	str	x0, [x24]
	cbnz	x0, LBB0_16
; %bb.15:
	ldr	x8, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	blr	x8
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_nsaptable,8,3                  ; @nsaptable
	.comm	_HASHNAMESIZE,4,2               ; @HASHNAMESIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lookup_nsap: malloc"

l_.str.1:                               ; @.str.1
	.asciz	"lookup_nsap: calloc"

	.no_dead_strip	_lookup_nsap
.subsections_via_symbols
