	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_getnext                   ## -- Begin function snmp_getnext
	.p2align	4, 0x90
_snmp_getnext:                          ## @snmp_getnext
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%rbx, -56(%rbp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_snmp_pdu_create_response
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_snmp_pdu_encode_header
	testq	%rax, %rax
	je	LBB0_1
## %bb.19:
	movq	_SNMP_RET_IGN@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%r14)
	je	LBB0_14
## %bb.2:
	movl	$1, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rsi
	addq	%r15, %rsi
	movq	24(%r13), %rdx
	addq	%r15, %rdx
	leaq	-56(%rbp), %rdi
	movq	%r14, %rcx
	callq	_do_getnext
	movl	%eax, %ebx
	movq	_SNMP_RET_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	(%r13)
	movq	24(%r13), %rsi
	addq	%r15, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_snmp_binding_encode
	movl	%eax, %ebx
	movq	_ASN_ERR_EOBUF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ASN_ERR_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r12), %rax
	addq	$4, %r15
	cmpq	(%r14), %r12
	movq	%rax, %r12
	jb	LBB0_3
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_snmp_fix_encoding
	movq	_SNMP_CODE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.16:
	movq	_SNMP_RET_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_snmp_debug
	movq	_SNMP_RET_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_4:
	movq	%r12, 8(%r14)
	movq	%r13, %rdi
	callq	_snmp_pdu_free
	jmp	LBB0_18
LBB0_6:
	movq	_SNMP_ERR_TOOBIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	$0, 8(%r14)
	jmp	LBB0_7
LBB0_10:
	movq	_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_snmp_debug
LBB0_12:
	movq	_SNMP_ERR_GENERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r12, 8(%r14)
LBB0_7:
	movq	%r13, %rdi
	callq	_snmp_pdu_free
	movq	_SNMP_RET_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_RET_IGN,4,2               ## @SNMP_RET_IGN
	.comm	_SNMP_RET_OK,4,2                ## @SNMP_RET_OK
	.comm	_ASN_ERR_EOBUF,4,2              ## @ASN_ERR_EOBUF
	.comm	_SNMP_ERR_TOOBIG,4,2            ## @SNMP_ERR_TOOBIG
	.comm	_SNMP_RET_ERR,4,2               ## @SNMP_RET_ERR
	.comm	_ASN_ERR_OK,4,2                 ## @ASN_ERR_OK
	.comm	_GET,4,2                        ## @GET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getnext: binding encoding: %u"

	.comm	_SNMP_ERR_GENERR,4,2            ## @SNMP_ERR_GENERR
	.comm	_SNMP_CODE_OK,8,3               ## @SNMP_CODE_OK
L_.str.1:                               ## @.str.1
	.asciz	"getnext: failed to encode PDU"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_getnext                   ; -- Begin function snmp_getnext
	.p2align	2
_snmp_getnext:                          ; @snmp_getnext
	.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, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x22, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_snmp_pdu_create_response
	mov	x0, x21
	mov	x1, x19
	bl	_snmp_pdu_encode_header
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SNMP_RET_IGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNMP_RET_IGN@GOTPAGEOFF]
	b	LBB0_18
LBB0_2:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.3:
	mov	x24, #0
	mov	w23, #1
Lloh2:
	adrp	x25, _SNMP_RET_OK@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SNMP_RET_OK@GOTPAGEOFF]
Lloh4:
	adrp	x26, _ASN_ERR_EOBUF@GOTPAGE
Lloh5:
	ldr	x26, [x26, _ASN_ERR_EOBUF@GOTPAGEOFF]
Lloh6:
	adrp	x27, _ASN_ERR_OK@GOTPAGE
Lloh7:
	ldr	x27, [x27, _ASN_ERR_OK@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	add	x1, x8, x24
	ldr	x8, [x19, #24]
	add	x2, x8, x24
	add	x0, sp, #8
	mov	x3, x20
	bl	_do_getnext
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	ldr	x8, [x19, #24]
	add	x1, x8, x24
	mov	x0, x21
	bl	_snmp_binding_encode
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	add	x9, x23, #1
	add	x24, x24, #4
	cmp	x23, x8
	mov	x23, x9
	b.lo	LBB0_4
LBB0_8:
	mov	x0, x21
	mov	x1, x19
	bl	_snmp_fix_encoding
Lloh8:
	adrp	x8, _SNMP_CODE_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SNMP_CODE_OK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
Lloh11:
	adrp	x8, _SNMP_RET_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SNMP_RET_OK@GOTPAGEOFF]
	b	LBB0_18
LBB0_10:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_snmp_debug
	b	LBB0_17
LBB0_11:
	mov	x22, x0
	str	x23, [x20, #8]
	mov	x0, x19
	bl	_snmp_pdu_free
	b	LBB0_19
LBB0_12:
Lloh15:
	adrp	x8, _SNMP_ERR_TOOBIG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SNMP_ERR_TOOBIG@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	xzr, [x20, #8]
	b	LBB0_16
LBB0_13:
Lloh18:
	adrp	x8, _GET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GET@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_TR
	cbz	x0, LBB0_15
; %bb.14:
	str	x22, [sp]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snmp_debug
LBB0_15:
Lloh23:
	adrp	x8, _SNMP_ERR_GENERR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SNMP_ERR_GENERR@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	x23, [x20, #8]
LBB0_16:
	mov	x0, x19
	bl	_snmp_pdu_free
LBB0_17:
Lloh26:
	adrp	x8, _SNMP_RET_ERR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SNMP_RET_ERR@GOTPAGEOFF]
LBB0_18:
	ldr	w22, [x8]
LBB0_19:
	mov	x0, x22
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_RET_IGN,4,2               ; @SNMP_RET_IGN
	.comm	_SNMP_RET_OK,4,2                ; @SNMP_RET_OK
	.comm	_ASN_ERR_EOBUF,4,2              ; @ASN_ERR_EOBUF
	.comm	_SNMP_ERR_TOOBIG,4,2            ; @SNMP_ERR_TOOBIG
	.comm	_SNMP_RET_ERR,4,2               ; @SNMP_RET_ERR
	.comm	_ASN_ERR_OK,4,2                 ; @ASN_ERR_OK
	.comm	_GET,4,2                        ; @GET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getnext: binding encoding: %u"

	.comm	_SNMP_ERR_GENERR,4,2            ; @SNMP_ERR_GENERR
	.comm	_SNMP_CODE_OK,8,3               ; @SNMP_CODE_OK
l_.str.1:                               ; @.str.1
	.asciz	"getnext: failed to encode PDU"

.subsections_via_symbols
