	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_pdu_decode_scoped         ## -- Begin function snmp_pdu_decode_scoped
	.p2align	4, 0x90
_snmp_pdu_decode_scoped:                ## @snmp_pdu_decode_scoped
	.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	$24, %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, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	_SNMP_V3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_asn_get_sequence
	movq	_ASN_ERR_OK@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_13
## %bb.2:
	movq	_SNMP_ENGINE_ID_SIZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	28(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_asn_get_octetstring
	cmpq	(%r13), %rax
	jne	LBB0_15
## %bb.3:
	movq	-48(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	_SNMP_CONTEXT_NAME_SIZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	16(%rbx), %r12
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_asn_get_octetstring
	cmpq	(%r13), %rax
	jne	LBB0_16
## %bb.4:
	movq	(%r12), %rax
	movq	-48(%rbp), %rcx
	movb	$0, (%rax,%rcx)
LBB0_5:
	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_12
## %bb.6:
	movl	-52(%rbp), %eax
	movq	_ASN_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_ASN_TYPE_CONSTRUCTED@GOTPCREL(%rip), %rdx
	movq	_ASN_CLASS_CONTEXT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rdx), %edi
	cmpl	%edi, %ecx
	jne	LBB0_14
## %bb.7:
	andl	%eax, %esi
	movl	%esi, 24(%rbx)
	leal	-128(%rsi), %eax
	cmpl	$8, %eax
	ja	LBB0_21
## %bb.8:
	movl	$177, %ecx
	btl	%eax, %ecx
	jb	LBB0_20
## %bb.9:
	movl	$332, %ecx                      ## imm = 0x14C
	btl	%eax, %ecx
	jb	LBB0_23
## %bb.10:
	movq	(%rbx), %rax
	movq	_SNMP_V1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.11:
	leaq	L_.str.5(%rip), %rdi
	movl	$129, %esi
	jmp	LBB0_22
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_17
LBB0_13:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_17
LBB0_14:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
LBB0_17:
	xorl	%eax, %eax
	callq	_snmp_error
LBB0_18:
	movq	_SNMP_CODE_FAILED@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	(%rbx), %rax
	movq	_SNMP_V1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
LBB0_21:
	leaq	L_.str.5(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
LBB0_22:
	xorl	%eax, %eax
	callq	_snmp_error
	jmp	LBB0_18
LBB0_23:
	movq	(%r15), %r12
	movq	-48(%rbp), %r13
	movq	%r13, (%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_parse_pdus
	movl	%eax, %edi
	callq	_ASN_ERR_STOPPED
	testq	%rax, %rax
	jne	LBB0_18
## %bb.25:
	subq	%r13, %r12
	cmpq	$0, (%r15)
	je	LBB0_27
## %bb.26:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_snmp_error
LBB0_27:
	movq	%r12, (%r15)
	movq	_SNMP_CODE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_SNMP_V3,8,3                    ## @SNMP_V3
	.comm	_ASN_ERR_OK,8,3                 ## @ASN_ERR_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot decode scoped pdu header"

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

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

L_.str.3:                               ## @.str.3
	.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.4:                               ## @.str.4
	.asciz	"bad pdu header tag"

	.comm	_SNMP_V1,8,3                    ## @SNMP_V1
L_.str.5:                               ## @.str.5
	.asciz	"bad pdu type %u"

L_.str.6:                               ## @.str.6
	.asciz	"ignoring trailing junk after pdu"

	.comm	_SNMP_CODE_OK,4,2               ## @SNMP_CODE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_pdu_decode_scoped         ; -- Begin function snmp_pdu_decode_scoped
	.p2align	2
_snmp_pdu_decode_scoped:                ; @snmp_pdu_decode_scoped
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _SNMP_V3@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNMP_V3@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x23, _ASN_ERR_OK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ASN_ERR_OK@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	add	x1, sp, #16
	mov	x0, x19
	bl	_asn_get_sequence
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.2:
Lloh5:
	adrp	x8, _SNMP_ENGINE_ID_SIZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SNMP_ENGINE_ID_SIZ@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	add	x1, x21, #28
	add	x2, sp, #16
	mov	x0, x19
	bl	_asn_get_octetstring
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.3:
	ldr	x8, [sp, #16]
	str	x8, [x21, #8]
Lloh8:
	adrp	x8, _SNMP_CONTEXT_NAME_SIZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SNMP_CONTEXT_NAME_SIZ@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	add	x22, x21, #16
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x22
	bl	_asn_get_octetstring
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.4:
	ldr	x8, [x22]
	ldr	x9, [sp, #16]
	strb	wzr, [x8, x9]
LBB0_5:
	add	x1, sp, #28
	add	x2, sp, #16
	mov	x0, x19
	bl	_asn_get_header
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.6:
	ldr	w8, [sp, #28]
Lloh11:
	adrp	x9, _ASN_TYPE_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ASN_TYPE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	bic	w10, w8, w9
Lloh14:
	adrp	x11, _ASN_TYPE_CONSTRUCTED@GOTPAGE
Lloh15:
	ldr	x11, [x11, _ASN_TYPE_CONSTRUCTED@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
Lloh17:
	adrp	x12, _ASN_CLASS_CONTEXT@GOTPAGE
Lloh18:
	ldr	x12, [x12, _ASN_CLASS_CONTEXT@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x12]
	orr	w11, w12, w11
	cmp	w10, w11
	b.ne	LBB0_14
; %bb.7:
	and	w8, w9, w8
	str	w8, [x21, #24]
	sub	w9, w8, #128
	cmp	w9, #8
	b.hi	LBB0_22
; %bb.8:
	mov	w10, #1
	lsl	w9, w10, w9
	mov	w10, #177
	tst	w9, w10
	b.ne	LBB0_17
; %bb.9:
	mov	w8, #332
	tst	w9, w8
	b.ne	LBB0_18
; %bb.10:
	ldr	x8, [x21]
Lloh20:
	adrp	x9, _SNMP_V1@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SNMP_V1@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.11:
	mov	w8, #129
	b	LBB0_23
LBB0_12:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_24
LBB0_13:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_24
LBB0_14:
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_24
LBB0_15:
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_16:
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_24
LBB0_17:
	ldr	x9, [x21]
Lloh33:
	adrp	x10, _SNMP_V1@GOTPAGE
Lloh34:
	ldr	x10, [x10, _SNMP_V1@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_23
LBB0_18:
	ldr	x22, [x19]
	ldr	x23, [sp, #16]
	str	x23, [x19]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_parse_pdus
	bl	_ASN_ERR_STOPPED
	cbnz	x0, LBB0_25
; %bb.19:
	sub	x20, x22, x23
	ldr	x8, [x19]
	cbz	x8, LBB0_21
; %bb.20:
Lloh36:
	adrp	x0, l_.str.6@PAGE
Lloh37:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_snmp_error
LBB0_21:
	str	x20, [x19]
Lloh38:
	adrp	x8, _SNMP_CODE_OK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SNMP_CODE_OK@GOTPAGEOFF]
	b	LBB0_26
LBB0_22:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_23:
	str	x8, [sp]
Lloh40:
	adrp	x0, l_.str.5@PAGE
Lloh41:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_24:
	bl	_snmp_error
LBB0_25:
Lloh42:
	adrp	x8, _SNMP_CODE_FAILED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SNMP_CODE_FAILED@GOTPAGEOFF]
LBB0_26:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_SNMP_V3,8,3                    ; @SNMP_V3
	.comm	_ASN_ERR_OK,8,3                 ; @ASN_ERR_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot decode scoped pdu header"

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

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

l_.str.3:                               ; @.str.3
	.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.4:                               ; @.str.4
	.asciz	"bad pdu header tag"

	.comm	_SNMP_V1,8,3                    ; @SNMP_V1
l_.str.5:                               ; @.str.5
	.asciz	"bad pdu type %u"

l_.str.6:                               ; @.str.6
	.asciz	"ignoring trailing junk after pdu"

	.comm	_SNMP_CODE_OK,4,2               ; @SNMP_CODE_OK
.subsections_via_symbols
