	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_get_octet_string_ber       ## -- Begin function der_get_octet_string_ber
	.p2align	4, 0x90
_der_get_octet_string_ber:              ## @der_get_octet_string_ber
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	$0, (%rdx)
	movq	$0, 8(%rdx)
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_24
## %bb.1:
	movq	%rdx, %r12
	movq	%rdi, %r13
	movq	%rsi, %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	%rsi, %r13
	subq	%rsi, %rbx
	je	LBB0_22
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	leaq	-96(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	-60(%rbp), %r8
	leaq	-56(%rbp), %r9
	callq	_der_get_tag
	testl	%eax, %eax
	jne	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rax
	movq	_ASN1_C_UNIV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rcx
	movl	-60(%rbp), %eax
	movq	_PRIM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_UT_EndOfContent@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r14d, %r14d
	je	LBB0_25
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%r14d
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_UT_OctetString@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax
	addq	%rax, %r13
	subq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	callq	_der_get_length
	testl	%eax, %eax
	jne	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax
	subq	%rax, %rbx
	movq	-48(%rbp), %rsi
	cmpq	%rbx, %rsi
	ja	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	%rax, %r13
	movq	-72(%rbp), %rax
	movq	_PRIM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rdi
	addl	(%r12), %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_28
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, 8(%r12)
	movslq	(%r12), %rdi
	addq	%rax, %rdi
	movq	-48(%rbp), %rdx
	movq	%r13, %rsi
	callq	_memcpy
	movq	-48(%rbp), %rsi
	addl	%esi, (%r12)
	jmp	LBB0_3
LBB0_16:
	movq	_ASN1_BAD_ID@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %r15d
	jmp	LBB0_20
LBB0_19:
	movl	%eax, %r15d
LBB0_20:
	movq	8(%r12), %rdi
	callq	_free
	movq	$0, 8(%r12)
	movl	$0, (%r12)
	jmp	LBB0_27
LBB0_21:
	movq	_ASN1_OVERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_27
LBB0_22:
	testl	%r14d, %r14d
	je	LBB0_24
## %bb.23:
	movq	_ASN1_INDEF_OVERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_27
LBB0_24:
	xorl	%ebx, %ebx
LBB0_25:
	xorl	%r15d, %r15d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	subq	%rbx, %rcx
	movq	%rcx, (%rax)
LBB0_27:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_C_UNIV,8,3                ## @ASN1_C_UNIV
	.comm	_ASN1_BAD_ID,4,2                ## @ASN1_BAD_ID
	.comm	_PRIM,8,3                       ## @PRIM
	.comm	_UT_EndOfContent,4,2            ## @UT_EndOfContent
	.comm	_UT_OctetString,4,2             ## @UT_OctetString
	.comm	_ASN1_OVERRUN,4,2               ## @ASN1_OVERRUN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ASN1_INDEF_OVERRUN,4,2         ## @ASN1_INDEF_OVERRUN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_get_octet_string_ber       ; -- Begin function der_get_octet_string_ber
	.p2align	2
_der_get_octet_string_ber:              ; @der_get_octet_string_ber
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	str	wzr, [x2]
	str	xzr, [x2, #8]
	cbz	x1, LBB0_15
; %bb.1:
	mov	x19, x2
	mov	x22, x0
	str	x3, [sp]                        ; 8-byte Folded Spill
	mov	w25, #0
Lloh0:
	adrp	x26, _ASN1_C_UNIV@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ASN1_C_UNIV@GOTPAGEOFF]
Lloh2:
	adrp	x27, _PRIM@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PRIM@GOTPAGEOFF]
Lloh4:
	adrp	x28, _UT_EndOfContent@GOTPAGE
Lloh5:
	ldr	x28, [x28, _UT_EndOfContent@GOTPAGEOFF]
	mov	x23, x21
Lloh6:
	adrp	x20, _UT_OctetString@GOTPAGE
Lloh7:
	ldr	x20, [x20, _UT_OctetString@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, x8
	subs	x23, x23, x8
	b.eq	LBB0_23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #32
	add	x3, sp, #40
	add	x4, sp, #28
	add	x5, sp, #16
	mov	x0, x22
	mov	x1, x23
	bl	_der_get_tag
	cbnz	w0, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #32]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #40]
	ldr	x10, [x27]
	ldr	w8, [sp, #28]
	ldr	w11, [x28]
	cmp	x9, x10
	ccmp	w8, w11, #0, eq
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w25, LBB0_27
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w25, w25, #1
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	add	x22, x22, x8
	sub	x23, x23, x8
	add	x2, sp, #8
	add	x3, sp, #16
	mov	x0, x22
	mov	x1, x23
	bl	_der_get_length
	cbnz	w0, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x9, [sp, #8]
	sub	x23, x23, x9
	cmp	x8, x23
	b.hi	LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, x9
	ldr	x9, [sp, #40]
	ldr	x10, [x27]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19, #8]
	ldr	w9, [x19]
	add	w1, w9, w8
	bl	_realloc
	cbz	x0, LBB0_25
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [x19, #8]
	ldrsw	x8, [x19]
	add	x0, x0, x8
	ldr	x2, [sp, #8]
	mov	x1, x22
	bl	_memcpy
	ldr	x8, [sp, #8]
	ldr	w9, [x19]
	add	w9, w9, w8
	str	w9, [x19]
	b	LBB0_3
LBB0_15:
	mov	x23, #0
	mov	w24, #0
	cbz	x3, LBB0_21
LBB0_16:
	sub	x8, x21, x23
	str	x8, [x3]
	b	LBB0_21
LBB0_17:
Lloh8:
	adrp	x8, _ASN1_BAD_ID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ASN1_BAD_ID@GOTPAGEOFF]
LBB0_18:
	ldr	w24, [x8]
	b	LBB0_20
LBB0_19:
	mov	x24, x0
LBB0_20:
	ldr	x0, [x19, #8]
	bl	_free
	str	xzr, [x19, #8]
	str	wzr, [x19]
LBB0_21:
	mov	x0, x24
	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
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_22:
Lloh10:
	adrp	x8, _ASN1_OVERRUN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ASN1_OVERRUN@GOTPAGEOFF]
Lloh12:
	ldr	w24, [x8]
	b	LBB0_21
LBB0_23:
	cbz	w25, LBB0_26
; %bb.24:
Lloh13:
	adrp	x8, _ASN1_INDEF_OVERRUN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ASN1_INDEF_OVERRUN@GOTPAGEOFF]
Lloh15:
	ldr	w24, [x8]
	b	LBB0_21
LBB0_25:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_18
LBB0_26:
	mov	x23, #0
LBB0_27:
	ldr	x3, [sp]                        ; 8-byte Folded Reload
	mov	w24, #0
	cbnz	x3, LBB0_16
	b	LBB0_21
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_C_UNIV,8,3                ; @ASN1_C_UNIV
	.comm	_ASN1_BAD_ID,4,2                ; @ASN1_BAD_ID
	.comm	_PRIM,8,3                       ; @PRIM
	.comm	_UT_EndOfContent,4,2            ; @UT_EndOfContent
	.comm	_UT_OctetString,4,2             ; @UT_OctetString
	.comm	_ASN1_OVERRUN,4,2               ; @ASN1_OVERRUN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ASN1_INDEF_OVERRUN,4,2         ; @ASN1_INDEF_OVERRUN
.subsections_via_symbols
