	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp_open_port
_udp_open_port:                         ## @udp_open_port
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$65536, %esi                    ## imm = 0x10000
	jl	LBB0_2
## %bb.1:
	movq	_SNMP_ERR_NO_CREATION@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_9
LBB0_2:
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	$80, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	leaq	8(%rbx), %r15
	movl	$5, 8(%rbx)
	movq	(%r13), %rax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movdqu	8(%r13), %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	movq	%xmm0, 4(%rcx)
	movl	24(%r13), %edx
	movl	%edx, 12(%rcx)
	movl	%r12d, 16(%rcx)
	movq	72(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	8(%r13), %rax
	movq	72(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	16(%r13), %rax
	movq	72(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	24(%r13), %rax
	movq	72(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movl	%r12d, (%rbx)
	movabsq	$21474836479, %rax              ## imm = 0x4FFFFFFFF
	movq	%rax, 24(%rbx)
	movq	%rbx, %rax
	addq	$64, %rax
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 40(%rbx)
	movq	$0, 56(%rbx)
	movq	%rax, 32(%rbx)
	movq	_my_trans@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_trans_insert_port
	movq	_community@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_COMM_INITIALIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	_SNMP_ERR_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_6
LBB0_3:
	movq	_SNMP_ERR_GENERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	callq	_udp_init_port
	movl	%eax, %r12d
	movq	_SNMP_ERR_NOERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_8
LBB0_6:
	movq	%rbx, (%r14)
	jmp	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	callq	_udp_close_port
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_ERR_NO_CREATION,4,2       ## @SNMP_ERR_NO_CREATION
	.comm	_SNMP_ERR_GENERR,4,2            ## @SNMP_ERR_GENERR
	.comm	_my_trans,4,2                   ## @my_trans
	.comm	_community,8,3                  ## @community
	.comm	_COMM_INITIALIZE,8,3            ## @COMM_INITIALIZE
	.comm	_SNMP_ERR_NOERROR,4,2           ## @SNMP_ERR_NOERROR
	.no_dead_strip	_udp_open_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function udp_open_port
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_udp_open_port:                         ; @udp_open_port
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w1, #16, lsl #12                ; =65536
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SNMP_ERR_NO_CREATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNMP_ERR_NO_CREATION@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	b	LBB0_9
LBB0_2:
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	mov	w0, #80
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	mov	w8, #5
	mov	x21, x20
	str	w8, [x21, #8]!
	ldr	x8, [x20, #16]
	ldp	x9, x10, [x23]
	stp	w9, w10, [x8]
	ldp	x10, x11, [x23, #16]
	stp	w10, w11, [x8, #8]
	str	w22, [x8, #16]
	ldr	x8, [x20, #72]
	str	x9, [x8]
	ldr	x8, [x23, #8]
	ldr	x9, [x20, #72]
	str	x8, [x9, #8]
	ldr	x8, [x23, #16]
	ldr	x9, [x20, #72]
	str	x8, [x9, #16]
	ldr	x8, [x23, #24]
	ldr	x9, [x20, #72]
	str	x8, [x9, #24]
	str	w22, [x20]
	add	x8, x20, #64
	stp	xzr, xzr, [x20, #48]
	stp	x8, xzr, [x20, #32]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20, #24]
Lloh5:
	adrp	x8, _my_trans@GOTPAGE
Lloh6:
	ldr	x8, [x8, _my_trans@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_trans_insert_port
Lloh8:
	adrp	x8, _community@GOTPAGE
Lloh9:
	ldr	x8, [x8, _community@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _COMM_INITIALIZE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _COMM_INITIALIZE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh14:
	adrp	x8, _SNMP_ERR_NOERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SNMP_ERR_NOERROR@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	b	LBB0_7
LBB0_5:
Lloh17:
	adrp	x8, _SNMP_ERR_GENERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SNMP_ERR_GENERR@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
	b	LBB0_9
LBB0_6:
	mov	x0, x21
	bl	_udp_init_port
	mov	x22, x0
Lloh20:
	adrp	x8, _SNMP_ERR_NOERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SNMP_ERR_NOERROR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
LBB0_7:
	str	x20, [x19]
	b	LBB0_9
LBB0_8:
	mov	x0, x21
	bl	_udp_close_port
LBB0_9:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_ERR_NO_CREATION,4,2       ; @SNMP_ERR_NO_CREATION
	.comm	_SNMP_ERR_GENERR,4,2            ; @SNMP_ERR_GENERR
	.comm	_my_trans,4,2                   ; @my_trans
	.comm	_community,8,3                  ; @community
	.comm	_COMM_INITIALIZE,8,3            ; @COMM_INITIALIZE
	.comm	_SNMP_ERR_NOERROR,4,2           ; @SNMP_ERR_NOERROR
	.no_dead_strip	_udp_open_port
.subsections_via_symbols
