	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snmp_send_packet
_snmp_send_packet:                      ## @snmp_send_packet
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_snmp_client@GOTPCREL(%rip), %r15
	movl	16(%r15), %esi
	movl	$1, %edi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_snmp_next_reqid
	movl	%eax, (%r14)
	movq	%rbx, -40(%rbp)
	movl	16(%r15), %eax
	movl	%eax, -32(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_snmp_pdu_encode
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movq	_snmp_client@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_seterr
	movq	%rbx, %rdi
	callq	_free
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movq	_snmp_client@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_seterr
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_4:
	cmpq	$0, 8(%r15)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_snmp_pdu_dump
LBB0_6:
	movl	(%r15), %edi
	movq	-40(%rbp), %rdx
	subq	%rbx, %rdx
	sarq	$2, %rdx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_send
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.7:
	movq	%rbx, %rdi
	callq	_free
	movl	(%r14), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_snmp_client,24,3               ## @snmp_client
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_snmp_send_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snmp_send_packet
_snmp_send_packet:                      ; @snmp_send_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
Lloh0:
	adrp	x21, _snmp_client@GOTPAGE
Lloh1:
	ldr	x21, [x21, _snmp_client@GOTPAGEOFF]
	ldr	w1, [x21, #16]
	mov	w0, #1
	bl	_calloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	bl	_snmp_next_reqid
	str	w0, [x20]
	str	x19, [sp]
	ldr	w8, [x21, #16]
	str	w8, [sp, #8]
	mov	x1, sp
	mov	x0, x20
	bl	_snmp_pdu_encode
	cbz	x0, LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh5:
	adrp	x0, _snmp_client@GOTPAGE
Lloh6:
	ldr	x0, [x0, _snmp_client@GOTPAGEOFF]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_seterr
	mov	x0, x19
	bl	_free
	mov	w0, #-1
	b	LBB0_8
LBB0_3:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh12:
	adrp	x0, _snmp_client@GOTPAGE
Lloh13:
	ldr	x0, [x0, _snmp_client@GOTPAGEOFF]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_seterr
	mov	w0, #-1
	b	LBB0_8
LBB0_4:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_snmp_pdu_dump
LBB0_6:
	ldr	w0, [x21]
	ldr	x8, [sp]
	sub	x8, x8, x19
	asr	x2, x8, #2
	mov	x1, x19
	mov	w3, #0
	bl	_send
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.7:
	mov	x0, x19
	bl	_free
	ldr	w0, [x20]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_snmp_client,24,3               ; @snmp_client
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_snmp_send_packet
.subsections_via_symbols
