	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getprognum
_getprognum:                            ## @getprognum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	callq	_isdigit
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	cmpb	$0, (%rbx)
	jne	LBB0_5
LBB0_4:
	movsbl	-1(%rbx), %edi
	callq	_isalpha
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	movq	%r14, %rdi
	callq	_getrpcbyname
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_errx
LBB0_7:
	movl	(%rbx), %ebx
	jmp	LBB0_11
LBB0_8:
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, %ebx
	movq	-24(%rbp), %rax
	cmpq	%r14, %rax
	je	LBB0_10
## %bb.9:
	cmpb	$0, (%rax)
	je	LBB0_11
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_errx
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s is unknown service"

L_.str.1:                               ## @.str.1
	.asciz	"%s is illegal program number"

	.no_dead_strip	_getprognum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getprognum
_getprognum:                            ; @getprognum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	x20, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20]
	cbz	w0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x20, x20, #1
	bl	_isdigit
	cbnz	x0, LBB0_1
; %bb.3:
	ldrb	w8, [x20]
	cbnz	w8, LBB0_5
LBB0_4:
	ldursb	w0, [x20, #-1]
	bl	_isalpha
	cbz	x0, LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_getrpcbyname
	mov	x20, x0
	cbnz	x0, LBB0_7
; %bb.6:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_7:
	ldr	w20, [x20]
	b	LBB0_11
LBB0_8:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #10
	bl	_strtol
	mov	x20, x0
	ldr	x8, [sp, #8]
	cmp	x8, x19
	b.eq	LBB0_10
; %bb.9:
	ldrb	w8, [x8]
	cbz	w8, LBB0_11
LBB0_10:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s is unknown service"

l_.str.1:                               ; @.str.1
	.asciz	"%s is illegal program number"

	.no_dead_strip	_getprognum
.subsections_via_symbols
