	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snmp_pdu_decode_header         ## -- Begin function snmp_pdu_decode_header
	.p2align	4, 0x90
_snmp_pdu_decode_header:                ## @snmp_pdu_decode_header
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	movl	%eax, 40(%rsi)
	movq	(%rdi), %rax
	movq	%rax, (%rsi)
	leaq	-48(%rbp), %rsi
	callq	_asn_get_sequence
	movq	_ASN_ERR_OK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_1
## %bb.3:
	movq	-48(%rbp), %rax
	cmpq	%rax, (%rbx)
	jge	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_snmp_error
	movq	_SNMP_CODE_FAILED@GOTPCREL(%rip), %r15
LBB0_32:
	movl	(%r15), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	callq	_snmp_error
	movq	-48(%rbp), %rax
	movq	%rax, (%rbx)
LBB0_7:
	leaq	-52(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_asn_get_integer
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.9:
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	cmpl	$3, %eax
	je	LBB0_15
## %bb.12:
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.13:
	movq	_SNMP_V2c@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_10:
	movq	_SNMP_V1@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_SNMP_V3@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_SNMP_V3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.17:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_asn_get_sequence
	cmpq	(%r12), %rax
	jne	LBB0_18
## %bb.19:
	leaq	16(%r14), %rsi
	movq	%rbx, %rdi
	callq	_asn_get_integer
	cmpq	(%r12), %rax
	jne	LBB0_20
## %bb.21:
	leaq	36(%r14), %rsi
	movq	%rbx, %rdi
	callq	_asn_get_integer
	cmpq	(%r12), %rax
	jne	LBB0_22
## %bb.23:
	movq	$1, -40(%rbp)
	leaq	32(%r14), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_asn_get_octetstring
	cmpq	(%r12), %rax
	jne	LBB0_24
## %bb.25:
	leaq	20(%r14), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_asn_get_integer
	cmpq	(%r12), %rax
	jne	LBB0_22
## %bb.26:
	movslq	(%r15), %rax
	movq	_SNMP_SECMODEL_USM@GOTPCREL(%rip), %rcx
	movq	_SNMP_CODE_FAILED@GOTPCREL(%rip), %r15
	cmpq	%rax, (%rcx)
	jne	LBB0_32
## %bb.27:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_parse_secparams
	cmpq	(%r12), %rax
	jne	LBB0_32
	jmp	LBB0_31
LBB0_28:
	movq	_SNMP_COMMUNITY_MAXLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	24(%r14), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_asn_get_octetstring
	cmpq	(%r12), %rax
	jne	LBB0_29
## %bb.30:
	movq	24(%r14), %rax
	movq	-40(%rbp), %rcx
	movb	$0, (%rax,%rcx)
LBB0_31:
	movq	_SNMP_CODE_OK@GOTPCREL(%rip), %r15
	jmp	LBB0_32
LBB0_14:
	movq	_SNMP_Verr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	leaq	L_.str.4(%rip), %rdi
	callq	_snmp_error
	movq	_SNMP_CODE_BADENC@GOTPCREL(%rip), %r15
	jmp	LBB0_32
LBB0_18:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_2
LBB0_29:
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_2
LBB0_20:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_2
LBB0_22:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_2
LBB0_24:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN_ERR_OK,8,3                 ## @ASN_ERR_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot decode pdu header"

	.comm	_SNMP_CODE_FAILED,4,2           ## @SNMP_CODE_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"outer sequence value too short"

L_.str.2:                               ## @.str.2
	.asciz	"ignoring trailing junk in message"

L_.str.3:                               ## @.str.3
	.asciz	"cannot decode version"

	.comm	_SNMP_V1,8,3                    ## @SNMP_V1
	.comm	_SNMP_V2c,8,3                   ## @SNMP_V2c
	.comm	_SNMP_V3,8,3                    ## @SNMP_V3
	.comm	_SNMP_Verr,8,3                  ## @SNMP_Verr
L_.str.4:                               ## @.str.4
	.asciz	"unsupported SNMP version"

	.comm	_SNMP_CODE_BADENC,4,2           ## @SNMP_CODE_BADENC
L_.str.5:                               ## @.str.5
	.asciz	"cannot decode pdu global data header"

L_.str.6:                               ## @.str.6
	.asciz	"cannot decode msg indetifier"

L_.str.7:                               ## @.str.7
	.asciz	"cannot decode msg size"

L_.str.8:                               ## @.str.8
	.asciz	"cannot decode msg flags"

	.comm	_SNMP_SECMODEL_USM,8,3          ## @SNMP_SECMODEL_USM
	.comm	_SNMP_COMMUNITY_MAXLEN,8,3      ## @SNMP_COMMUNITY_MAXLEN
L_.str.9:                               ## @.str.9
	.asciz	"cannot decode community"

	.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_header         ; -- Begin function snmp_pdu_decode_header
	.p2align	2
_snmp_pdu_decode_header:                ; @snmp_pdu_decode_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0, #8]
	str	w8, [x1, #40]
	ldr	x8, [x0]
	str	x8, [x1]
	add	x1, sp, #8
	bl	_asn_get_sequence
Lloh0:
	adrp	x22, _ASN_ERR_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ASN_ERR_OK@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_snmp_error
LBB0_5:
Lloh6:
	adrp	x8, _SNMP_CODE_FAILED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNMP_CODE_FAILED@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	b.eq	LBB0_9
; %bb.8:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_snmp_error
	ldr	x8, [sp, #8]
	str	x8, [x20]
LBB0_9:
	add	x1, sp, #28
	mov	x0, x20
	bl	_asn_get_integer
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.10:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_15
; %bb.11:
	cmp	w8, #3
	b.eq	LBB0_16
; %bb.12:
	cmp	w8, #1
	b.ne	LBB0_28
; %bb.13:
Lloh10:
	adrp	x8, _SNMP_V2c@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SNMP_V2c@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_15:
Lloh14:
	adrp	x8, _SNMP_V1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SNMP_V1@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh16:
	adrp	x8, _SNMP_V3@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SNMP_V3@GOTPAGEOFF]
LBB0_17:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh18:
	adrp	x9, _SNMP_V3@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SNMP_V3@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.18:
	add	x1, sp, #8
	mov	x0, x20
	bl	_asn_get_sequence
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_29
; %bb.19:
	add	x1, x19, #16
	mov	x0, x20
	bl	_asn_get_integer
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_31
; %bb.20:
	add	x1, x19, #36
	mov	x0, x20
	bl	_asn_get_integer
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_32
; %bb.21:
	mov	w8, #1
	str	x8, [sp, #16]
	add	x1, x19, #32
	add	x2, sp, #16
	mov	x0, x20
	bl	_asn_get_octetstring
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_33
; %bb.22:
	add	x21, x19, #20
	mov	x0, x20
	mov	x1, x21
	bl	_asn_get_integer
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_32
; %bb.23:
	ldrsw	x8, [x21]
Lloh21:
	adrp	x9, _SNMP_SECMODEL_USM@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SNMP_SECMODEL_USM@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.24:
	mov	x0, x20
	mov	x1, x19
	bl	_parse_secparams
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_5
	b	LBB0_27
LBB0_25:
Lloh24:
	adrp	x8, _SNMP_COMMUNITY_MAXLEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SNMP_COMMUNITY_MAXLEN@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	ldr	x1, [x19, #24]
	add	x2, sp, #16
	mov	x0, x20
	bl	_asn_get_octetstring
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_30
; %bb.26:
	ldr	x8, [x19, #24]
	ldr	x9, [sp, #16]
	strb	wzr, [x8, x9]
LBB0_27:
Lloh27:
	adrp	x8, _SNMP_CODE_OK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SNMP_CODE_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_28:
Lloh29:
	adrp	x8, _SNMP_Verr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SNMP_Verr@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_snmp_error
Lloh34:
	adrp	x8, _SNMP_CODE_BADENC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SNMP_CODE_BADENC@GOTPAGEOFF]
	b	LBB0_6
LBB0_29:
Lloh36:
	adrp	x0, l_.str.5@PAGE
Lloh37:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_30:
Lloh38:
	adrp	x0, l_.str.9@PAGE
Lloh39:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_4
LBB0_31:
Lloh40:
	adrp	x0, l_.str.6@PAGE
Lloh41:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_4
LBB0_32:
Lloh42:
	adrp	x0, l_.str.7@PAGE
Lloh43:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_4
LBB0_33:
Lloh44:
	adrp	x0, l_.str.8@PAGE
Lloh45:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN_ERR_OK,8,3                 ; @ASN_ERR_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot decode pdu header"

	.comm	_SNMP_CODE_FAILED,4,2           ; @SNMP_CODE_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"outer sequence value too short"

l_.str.2:                               ; @.str.2
	.asciz	"ignoring trailing junk in message"

l_.str.3:                               ; @.str.3
	.asciz	"cannot decode version"

	.comm	_SNMP_V1,8,3                    ; @SNMP_V1
	.comm	_SNMP_V2c,8,3                   ; @SNMP_V2c
	.comm	_SNMP_V3,8,3                    ; @SNMP_V3
	.comm	_SNMP_Verr,8,3                  ; @SNMP_Verr
l_.str.4:                               ; @.str.4
	.asciz	"unsupported SNMP version"

	.comm	_SNMP_CODE_BADENC,4,2           ; @SNMP_CODE_BADENC
l_.str.5:                               ; @.str.5
	.asciz	"cannot decode pdu global data header"

l_.str.6:                               ; @.str.6
	.asciz	"cannot decode msg indetifier"

l_.str.7:                               ; @.str.7
	.asciz	"cannot decode msg size"

l_.str.8:                               ; @.str.8
	.asciz	"cannot decode msg flags"

	.comm	_SNMP_SECMODEL_USM,8,3          ; @SNMP_SECMODEL_USM
	.comm	_SNMP_COMMUNITY_MAXLEN,8,3      ; @SNMP_COMMUNITY_MAXLEN
l_.str.9:                               ; @.str.9
	.asciz	"cannot decode community"

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