	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dlid_to_selector
_dlid_to_selector:                      ## @dlid_to_selector
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	cmpb	$0, _dlid_to_selector.initialized(%rip)
	jne	LBB0_2
## %bb.1:
	leaq	_dlid_to_selector.mapping(%rip), %rdi
	movl	$255, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movb	$1, _dlid_to_selector.initialized(%rip)
LBB0_2:
	movl	%ebx, %eax
	shrl	$8, %eax
	xorl	%ebx, %eax
	movzbl	%al, %ecx
	leaq	_dlid_to_selector.mapping(%rip), %rdx
	movl	(%rdx,%rcx,4), %eax
	cmpl	$255, %eax
	jne	LBB0_4
## %bb.3:
	movl	_dlid_to_selector.next(%rip), %eax
	movl	%eax, (%rdx,%rcx,4)
	leal	1(%rax), %ecx
	andl	$127, %ecx
	movl	%ecx, _dlid_to_selector.next(%rip)
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_dlid_to_selector.mapping,1024,4 ## @dlid_to_selector.mapping
.zerofill __DATA,__bss,_dlid_to_selector.initialized,1,2 ## @dlid_to_selector.initialized
.zerofill __DATA,__bss,_dlid_to_selector.next,4,2 ## @dlid_to_selector.next
	.no_dead_strip	_dlid_to_selector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dlid_to_selector
_dlid_to_selector:                      ; @dlid_to_selector
	.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
	mov	x19, x0
	adrp	x21, _dlid_to_selector.initialized@PAGE
	ldrb	w8, [x21, _dlid_to_selector.initialized@PAGEOFF]
Lloh0:
	adrp	x20, _dlid_to_selector.mapping@PAGE
Lloh1:
	add	x20, x20, _dlid_to_selector.mapping@PAGEOFF
	tbnz	w8, #0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, _dlid_to_selector.mapping@PAGE
Lloh3:
	add	x0, x0, _dlid_to_selector.mapping@PAGEOFF
	mov	w1, #255
	mov	w2, #256
	bl	_memset
	mov	w8, #1
	strb	w8, [x21, _dlid_to_selector.initialized@PAGEOFF]
LBB0_2:
	eor	w8, w19, w19, lsr #8
	and	w8, w8, #0xff
	ldr	w0, [x20, w8, uxtw #2]
	cmp	w0, #255
	b.ne	LBB0_4
; %bb.3:
	adrp	x9, _dlid_to_selector.next@PAGE
	ldr	w0, [x9, _dlid_to_selector.next@PAGEOFF]
	str	w0, [x20, x8, lsl #2]
	add	w8, w0, #1
	and	w8, w8, #0x7f
	str	w8, [x9, _dlid_to_selector.next@PAGEOFF]
LBB0_4:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_dlid_to_selector.mapping,1024,2 ; @dlid_to_selector.mapping
.zerofill __DATA,__bss,_dlid_to_selector.initialized,1,2 ; @dlid_to_selector.initialized
.zerofill __DATA,__bss,_dlid_to_selector.next,4,2 ; @dlid_to_selector.next
	.no_dead_strip	_dlid_to_selector
.subsections_via_symbols
