	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_make_errresp              ## -- Begin function snmp_make_errresp
	.p2align	4, 0x90
_snmp_make_errresp:                     ## @snmp_make_errresp
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	-120(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_snmp_pdu_create_response
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_snmp_pdu_decode_header
	movq	_SNMP_CODE_OK@GOTPCREL(%rip), %r13
	movq	_SNMP_RET_IGN@GOTPCREL(%rip), %rbx
	cmpl	(%r13), %eax
	jne	LBB0_24
## %bb.1:
	movq	(%r12), %rax
	movq	_SNMP_V3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movq	-64(%rbp), %rax
	movq	_SNMP_PRIV_NOPRIV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	leaq	-112(%rbp), %rdx
	leaq	-52(%rbp), %rsi
	movq	%r15, %rdi
	callq	_asn_get_header
	movq	_ASN_ERR_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.4:
	movl	-52(%rbp), %eax
	movq	_ASN_TYPE_OCTETSTRING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_18
LBB0_5:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_asn_get_sequence
	movq	_ASN_ERR_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.6:
	movq	_SNMP_ENGINE_ID_SIZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_asn_get_octetstring
	movq	_ASN_ERR_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.7:
	movq	-48(%rbp), %rax
	movq	%rax, -104(%rbp)
	movq	_SNMP_CONTEXT_NAME_SIZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	-96(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_asn_get_octetstring
	movq	_ASN_ERR_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.8:
	movq	-96(%rbp), %rax
	movq	-48(%rbp), %rcx
	movb	$0, (%rax,%rcx)
LBB0_9:
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_asn_get_header
	movq	_ASN_ERR_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.10:
	movq	_ASN_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-52(%rbp), %eax
	movq	_ASN_TYPE_CONSTRUCTED@GOTPCREL(%rip), %rcx
	movq	_ASN_CLASS_CONTEXT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	cmpl	%edx, %eax
	jne	LBB0_20
## %bb.11:
	leaq	-120(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_snmp_parse_pdus_hdr
	movl	%eax, %edi
	callq	_ASN_ERR_STOPPED
	testq	%rax, %rax
	jne	LBB0_24
## %bb.12:
	movq	-48(%rbp), %rax
	cmpq	%rax, (%r15)
	jb	LBB0_24
## %bb.13:
	movq	%rax, (%r15)
	movl	40(%r12), %eax
	movl	%eax, -80(%rbp)
	movl	36(%r12), %eax
	movl	%eax, -84(%rbp)
	movq	_SNMP_PDU_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	leaq	-120(%rbp), %rsi
	movq	%r14, %rdi
	callq	_snmp_pdu_encode_header
	cmpl	(%r13), %eax
	jne	LBB0_24
## %bb.14:
	movq	(%r15), %rdx
	cmpq	(%r14), %rdx
	ja	LBB0_24
## %bb.15:
	movq	8(%r14), %rdi
	movl	16(%r15), %esi
	callq	_memcpy
	movq	(%r15), %rax
	subq	%rax, (%r14)
	movq	(%r15), %rax
	addq	%rax, 8(%r14)
	leaq	-120(%rbp), %rsi
	movq	%r14, %rdi
	callq	_snmp_fix_encoding
	cmpl	(%r13), %eax
	jne	LBB0_25
## %bb.16:
	movq	_SNMP_RET_OK@GOTPCREL(%rip), %rbx
	jmp	LBB0_24
LBB0_17:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_23
LBB0_18:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_23
LBB0_19:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_23
LBB0_20:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_23
LBB0_21:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_23
LBB0_22:
	leaq	L_.str.3(%rip), %rdi
LBB0_23:
	callq	_snmp_error
LBB0_24:
	movl	(%rbx), %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_SNMP_RET_IGN@GOTPCREL(%rip), %rbx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_CODE_OK,4,2               ## @SNMP_CODE_OK
	.comm	_SNMP_RET_IGN,4,2               ## @SNMP_RET_IGN
	.comm	_SNMP_V3,8,3                    ## @SNMP_V3
	.comm	_SNMP_PRIV_NOPRIV,8,3           ## @SNMP_PRIV_NOPRIV
	.comm	_ASN_ERR_OK,8,3                 ## @ASN_ERR_OK
	.comm	_ASN_TYPE_OCTETSTRING,4,2       ## @ASN_TYPE_OCTETSTRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot decode encrypted pdu"

L_.str.1:                               ## @.str.1
	.asciz	"cannot decode scoped pdu header"

	.comm	_SNMP_ENGINE_ID_SIZ,8,3         ## @SNMP_ENGINE_ID_SIZ
L_.str.2:                               ## @.str.2
	.asciz	"cannot decode msg context engine"

	.comm	_SNMP_CONTEXT_NAME_SIZ,8,3      ## @SNMP_CONTEXT_NAME_SIZ
L_.str.3:                               ## @.str.3
	.asciz	"cannot decode msg context name"

L_.str.4:                               ## @.str.4
	.asciz	"cannot get pdu header"

	.comm	_ASN_TYPE_MASK,4,2              ## @ASN_TYPE_MASK
	.comm	_ASN_TYPE_CONSTRUCTED,4,2       ## @ASN_TYPE_CONSTRUCTED
	.comm	_ASN_CLASS_CONTEXT,4,2          ## @ASN_CLASS_CONTEXT
L_.str.5:                               ## @.str.5
	.asciz	"bad pdu header tag"

	.comm	_SNMP_PDU_RESPONSE,4,2          ## @SNMP_PDU_RESPONSE
	.comm	_SNMP_RET_OK,4,2                ## @SNMP_RET_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_make_errresp              ; -- Begin function snmp_make_errresp
	.p2align	2
_snmp_make_errresp:                     ; @snmp_make_errresp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x1, sp
	bl	_snmp_pdu_create_response
	mov	x1, sp
	mov	x0, x20
	bl	_snmp_pdu_decode_header
Lloh0:
	adrp	x22, _SNMP_CODE_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SNMP_CODE_OK@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_23
; %bb.1:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _SNMP_V3@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SNMP_V3@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	ldr	x8, [sp, #56]
Lloh5:
	adrp	x9, _SNMP_PRIV_NOPRIV@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SNMP_PRIV_NOPRIV@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
	mov	x8, sp
	add	x2, x8, #8
	sub	x1, x29, #52
	mov	x0, x20
	bl	_asn_get_header
Lloh8:
	adrp	x8, _ASN_ERR_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ASN_ERR_OK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.4:
	ldur	w8, [x29, #-52]
Lloh11:
	adrp	x9, _ASN_TYPE_OCTETSTRING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ASN_TYPE_OCTETSTRING@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
LBB0_5:
	add	x1, sp, #64
	mov	x0, x20
	bl	_asn_get_sequence
Lloh14:
	adrp	x23, _ASN_ERR_OK@GOTPAGE
Lloh15:
	ldr	x23, [x23, _ASN_ERR_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.6:
Lloh16:
	adrp	x8, _SNMP_ENGINE_ID_SIZ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SNMP_ENGINE_ID_SIZ@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [sp, #64]
	ldr	x1, [sp, #48]
	add	x2, sp, #64
	mov	x0, x20
	bl	_asn_get_octetstring
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.7:
	ldr	x8, [sp, #64]
	str	x8, [sp, #16]
Lloh19:
	adrp	x8, _SNMP_CONTEXT_NAME_SIZ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SNMP_CONTEXT_NAME_SIZ@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [sp, #64]
	ldr	x1, [sp, #24]
	add	x2, sp, #64
	mov	x0, x20
	bl	_asn_get_octetstring
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.8:
	ldr	x8, [sp, #24]
	ldr	x9, [sp, #64]
	strb	wzr, [x8, x9]
LBB0_9:
	sub	x1, x29, #52
	add	x2, sp, #64
	mov	x0, x20
	bl	_asn_get_header
Lloh22:
	adrp	x8, _ASN_ERR_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ASN_ERR_OK@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.10:
	ldur	w8, [x29, #-52]
Lloh25:
	adrp	x9, _ASN_TYPE_MASK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ASN_TYPE_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh28:
	adrp	x9, _ASN_TYPE_CONSTRUCTED@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ASN_TYPE_CONSTRUCTED@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	adrp	x10, _ASN_CLASS_CONTEXT@GOTPAGE
Lloh32:
	ldr	x10, [x10, _ASN_CLASS_CONTEXT@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.11:
	mov	x1, sp
	add	x2, sp, #64
	mov	x0, x20
	bl	_snmp_parse_pdus_hdr
	bl	_ASN_ERR_STOPPED
	cbnz	x0, LBB0_23
; %bb.12:
	ldr	x9, [x20]
	ldr	x8, [sp, #64]
	cmp	x9, x8
	b.lo	LBB0_23
; %bb.13:
	str	x8, [x20]
	ldur	d0, [x21, #36]
	stur	d0, [sp, #36]
Lloh34:
	adrp	x8, _SNMP_PDU_RESPONSE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SNMP_PDU_RESPONSE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	mov	x1, sp
	mov	x0, x19
	bl	_snmp_pdu_encode_header
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_23
; %bb.14:
	ldr	x2, [x20]
	ldr	x8, [x19]
Lloh37:
	adrp	x21, _SNMP_RET_IGN@GOTPAGE
Lloh38:
	ldr	x21, [x21, _SNMP_RET_IGN@GOTPAGEOFF]
	cmp	x2, x8
	b.hi	LBB0_24
; %bb.15:
	ldr	x0, [x19, #8]
	ldr	w1, [x20, #16]
	bl	_memcpy
	ldr	x8, [x20]
	ldp	x9, x10, [x19]
	sub	x8, x9, x8
	str	x8, [x19]
	ldr	x8, [x20]
	add	x8, x10, x8
	str	x8, [x19, #8]
	mov	x1, sp
	mov	x0, x19
	bl	_snmp_fix_encoding
	ldr	w8, [x22]
Lloh39:
	adrp	x9, _SNMP_RET_OK@GOTPAGE
Lloh40:
	ldr	x9, [x9, _SNMP_RET_OK@GOTPAGEOFF]
	cmp	w0, w8
	csel	x21, x9, x21, eq
	b	LBB0_24
LBB0_16:
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_22
LBB0_17:
Lloh43:
	adrp	x0, l_.str@PAGE
Lloh44:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_22
LBB0_18:
Lloh45:
	adrp	x0, l_.str.1@PAGE
Lloh46:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_22
LBB0_19:
Lloh47:
	adrp	x0, l_.str.5@PAGE
Lloh48:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_22
LBB0_20:
Lloh49:
	adrp	x0, l_.str.2@PAGE
Lloh50:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_22
LBB0_21:
Lloh51:
	adrp	x0, l_.str.3@PAGE
Lloh52:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_22:
	bl	_snmp_error
LBB0_23:
Lloh53:
	adrp	x21, _SNMP_RET_IGN@GOTPAGE
Lloh54:
	ldr	x21, [x21, _SNMP_RET_IGN@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_CODE_OK,4,2               ; @SNMP_CODE_OK
	.comm	_SNMP_RET_IGN,4,2               ; @SNMP_RET_IGN
	.comm	_SNMP_V3,8,3                    ; @SNMP_V3
	.comm	_SNMP_PRIV_NOPRIV,8,3           ; @SNMP_PRIV_NOPRIV
	.comm	_ASN_ERR_OK,8,3                 ; @ASN_ERR_OK
	.comm	_ASN_TYPE_OCTETSTRING,4,2       ; @ASN_TYPE_OCTETSTRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot decode encrypted pdu"

l_.str.1:                               ; @.str.1
	.asciz	"cannot decode scoped pdu header"

	.comm	_SNMP_ENGINE_ID_SIZ,8,3         ; @SNMP_ENGINE_ID_SIZ
l_.str.2:                               ; @.str.2
	.asciz	"cannot decode msg context engine"

	.comm	_SNMP_CONTEXT_NAME_SIZ,8,3      ; @SNMP_CONTEXT_NAME_SIZ
l_.str.3:                               ; @.str.3
	.asciz	"cannot decode msg context name"

l_.str.4:                               ; @.str.4
	.asciz	"cannot get pdu header"

	.comm	_ASN_TYPE_MASK,4,2              ; @ASN_TYPE_MASK
	.comm	_ASN_TYPE_CONSTRUCTED,4,2       ; @ASN_TYPE_CONSTRUCTED
	.comm	_ASN_CLASS_CONTEXT,4,2          ; @ASN_CLASS_CONTEXT
l_.str.5:                               ; @.str.5
	.asciz	"bad pdu header tag"

	.comm	_SNMP_PDU_RESPONSE,4,2          ; @SNMP_PDU_RESPONSE
	.comm	_SNMP_RET_OK,4,2                ; @SNMP_RET_OK
.subsections_via_symbols
