	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snmp_import_table
_snmp_import_table:                     ## @snmp_import_table
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r14
	leaq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_STAILQ_INIT
	movq	%r12, %rdi
	callq	_gettoken
	movl	%eax, -44(%rbp)
	movq	_SNMP_INDEXES_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.2:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	movq	_TOK_TYPE@GOTPCREL(%rip), %rdx
	movq	%rdx, %rbx
	cmpl	(%rdx), %eax
	je	LBB0_20
## %bb.3:
	movq	_TOK_DEFTYPE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_20
## %bb.4:
	movq	_TOK_ENUM@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_20
## %bb.5:
	xorl	%r13d, %r13d
	movq	_TOK_BITS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_20
LBB0_6:
	movl	%r13d, %eax
LBB0_7:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	cmpl	%ecx, %eax
	jg	LBB0_13
## %bb.9:
	movl	-44(%rbp), %eax
	movq	_TOK_STR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_28
## %bb.10:
	movq	8(%rsi), %rax
	movq	%rax, (%r14)
	movl	4(%rsi), %eax
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	addq	$12, %rdi
	callq	_asn_append_oid
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_snmp_table_insert
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:
	je	LBB0_31
## %bb.12:
	movq	_ENTRY_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_snmp_import_update_table
	movl	$1, %eax
	jmp	LBB0_19
LBB0_13:
	movq	_input@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
LBB0_14:
	callq	_warnx
LBB0_15:
	movq	%r15, %rdi
	callq	_snmp_index_listfree
