	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ber_get_oid                    ## -- Begin function ber_get_oid
	.p2align	4, 0x90
_ber_get_oid:                           ## @ber_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rcx
	movq	_BER_TYPE_OBJECT@GOTPCREL(%rip), %rdx
	movl	$-1, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.1:
	movq	8(%rdi), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_8
## %bb.2:
	movq	%rsi, %r14
	movq	16(%rdi), %r15
	movq	%rsi, %rdi
	movl	$16, %esi
	callq	_bzero
	movslq	(%rbx), %rax
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$36, %rcx
	addl	%eax, %ecx
	movq	(%r14), %rax
	movl	%ecx, (%rax)
	movslq	(%rbx), %rcx
	imulq	$1717986919, %rcx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$36, %rdx
	addl	%esi, %edx
	shll	$3, %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%edx, %ecx
	movl	%ecx, 4(%rax)
	movl	$2, %ecx
	cmpq	$2, %r15
	jb	LBB0_7
## %bb.3:
	movq	_BER_MAX_OID_LEN@GOTPCREL(%rip), %r8
	cmpq	$3, (%r8)
	jb	LBB0_7
## %bb.4:
	movl	$2, %esi
	movl	$-129, %r9d
	movl	$2, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edx
	shll	$7, %edx
	movl	-4(%rbx,%rsi,4), %edi
	andl	%r9d, %edi
	addl	%edx, %edi
	movl	%edi, (%rax,%rcx,4)
	movl	-4(%rbx,%rsi,4), %edx
	andl	$128, %edx
	cmpq	$1, %rdx
	adcq	$0, %rcx
	cmpq	%r15, %rsi
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	cmpq	(%r8), %rcx
	jb	LBB0_5
LBB0_7:
	movq	%rcx, 8(%r14)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BER_TYPE_OBJECT,8,3            ## @BER_TYPE_OBJECT
	.comm	_BER_MAX_OID_LEN,8,3            ## @BER_MAX_OID_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ber_get_oid                    ; -- Begin function ber_get_oid
	.p2align	2
_ber_get_oid:                           ; @ber_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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BER_TYPE_OBJECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BER_TYPE_OBJECT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	ldr	x20, [x0, #8]
	ldr	w8, [x20]
	cbz	w8, LBB0_8
; %bb.2:
	mov	x19, x1
	ldr	x21, [x0, #16]
	mov	x0, x1
	mov	w1, #16
	bl	_bzero
	ldrsw	x8, [x20]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x10, x8, #63
	asr	x8, x8, #36
	add	w10, w8, w10
	ldr	x8, [x19]
	str	w10, [x8]
	ldrsw	x10, [x20]
	mul	x9, x10, x9
	lsr	x11, x9, #63
	asr	x9, x9, #36
	add	w9, w9, w11
	mov	w11, #40
	msub	w9, w9, w11, w10
	str	w9, [x8, #4]
	mov	w9, #2
	cmp	x21, #2
	b.lo	LBB0_7
; %bb.3:
Lloh3:
	adrp	x10, _BER_MAX_OID_LEN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BER_MAX_OID_LEN@GOTPAGEOFF]
	ldr	x11, [x10]
	cmp	x11, #3
	b.lo	LBB0_7
; %bb.4:
	mov	w11, #1
	mov	w9, #2
	mov	w12, #-1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x13, x9, #2
	ldr	w14, [x8, x13]
	lsl	x15, x11, #2
	ldr	w16, [x20, x15]
	and	w16, w16, #0xffffff7f
	add	w14, w16, w14, lsl #7
	str	w14, [x8, x13]
	ldr	w13, [x20, x15]
	eor	w13, w12, w13, lsr #7
	and	x13, x13, #0x1
	add	x9, x9, x13
	add	x11, x11, #1
	cmp	x11, x21
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x13, [x10]
	cmp	x9, x13
	b.lo	LBB0_5
LBB0_7:
	mov	w0, #0
	str	x9, [x19, #8]
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BER_TYPE_OBJECT,8,3            ; @BER_TYPE_OBJECT
	.comm	_BER_MAX_OID_LEN,8,3            ; @BER_MAX_OID_LEN
.subsections_via_symbols
