	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_fix_encoding              ## -- Begin function snmp_fix_encoding
	.p2align	4, 0x90
_snmp_fix_encoding:                     ## @snmp_fix_encoding
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	movq	88(%rsi), %rsi
	xorl	%edx, %edx
	callq	_asn_commit_header
	movq	_ASN_ERR_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.1:
	movq	80(%r14), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_asn_commit_header
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.3:
	movq	(%r14), %rax
	movq	_SNMP_V3@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_10
## %bb.4:
	movq	64(%r14), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_asn_commit_header
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.5:
	movq	(%rbx), %rax
	subq	64(%r14), %rax
	movq	%rax, 72(%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_snmp_pdu_fix_padd
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.6:
	movq	8(%r14), %rax
	movq	_SNMP_SECMODEL_USM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.7:
	movq	%r14, %rdi
	callq	_snmp_pdu_encrypt
	movq	_SNMP_CODE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.8:
	movq	56(%r14), %rax
	movq	_SNMP_PRIV_NOPRIV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	48(%r14), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_asn_commit_header
	cmpq	(%r15), %rax
	jne	LBB0_2
LBB0_10:
	movq	32(%r14), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_asn_commit_header
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.11:
	movq	(%rbx), %rax
	subq	32(%r14), %rax
	movq	%rax, 40(%r14)
	movq	-40(%rbp), %rax
	subq	%rax, 16(%r14)
	movq	(%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_15
## %bb.12:
	movl	28(%r14), %esi
	movq	%r14, %rdi
	callq	_snmp_pdu_calc_digest
	movl	%eax, %eax
	movq	_SNMP_CODE_OK@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_2
## %bb.13:
	movq	_SNMP_MSG_AUTH_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r14)
	je	LBB0_15
## %bb.14:
	movq	16(%r14), %rdi
	movl	28(%r14), %esi
	movl	$4, %edx
	callq	_memcpy
LBB0_15:
	movq	_SNMP_CODE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_2:
	movq	_SNMP_CODE_FAILED@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN_ERR_OK,8,3                 ## @ASN_ERR_OK
	.comm	_SNMP_CODE_FAILED,4,2           ## @SNMP_CODE_FAILED
	.comm	_SNMP_V3,8,3                    ## @SNMP_V3
	.comm	_SNMP_SECMODEL_USM,8,3          ## @SNMP_SECMODEL_USM
	.comm	_SNMP_CODE_OK,8,3               ## @SNMP_CODE_OK
	.comm	_SNMP_PRIV_NOPRIV,8,3           ## @SNMP_PRIV_NOPRIV
	.comm	_SNMP_MSG_AUTH_FLAG,4,2         ## @SNMP_MSG_AUTH_FLAG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_fix_encoding              ; -- Begin function snmp_fix_encoding
	.p2align	2
_snmp_fix_encoding:                     ; @snmp_fix_encoding
	.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	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	ldr	x1, [x1, #88]
	mov	x2, #0
	bl	_asn_commit_header
Lloh0:
	adrp	x21, _ASN_ERR_OK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ASN_ERR_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.1:
	ldr	x1, [x19, #80]
	mov	x0, x20
	mov	x2, #0
	bl	_asn_commit_header
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.2:
	ldr	x8, [x19]
Lloh2:
	adrp	x22, _SNMP_V3@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SNMP_V3@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
	ldr	x1, [x19, #64]
	mov	x0, x20
	mov	x2, #0
	bl	_asn_commit_header
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.4:
	ldr	x8, [x20]
	ldr	x9, [x19, #64]
	sub	x8, x8, x9
	str	x8, [x19, #72]
	mov	x0, x20
	mov	x1, x19
	bl	_snmp_pdu_fix_padd
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.5:
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _SNMP_SECMODEL_USM@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SNMP_SECMODEL_USM@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.6:
	mov	x0, x19
	bl	_snmp_pdu_encrypt
Lloh7:
	adrp	x8, _SNMP_CODE_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SNMP_CODE_OK@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.7:
	ldr	x8, [x19, #56]
Lloh10:
	adrp	x9, _SNMP_PRIV_NOPRIV@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SNMP_PRIV_NOPRIV@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
	ldr	x1, [x19, #48]
	mov	x0, x20
	mov	x2, #0
	bl	_asn_commit_header
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_15
LBB0_9:
	ldr	x1, [x19, #32]
	add	x2, sp, #8
	mov	x0, x20
	bl	_asn_commit_header
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.10:
	ldr	x8, [x20]
	ldr	x9, [x19, #32]
	sub	x8, x8, x9
	str	x8, [x19, #40]
	ldr	x8, [sp, #8]
	ldr	x9, [x19, #16]
	sub	x8, x9, x8
	str	x8, [x19, #16]
	ldr	x8, [x19]
	ldr	x9, [x22]
Lloh13:
	adrp	x20, _SNMP_CODE_OK@GOTPAGE
Lloh14:
	ldr	x20, [x20, _SNMP_CODE_OK@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.11:
	ldr	w1, [x19, #28]
	mov	x0, x19
	bl	_snmp_pdu_calc_digest
	ldr	x8, [x20]
	cmp	x8, w0, uxtw
	b.ne	LBB0_15
; %bb.12:
	ldr	w8, [x19, #24]
Lloh15:
	adrp	x9, _SNMP_MSG_AUTH_FLAG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SNMP_MSG_AUTH_FLAG@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #28]
	mov	w2, #4
	bl	_memcpy
LBB0_14:
	ldr	w0, [x20]
	b	LBB0_16
LBB0_15:
Lloh18:
	adrp	x8, _SNMP_CODE_FAILED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SNMP_CODE_FAILED@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
LBB0_16:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN_ERR_OK,8,3                 ; @ASN_ERR_OK
	.comm	_SNMP_CODE_FAILED,4,2           ; @SNMP_CODE_FAILED
	.comm	_SNMP_V3,8,3                    ; @SNMP_V3
	.comm	_SNMP_SECMODEL_USM,8,3          ; @SNMP_SECMODEL_USM
	.comm	_SNMP_CODE_OK,8,3               ; @SNMP_CODE_OK
	.comm	_SNMP_PRIV_NOPRIV,8,3           ; @SNMP_PRIV_NOPRIV
	.comm	_SNMP_MSG_AUTH_FLAG,4,2         ; @SNMP_MSG_AUTH_FLAG
.subsections_via_symbols