LBB0_16:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_18
LBB0_17:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_syslog
LBB0_18:
	movl	$-1, %eax
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	-44(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	callq	_parse_type
	movq	-56(%rbp), %rsi
	testl	%eax, %eax
	js	LBB0_29
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	-60(%rbp), %ecx
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_snmp_syntax_insert
	testq	%rax, %rax
	js	LBB0_30
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	leal	1(%r13), %eax
	movq	_SNMP_INDEXES_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_7
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	-44(%rbp), %eax
	movq	$0, -56(%rbp)
	incl	%r13d
	cmpl	(%rbx), %eax
	je	LBB0_21
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_TOK_DEFTYPE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_21
## %bb.26:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_TOK_ENUM@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_21
## %bb.27:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_TOK_BITS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_21
	jmp	LBB0_6
LBB0_28:
	movq	_input@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_14
LBB0_29:
	movq	%rsi, %rdi
	callq	_enum_pairs_free
	jmp	LBB0_15
LBB0_30:
	movq	%r15, %rdi
	callq	_snmp_index_listfree
	movq	-56(%rbp), %rdi
	callq	_enum_pairs_free
	jmp	LBB0_16
LBB0_31:
	movq	(%r14), %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc() failed: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_SNMP_INDEXES_MAX,4,2           ## @SNMP_INDEXES_MAX
	.comm	_TOK_TYPE,4,2                   ## @TOK_TYPE
	.comm	_TOK_DEFTYPE,4,2                ## @TOK_DEFTYPE
	.comm	_TOK_ENUM,4,2                   ## @TOK_ENUM
	.comm	_TOK_BITS,4,2                   ## @TOK_BITS
L_.str.1:                               ## @.str.1
	.asciz	"Bad number of indexes at line %d"

	.comm	_input,8,3                      ## @input
	.comm	_TOK_STR,4,2                    ## @TOK_STR
L_.str.2:                               ## @.str.2
	.asciz	"String expected after indexes at line %d"

	.comm	_ENTRY_INDEX,4,2                ## @ENTRY_INDEX
	.no_dead_strip	_snmp_import_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snmp_import_table
_snmp_import_table:                     ; @snmp_import_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x21, x0
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	cbz	x0, LBB0_17
; %bb.1:
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_STAILQ_INIT
	mov	x0, x21
	bl	_gettoken
	str	w0, [sp, #12]
Lloh0:
	adrp	x23, _SNMP_INDEXES_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SNMP_INDEXES_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	str	xzr, [sp]
Lloh2:
	adrp	x24, _TOK_TYPE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TOK_TYPE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _TOK_DEFTYPE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _TOK_DEFTYPE@GOTPAGEOFF]
	ldr	w9, [x24]
	ldr	w10, [x26]
Lloh6:
	adrp	x27, _TOK_ENUM@GOTPAGE
Lloh7:
	ldr	x27, [x27, _TOK_ENUM@GOTPAGEOFF]
Lloh8:
	adrp	x28, _TOK_BITS@GOTPAGE
Lloh9:
	ldr	x28, [x28, _TOK_BITS@GOTPAGEOFF]
	ldr	w11, [x27]
	ldr	w12, [x28]
	cmp	w0, w9
	ccmp	w0, w10, #4, ne
	ccmp	w0, w11, #4, ne
	mov	w25, #0
	ccmp	w0, w12, #4, ne
	b.ne	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x21
	bl	_parse_type
	ldr	x1, [sp]
	tbnz	w0, #31, LBB0_21
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	ldr	w3, [sp, #8]
	mov	x0, x20
	bl	_snmp_syntax_insert
	tbnz	x0, #63, LBB0_22
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w25, #1
	ldr	w8, [x23]
	cmp	w25, w8
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [sp, #12]
	str	xzr, [sp]
	ldr	w10, [x24]
	ldr	w11, [x26]
	ldr	w12, [x27]
	ldr	w13, [x28]
	cmp	w9, w10
	ccmp	w9, w11, #4, ne
	ccmp	w9, w12, #4, ne
	ccmp	w9, w13, #4, ne
	b.eq	LBB0_3
LBB0_7:
	cbz	w25, LBB0_13
; %bb.8:
	cmp	w25, w8
	b.gt	LBB0_13
; %bb.9:
	ldr	w8, [sp, #12]
Lloh10:
	adrp	x9, _TOK_STR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TOK_STR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.10:
	ldr	x8, [x22, #8]
	str	x8, [x19]
	ldr	w8, [x22, #4]
	str	w8, [x19, #16]
	add	x0, x19, #12
	mov	x1, x22
	bl	_asn_append_oid
	mov	x0, x21
	mov	x1, x19
	bl	_snmp_table_insert
	tbnz	w0, #31, LBB0_15
; %bb.11:
	cbz	w0, LBB0_23
; %bb.12:
Lloh13:
	adrp	x8, _ENTRY_INDEX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENTRY_INDEX@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_snmp_import_update_table
	mov	w0, #1
	b	LBB0_19
LBB0_13:
Lloh16:
	adrp	x8, _input@GOTPAGE
Lloh17:
	ldr	x8, [x8, _input@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_14:
	bl	_warnx
LBB0_15:
	mov	x0, x20
	bl	_snmp_index_listfree
LBB0_16:
	mov	x0, x19
	bl	_free
	b	LBB0_18
LBB0_17:
Lloh21:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_syslog
LBB0_18:
	mov	w0, #-1
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
Lloh29:
	adrp	x8, _input@GOTPAGE
Lloh30:
	ldr	x8, [x8, _input@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_21:
	mov	x0, x1
	bl	_enum_pairs_free
	b	LBB0_15
LBB0_22:
	mov	x0, x20
	bl	_snmp_index_listfree
	ldr	x0, [sp]
	bl	_enum_pairs_free
	b	LBB0_16
LBB0_23:
	ldr	x0, [x19]
	bl	_free
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc() failed: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_SNMP_INDEXES_MAX,4,2           ; @SNMP_INDEXES_MAX
	.comm	_TOK_TYPE,4,2                   ; @TOK_TYPE
	.comm	_TOK_DEFTYPE,4,2                ; @TOK_DEFTYPE
	.comm	_TOK_ENUM,4,2                   ; @TOK_ENUM
	.comm	_TOK_BITS,4,2                   ; @TOK_BITS
l_.str.1:                               ; @.str.1
	.asciz	"Bad number of indexes at line %d"

	.comm	_input,8,3                      ; @input
	.comm	_TOK_STR,4,2                    ; @TOK_STR
l_.str.2:                               ; @.str.2
	.asciz	"String expected after indexes at line %d"

	.comm	_ENTRY_INDEX,4,2                ; @ENTRY_INDEX
	.no_dead_strip	_snmp_import_table
.subsections_via_symbols
