	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snmp_create_v3_trap
_snmp_create_v3_trap:                   ## @snmp_create_v3_trap
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$104, %edx
	callq	_memset
	movq	_SNMP_V3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movq	_SNMP_PDU_TRAP2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rbx)
	movq	_trap_reqid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_reqid_next
	movl	%eax, 88(%rbx)
	movq	$0, 80(%rbx)
	movq	_SNMP_ERR_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	64(%rbx), %rax
	movq	_oid_sysUpTime@GOTPCREL(%rip), %rcx
	movups	(%rcx), %xmm0
	movups	%xmm0, 24(%rax)
	movq	64(%rbx), %rax
	movq	32(%rax), %rcx
	movslq	24(%rax), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 24(%rax)
	movq	$0, (%rcx,%rdx,8)
	movq	_SNMP_SYNTAX_TIMETICKS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	xorl	%eax, %eax
	callq	_get_ticks
	movq	_start_tick@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	64(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	_oid_snmpTrapOID@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 64(%rcx)
	movq	64(%rbx), %rax
	movq	72(%rax), %rcx
	movslq	64(%rax), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 64(%rax)
	movq	$0, (%rcx,%rdx,8)
	movq	_SNMP_SYNTAX_OID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%rax)
	movl	(%r15), %ecx
	movl	%ecx, 40(%rax)
	movl	$2, (%rbx)
	xorl	%eax, %eax
	callq	_update_snmpd_engine_time
	movl	44(%rbx), %edi
	movq	_snmpd_engine@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	4(%r15), %esi
	callq	_memcpy
	movl	(%r15), %eax
	movl	%eax, 40(%rbx)
	movl	16(%r15), %eax
	movl	%eax, 56(%rbx)
	movl	12(%r15), %eax
	movl	%eax, 52(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 48(%rbx)
	movl	36(%rbx), %edi
	movl	16(%r14), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
	movl	(%r15), %edx
	movl	%edx, 16(%rbx)
	movl	60(%rbx), %edi
	movl	4(%r15), %esi
	callq	_memcpy
	movq	(%r14), %rax
	movq	_SNMP_SECMODEL_USM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	8(%r14), %rax
	movq	_SNMP_noAuthNoPriv@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	44(%rbx), %edi
	movl	36(%rbx), %edx
	movl	40(%rbx), %esi
	callq	_usm_find_user
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r14
	movl	12(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 28(%rbx)
	movl	24(%rbx), %edi
	movl	4(%r14), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	20(%rbx), %edi
	movl	(%r14), %esi
	movl	$4, %edx
	callq	_memcpy
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snmp_pdu_init_secparams        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_V3,4,2                    ## @SNMP_V3
	.comm	_SNMP_PDU_TRAP2,4,2             ## @SNMP_PDU_TRAP2
	.comm	_trap_reqid,4,2                 ## @trap_reqid
	.comm	_SNMP_ERR_NOERROR,4,2           ## @SNMP_ERR_NOERROR
	.comm	_oid_sysUpTime,16,3             ## @oid_sysUpTime
	.comm	_SNMP_SYNTAX_TIMETICKS,4,2      ## @SNMP_SYNTAX_TIMETICKS
	.comm	_start_tick,8,3                 ## @start_tick
	.comm	_oid_snmpTrapOID,16,3           ## @oid_snmpTrapOID
	.comm	_SNMP_SYNTAX_OID,4,2            ## @SNMP_SYNTAX_OID
	.comm	_snmpd_engine,20,2              ## @snmpd_engine
	.comm	_SNMP_SECMODEL_USM,8,3          ## @SNMP_SECMODEL_USM
	.comm	_SNMP_noAuthNoPriv,8,3          ## @SNMP_noAuthNoPriv
	.no_dead_strip	_snmp_create_v3_trap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snmp_create_v3_trap
_snmp_create_v3_trap:                   ; @snmp_create_v3_trap
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #104
	bl	_memset
Lloh0:
	adrp	x8, _SNMP_V3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNMP_V3@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SNMP_PDU_TRAP2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNMP_PDU_TRAP2@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #92]
Lloh6:
	adrp	x8, _trap_reqid@GOTPAGE
Lloh7:
	ldr	x8, [x8, _trap_reqid@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_reqid_next
	str	w0, [x19, #88]
	str	xzr, [x19, #80]
Lloh9:
	adrp	x8, _SNMP_ERR_NOERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SNMP_ERR_NOERROR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #72]
	ldr	x8, [x19, #64]
Lloh12:
	adrp	x9, _oid_sysUpTime@GOTPAGE
Lloh13:
	ldr	x9, [x9, _oid_sysUpTime@GOTPAGEOFF]
Lloh14:
	ldr	q0, [x9]
	stur	q0, [x8, #24]
	ldr	x8, [x19, #64]
	ldr	x9, [x8, #32]
	ldrsw	x10, [x8, #24]
	add	w11, w10, #1
	str	w11, [x8, #24]
	str	xzr, [x9, x10, lsl #3]
Lloh15:
	adrp	x9, _SNMP_SYNTAX_TIMETICKS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SNMP_SYNTAX_TIMETICKS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	str	w9, [x8, #16]
	bl	_get_ticks
Lloh18:
	adrp	x8, _start_tick@GOTPAGE
Lloh19:
	ldr	x8, [x8, _start_tick@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	sub	x8, x0, x8
	ldr	x9, [x19, #64]
Lloh21:
	adrp	x10, _oid_snmpTrapOID@GOTPAGE
Lloh22:
	ldr	x10, [x10, _oid_snmpTrapOID@GOTPAGEOFF]
	str	x8, [x9, #8]
Lloh23:
	ldr	q0, [x10]
	str	q0, [x9, #64]
	ldr	x8, [x19, #64]
	ldr	x9, [x8, #72]
	ldrsw	x10, [x8, #64]
	add	w11, w10, #1
	str	w11, [x8, #64]
	str	xzr, [x9, x10, lsl #3]
Lloh24:
	adrp	x9, _SNMP_SYNTAX_OID@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SNMP_SYNTAX_OID@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	str	w9, [x8, #56]
	ldr	w9, [x21]
	str	w9, [x8, #40]
	mov	w8, #2
	str	w8, [x19]
	bl	_update_snmpd_engine_time
	ldr	w0, [x19, #44]
Lloh27:
	adrp	x21, _snmpd_engine@GOTPAGE
Lloh28:
	ldr	x21, [x21, _snmpd_engine@GOTPAGEOFF]
	ldp	w2, w1, [x21]
	bl	_memcpy
	ldr	w8, [x21]
	str	w8, [x19, #40]
	ldr	w8, [x21, #16]
	str	w8, [x19, #56]
	ldr	d0, [x21, #8]
	str	d0, [x19, #48]
	ldr	w0, [x19, #36]
	ldr	w1, [x20, #16]
	mov	w2, #4
	bl	_strlcpy
	ldr	x8, [x20]
	str	x8, [x19, #8]
	ldp	w2, w1, [x21]
	str	w2, [x19, #16]
	ldr	w0, [x19, #60]
	bl	_memcpy
	ldr	x8, [x20]
Lloh29:
	adrp	x9, _SNMP_SECMODEL_USM@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SNMP_SECMODEL_USM@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
Lloh32:
	adrp	x9, _SNMP_noAuthNoPriv@GOTPAGE
Lloh33:
	ldr	x9, [x9, _SNMP_noAuthNoPriv@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	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
	ret
LBB0_3:
	ldp	w1, w0, [x19, #40]
	ldr	w2, [x19, #36]
	bl	_usm_find_user
	cbz	x0, LBB0_5
; %bb.4:
	mov	x20, x0
	ldr	d0, [x0, #8]
	stur	d0, [x19, #28]
	ldr	w0, [x19, #24]
	ldr	w1, [x20, #4]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #20]
	ldr	w1, [x20]
	mov	w2, #4
	bl	_memcpy
LBB0_5:
	mov	x0, x19
	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	_snmp_pdu_init_secparams
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_V3,4,2                    ; @SNMP_V3
	.comm	_SNMP_PDU_TRAP2,4,2             ; @SNMP_PDU_TRAP2
	.comm	_trap_reqid,4,2                 ; @trap_reqid
	.comm	_SNMP_ERR_NOERROR,4,2           ; @SNMP_ERR_NOERROR
	.comm	_oid_sysUpTime,16,3             ; @oid_sysUpTime
	.comm	_SNMP_SYNTAX_TIMETICKS,4,2      ; @SNMP_SYNTAX_TIMETICKS
	.comm	_start_tick,8,3                 ; @start_tick
	.comm	_oid_snmpTrapOID,16,3           ; @oid_snmpTrapOID
	.comm	_SNMP_SYNTAX_OID,4,2            ; @SNMP_SYNTAX_OID
	.comm	_snmpd_engine,20,2              ; @snmpd_engine
	.comm	_SNMP_SECMODEL_USM,8,3          ; @SNMP_SECMODEL_USM
	.comm	_SNMP_noAuthNoPriv,8,3          ; @SNMP_noAuthNoPriv
	.no_dead_strip	_snmp_create_v3_trap
.subsections_via_symbols
