	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_close                     ## -- Begin function snmp_close
	.p2align	4, 0x90
_snmp_close:                            ## @snmp_close
	.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	_snmp_client@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	cmpl	$-1, %edi
	je	LBB0_3
## %bb.1:
	callq	_close
	movl	$-1, (%r15)
	movq	8(%r15), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_3
## %bb.2:
	callq	_remove
LBB0_3:
	movq	_sent_pdus@GOTPCREL(%rip), %rdi
	callq	_LIST_EMPTY
	testl	%eax, %eax
	je	LBB0_4
LBB0_8:
	movq	24(%r15), %rdi
	callq	_free
	movq	16(%r15), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_4:
	movq	_sent_pdus@GOTPCREL(%rip), %r14
	movq	_entries@GOTPCREL(%rip), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	movq	%rbx, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_LIST_EMPTY
	testl	%eax, %eax
	jne	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_LIST_FIRST
	movq	%rax, %rbx
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	*32(%r15)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_snmp_client,40,3               ## @snmp_client
	.comm	_sent_pdus,4,2                  ## @sent_pdus
	.comm	_entries,4,2                    ## @entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_close                     ; -- Begin function snmp_close
	.p2align	2
_snmp_close:                            ; @snmp_close
	.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
Lloh0:
	adrp	x21, _snmp_client@GOTPAGE
Lloh1:
	ldr	x21, [x21, _snmp_client@GOTPAGEOFF]
	ldr	w0, [x21]
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	bl	_close
	mov	w8, #-1
	str	w8, [x21]
	ldr	x0, [x21, #8]
	ldrb	w8, [x0]
	cbz	w8, LBB0_3
; %bb.2:
	bl	_remove
LBB0_3:
Lloh2:
	adrp	x0, _sent_pdus@GOTPAGE
Lloh3:
	ldr	x0, [x0, _sent_pdus@GOTPAGEOFF]
	bl	_LIST_EMPTY
	cbz	w0, LBB0_5
LBB0_4:
	ldr	x0, [x21, #24]
	bl	_free
	ldr	x0, [x21, #16]
	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
	b	_free
LBB0_5:
Lloh4:
	adrp	x19, _sent_pdus@GOTPAGE
Lloh5:
	ldr	x19, [x19, _sent_pdus@GOTPAGEOFF]
Lloh6:
	adrp	x22, _entries@GOTPAGE
Lloh7:
	ldr	x22, [x22, _entries@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_LIST_REMOVE
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_LIST_EMPTY
	cbnz	w0, LBB0_4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_LIST_FIRST
	mov	x20, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #32]
	blr	x8
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_snmp_client,40,3               ; @snmp_client
	.comm	_sent_pdus,4,2                  ; @sent_pdus
	.comm	_entries,4,2                    ; @entries
.subsections_via_symbols
