	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_get_oid                    ## -- Begin function der_get_oid
	.p2align	4, 0x90
_der_get_oid:                           ## @der_get_oid
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	incq	%rdi
	jne	LBB0_3
## %bb.2:
	movq	_ASN1_BAD_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_3:
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rdi
	jbe	LBB0_5
## %bb.4:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_5:
	movq	%rcx, %r14
	movq	%rdx, %r15
	callq	_malloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_19
## %bb.6:
	movzbl	(%rbx), %ecx
	imull	$205, %ecx, %edx
	shrl	$13, %edx
	movb	%dl, (%rax)
	shll	$3, %edx
	leal	(%rdx,%rdx,4), %edx
	subb	%dl, %cl
	movb	%cl, 1(%rax)
	movq	%r12, %rax
	decq	%rax
	je	LBB0_20
## %bb.7:
	incq	%rbx
	movl	$2, %esi
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rsi, %r8
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, %ecx
	movq	%rax, %rdi
	movl	%edx, %eax
	shll	$7, %eax
	movzbl	(%rbx), %esi
	movl	%esi, %edx
	andl	$127, %edx
	orl	%eax, %edx
	cmpl	%ecx, %edx
	jb	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%rbx
	leaq	-1(%rdi), %rax
	cmpq	$1, %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	testb	%sil, %sil
	js	LBB0_9
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%r8), %rsi
	movq	(%r15), %rcx
	movb	%dl, (%rcx,%r8)
	cmpq	$1, %rdi
	jne	LBB0_8
## %bb.13:
	cmpq	$3, %rsi
	jb	LBB0_21
## %bb.14:
	cmpb	$0, -1(%rbx)
	jns	LBB0_21
LBB0_15:
	movq	%r15, %rdi
	callq	_der_free_oid
LBB0_16:
	movq	_ASN1_OVERRUN@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_20:
	movl	$2, %esi
LBB0_21:
	movq	%rsi, 8(%r15)
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_18
## %bb.22:
	movq	%r12, (%r14)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_OVERRUN,4,2               ## @ASN1_OVERRUN
	.comm	_ASN1_BAD_LENGTH,4,2            ## @ASN1_BAD_LENGTH
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_get_oid                    ; -- Begin function der_get_oid
	.p2align	2
_der_get_oid:                           ; @der_get_oid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_16
; %bb.1:
	mov	x21, x1
	mov	x22, x0
	adds	x0, x1, #1
	b.lo	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ASN1_BAD_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_BAD_LENGTH@GOTPAGEOFF]
	b	LBB0_17
LBB0_3:
Lloh2:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh4:
	ldrsw	x8, [x8]
	cmp	x0, x8
	b.ls	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _ERANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_17
LBB0_5:
	mov	x20, x3
	mov	x19, x2
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_19
; %bb.6:
	ldrb	w8, [x22]
	and	w9, w8, #0xff
	mov	w10, #205
	mul	w9, w9, w10
	lsr	w9, w9, #13
	strb	w9, [x0]
	mov	w10, #40
	msub	w8, w9, w10, w8
	strb	w8, [x0, #1]
	subs	x10, x21, #1
	b.eq	LBB0_20
; %bb.7:
	add	x9, x22, #1
	mov	w8, #2
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	w12, #0
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x14, x12
	ldrb	w13, [x9]
	mov	x12, x13
	bfi	w12, w14, #7, #25
	cmp	w12, w14
	b.lo	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x11, x10
	add	x9, x9, #1
	subs	x10, x10, #1
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	sxtb	w13, w13
	tbnz	w13, #31, LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x13, [x19]
	strb	w12, [x13, x8]
	add	x8, x8, #1
	cmp	x11, #1
	b.ne	LBB0_8
; %bb.13:
	cmp	x8, #3
	b.lo	LBB0_21
; %bb.14:
	ldursb	w9, [x9, #-1]
	tbz	w9, #31, LBB0_21
LBB0_15:
	mov	x0, x19
	bl	_der_free_oid
LBB0_16:
Lloh7:
	adrp	x8, _ASN1_OVERRUN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ASN1_OVERRUN@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_20:
	mov	w8, #2
LBB0_21:
	str	x8, [x19, #8]
	mov	w0, #0
	cbz	x20, LBB0_18
; %bb.22:
	str	x21, [x20]
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_OVERRUN,4,2               ; @ASN1_OVERRUN
	.comm	_ASN1_BAD_LENGTH,4,2            ; @ASN1_BAD_LENGTH
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
