	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snmptool_set
_snmptool_set:                          ## @snmptool_set
	.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	%rdi, %rbx
	movq	_SNMP_PDU_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	callq	_snmp_pdu_create
	movq	_snmpset_verify_vbind@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_snmpset_add_vbind@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_SNMP_MAX_BINDINGS@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_snmp_pdu_add_bindings
	testq	%rax, %rax
	jle	LBB0_11
## %bb.1:
	leaq	-72(%rbp), %r14
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_snmp_dialog
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_snmp_pdu_check
	movq	%rbx, %rdi
	testq	%rax, %rax
	jg	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rsi
	callq	_snmp_output_err_resp
	movq	%rbx, %rdi
	callq	_ISSET_RETRY
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax
	movslq	-56(%rbp), %rcx
	leaq	(%rax,%rcx,4), %rsi
	addq	$-4, %rsi
	movl	-52(%rbp), %edx
	movq	%rbx, %rdi
	callq	_snmp_object_seterror
	testq	%rax, %rax
	jle	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movq	%r14, %rdi
	callq	_snmp_pdu_free
	movq	_SNMP_PDU_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snmp_pdu_create
	movq	_snmpset_verify_vbind@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_snmp_pdu_add_bindings
	testq	%rax, %rax
	jg	LBB0_2
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	jmp	LBB0_11
LBB0_5:
	callq	_GET_OUTPUT
	movq	_OUTPUT_QUIET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snmp_output_resp
LBB0_7:
	leaq	-56(%rbp), %rdi
	callq	_snmp_pdu_free
LBB0_11:
	leaq	-72(%rbp), %rdi
	callq	_snmp_pdu_free
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_PDU_SET,4,2               ## @SNMP_PDU_SET
	.comm	_snmpset_verify_vbind,4,2       ## @snmpset_verify_vbind
	.comm	_snmpset_add_vbind,4,2          ## @snmpset_add_vbind
	.comm	_SNMP_MAX_BINDINGS,4,2          ## @SNMP_MAX_BINDINGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Snmp dialog"

	.comm	_OUTPUT_QUIET,8,3               ## @OUTPUT_QUIET
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Retrying...\n"

	.no_dead_strip	_snmptool_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snmptool_set
_snmptool_set:                          ; @snmptool_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
Lloh0:
	adrp	x21, _SNMP_PDU_SET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SNMP_PDU_SET@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x0, sp, #16
	bl	_snmp_pdu_create
Lloh2:
	adrp	x22, _snmpset_verify_vbind@GOTPAGE
Lloh3:
	ldr	x22, [x22, _snmpset_verify_vbind@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x23, _snmpset_add_vbind@GOTPAGE
Lloh5:
	ldr	x23, [x23, _snmpset_add_vbind@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh6:
	adrp	x24, _SNMP_MAX_BINDINGS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SNMP_MAX_BINDINGS@GOTPAGEOFF]
	ldr	w4, [x24]
	add	x3, sp, #16
	mov	x0, x19
	bl	_snmp_pdu_add_bindings
	cmp	x0, #1
	b.lt	LBB0_11
; %bb.1:
Lloh8:
	adrp	x25, _stderr@GOTPAGE
Lloh9:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
Lloh10:
	adrp	x20, l_.str.1@PAGE
Lloh11:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	mov	x1, sp
	bl	_snmp_dialog
	cbnz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #16
	mov	x1, sp
	bl	_snmp_pdu_check
	cmp	x0, #1
	b.ge	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, sp
	mov	x0, x19
	bl	_snmp_output_err_resp
	mov	x0, x19
	bl	_ISSET_RETRY
	cbz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	ldp	w9, w2, [sp]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x8, x8, x9, lsl #2
	sub	x1, x8, #4
	mov	x0, x19
	bl	_snmp_object_seterror
	cmp	x0, #0
	b.le	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	mov	x1, x20
	bl	_fprintf
	add	x0, sp, #16
	bl	_snmp_pdu_free
	ldr	w1, [x21]
	add	x0, sp, #16
	bl	_snmp_pdu_create
	ldr	w1, [x22]
	ldr	w2, [x23]
	ldr	w4, [x24]
	add	x3, sp, #16
	mov	x0, x19
	bl	_snmp_pdu_add_bindings
	cmp	x0, #0
	b.gt	LBB0_2
	b	LBB0_11
LBB0_7:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_GET_OUTPUT
Lloh14:
	adrp	x8, _OUTPUT_QUIET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OUTPUT_QUIET@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.9:
	mov	x1, sp
	mov	x0, x19
	mov	x2, #0
	bl	_snmp_output_resp
LBB0_10:
	mov	x0, sp
	bl	_snmp_pdu_free
LBB0_11:
	add	x0, sp, #16
	bl	_snmp_pdu_free
	mov	w0, #0
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_PDU_SET,4,2               ; @SNMP_PDU_SET
	.comm	_snmpset_verify_vbind,4,2       ; @snmpset_verify_vbind
	.comm	_snmpset_add_vbind,4,2          ; @snmpset_add_vbind
	.comm	_SNMP_MAX_BINDINGS,4,2          ; @SNMP_MAX_BINDINGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Snmp dialog"

	.comm	_OUTPUT_QUIET,8,3               ; @OUTPUT_QUIET
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Retrying...\n"

	.no_dead_strip	_snmptool_set
.subsections_via_symbols
