	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setproto                       ## -- Begin function setproto
	.p2align	4, 0x90
_setproto:                              ## @setproto
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_protos@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	leaq	24(%r14), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	(%rbx), %rdi
	addq	$16, %rbx
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.5:
	movl	%r12d, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
LBB0_6:
	shlq	$4, %rax
	addq	%rax, %r14
	movq	%r15, %rdi
	callq	_getprotobyname
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_11:
	movl	%r12d, %eax
	shlq	$4, %rax
	addq	%rax, %r14
	jmp	LBB0_10
LBB0_8:
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	movl	$255, %ecx
	callq	_str2val
LBB0_9:
	movl	%eax, (%r14)
LBB0_10:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_protos,8,3                     ## @protos
	.comm	_optarg,4,2                     ## @optarg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"proto number"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setproto                       ; -- Begin function setproto
	.p2align	2
_setproto:                              ; @setproto
	.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
Lloh0:
	adrp	x8, _protos@GOTPAGE
Lloh1:
	ldr	x8, [x8, _protos@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, #0
	add	x22, x20, #24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x19
	bl	_strcasecmp
	cbz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldr	x0, [x22], #16
	cbnz	x0, LBB0_2
; %bb.4:
	and	x8, x21, #0xffffffff
	b	LBB0_6
LBB0_5:
	mov	x8, #0
LBB0_6:
	add	x20, x20, x8, lsl #4
	mov	x0, x19
	bl	_getprotobyname
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w0, [x0]
	b	LBB0_10
LBB0_8:
	add	x20, x20, w21, uxtw #4
	b	LBB0_11
LBB0_9:
Lloh3:
	adrp	x8, _optarg@GOTPAGE
Lloh4:
	ldr	x8, [x8, _optarg@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	mov	w3, #255
	bl	_str2val
LBB0_10:
	str	w0, [x20]
LBB0_11:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_protos,8,3                     ; @protos
	.comm	_optarg,4,2                     ; @optarg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"proto number"

.subsections_via_symbols
