	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_lid
_get_lid:                               ## @get_lid
	.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
	movq	$0, -32(%rbp)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movsbl	(%rsi), %edi
	callq	_isalpha
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_get_lid_from_name
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	-32(%rbp), %rax
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	cmpq	$0, (%rbx)
	jne	LBB0_10
## %bb.7:
	testq	%rax, %rax
	jle	LBB0_10
## %bb.8:
	movq	_UINT16_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_10
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %r14d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r15, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	%r14d, %edi
	callq	_exit
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to find lid for \"%s\": %s\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_UINT16_MAX,8,3                 ## @UINT16_MAX
L_.str.1:                               ## @.str.1
	.asciz	"Invalid lid specified: \"%s\"\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_get_lid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_lid
_get_lid:                               ; @get_lid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	xzr, [sp, #8]
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldrsb	w0, [x1]
	bl	_isalpha
	cbz	x0, LBB0_5
; %bb.2:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_get_lid_from_name
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	x0, [sp, #8]
	b	LBB0_6
LBB0_4:
	mov	x0, #0
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x20, _errno@GOTPAGE
Lloh1:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	str	xzr, [x20]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _UINT16_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UINT16_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x0, #1, #8, eq
	ccmp	x0, x9, #0, ge
	b.gt	LBB0_8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	mov	x21, x0
	bl	_strerror
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_fprintf
	mov	x0, x21
	bl	_exit
LBB0_8:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_fprintf
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to find lid for \"%s\": %s\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_UINT16_MAX,8,3                 ; @UINT16_MAX
l_.str.1:                               ; @.str.1
	.asciz	"Invalid lid specified: \"%s\"\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_get_lid
.subsections_via_symbols
