	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_open                      ## -- Begin function snmp_open
	.p2align	4, 0x90
_snmp_open:                             ## @snmp_open
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_snmp_client@GOTPCREL(%rip), %r14
	cmpl	$-1, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	callq	_strerror
	movq	_snmp_client@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_seterr
	movl	$-1, %ebx
	jmp	LBB0_15
LBB0_2:
	movq	%rcx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movl	20(%r14), %edi
	movq	%rdx, %rsi
	movl	$4, %edx
	callq	_strlcpy
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	movl	16(%r14), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strlcpy
LBB0_6:
	movl	4(%r14), %eax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_9
## %bb.7:
	addl	$-128, %eax
	cmpl	$1, %eax
	ja	LBB0_16
## %bb.8:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_open_client_udp
	jmp	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	callq	_open_client_local
LBB0_10:
	movl	$-1, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	(%r14), %edi
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_SNDTIMEO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movl	$16, %r8d
	callq	_setsockopt
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.14:
	movq	_sent_pdus@GOTPCREL(%rip), %rdi
	callq	_LIST_INIT
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_16:
	movq	_snmp_client@GOTPCREL(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_seterr
	movl	$-1, %ebx
	jmp	LBB0_15
LBB0_12:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_seterr
	movl	(%r14), %edi
	callq	_close
	movl	$-1, (%r14)
	movq	8(%r14), %rdi
	movl	$-1, %ebx
	cmpb	$0, (%rdi)
	je	LBB0_15
## %bb.13:
	callq	_remove
LBB0_15:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_snmp_client,24,3               ## @snmp_client
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"bad transport mapping"

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_SNDTIMEO,4,2                ## @SO_SNDTIMEO
	.comm	_sent_pdus,4,2                  ## @sent_pdus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_open                      ; -- Begin function snmp_open
	.p2align	2
_snmp_open:                             ; @snmp_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, _snmp_client@GOTPAGE
Lloh1:
	ldr	x19, [x19, _snmp_client@GOTPAGEOFF]
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x0, _snmp_client@GOTPAGE
Lloh9:
	ldr	x0, [x0, _snmp_client@GOTPAGEOFF]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_seterr
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	mov	x22, x3
	mov	x21, x1
	mov	x20, x0
	cbz	x2, LBB0_7
; %bb.6:
	ldr	w0, [x19, #20]
	mov	x1, x2
	mov	w2, #4
	bl	_strlcpy
LBB0_7:
	cbz	x22, LBB0_9
; %bb.8:
	ldr	w0, [x19, #16]
	mov	x1, x22
	mov	w2, #4
	bl	_strlcpy
LBB0_9:
	ldr	w8, [x19, #4]
	sub	w9, w8, #130
	cmp	w9, #2
	b.lo	LBB0_12
; %bb.10:
	sub	w8, w8, #128
	cmp	w8, #1
	b.hi	LBB0_15
; %bb.11:
	mov	x0, x20
	mov	x1, x21
	bl	_open_client_udp
	cbnz	w0, LBB0_3
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_open_client_local
	cbnz	w0, LBB0_3
LBB0_13:
	stp	xzr, xzr, [sp, #16]
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _SO_SNDTIMEO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SO_SNDTIMEO@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x3, sp, #16
	mov	w4, #16
	bl	_setsockopt
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.14:
Lloh18:
	adrp	x0, _sent_pdus@GOTPAGE
Lloh19:
	ldr	x0, [x0, _sent_pdus@GOTPAGEOFF]
	bl	_LIST_INIT
	mov	w0, #0
	b	LBB0_4
LBB0_15:
Lloh20:
	adrp	x0, _snmp_client@GOTPAGE
Lloh21:
	ldr	x0, [x0, _snmp_client@GOTPAGEOFF]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_16:
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_seterr
	ldr	w0, [x19]
	bl	_close
	mov	w0, #-1
	str	w0, [x19]
	ldr	x8, [x19, #8]
	ldrb	w9, [x8]
	cbz	w9, LBB0_4
; %bb.17:
	mov	x0, x8
	bl	_remove
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_snmp_client,24,3               ; @snmp_client
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"bad transport mapping"

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_SNDTIMEO,4,2                ; @SO_SNDTIMEO
	.comm	_sent_pdus,4,2                  ; @sent_pdus
.subsections_via_symbols
