	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_version                  ## -- Begin function parse_version
	.p2align	4, 0x90
_parse_version:                         ## @parse_version
	.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	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	_errno@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	movq	$0, (%r14)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtoul
                                        ## kill: def $eax killed $eax def $rax
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	jmp	LBB0_5
LBB0_2:
	leal	-1(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_4
## %bb.3:
	movslq	%ecx, %rax
	leaq	l_switch.table.parse_version(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movq	_snmp_client@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$2, %eax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
LBB0_5:
	movl	$-1, %eax
LBB0_6:
	movslq	%r15d, %rcx
	movq	%rcx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error parsing version"

	.comm	_SNMP_V1,4,2                    ## @SNMP_V1
	.comm	_snmp_client,4,2                ## @snmp_client
	.comm	_SNMP_V2c,4,2                   ## @SNMP_V2c
	.comm	_SNMP_V3,4,2                    ## @SNMP_V3
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported SNMP version - %u"

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.parse_version
l_switch.table.parse_version:
	.quad	_SNMP_V1
	.quad	_SNMP_V2c
	.quad	_SNMP_V3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_version                  ; -- Begin function parse_version
	.p2align	2
_parse_version:                         ; @parse_version
	.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
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x20, _errno@GOTPAGE
Lloh1:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	x21, [x20]
	str	xzr, [x20]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #10
	bl	_strtoul
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_5
LBB0_2:
	mov	x1, x0
	sub	w8, w0, #1
	cmp	w8, #3
	b.hs	LBB0_4
; %bb.3:
Lloh4:
	adrp	x9, l_switch.table.parse_version@PAGE
Lloh5:
	add	x9, x9, l_switch.table.parse_version@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _snmp_client@GOTPAGE
Lloh7:
	ldr	x9, [x9, _snmp_client@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	mov	w0, #2
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
LBB0_5:
	mov	w0, #-1
LBB0_6:
	sxtw	x8, w21
	str	x8, [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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error parsing version"

	.comm	_SNMP_V1,4,2                    ; @SNMP_V1
	.comm	_snmp_client,4,2                ; @snmp_client
	.comm	_SNMP_V2c,4,2                   ; @SNMP_V2c
	.comm	_SNMP_V3,4,2                    ; @SNMP_V3
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported SNMP version - %u"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.parse_version
l_switch.table.parse_version:
	.quad	_SNMP_V1
	.quad	_SNMP_V2c
	.quad	_SNMP_V3

.subsections_via_symbols
