	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASN1_TYPE_get_octetstring      ## -- Begin function ASN1_TYPE_get_octetstring
	.p2align	4, 0x90
_ASN1_TYPE_get_octetstring:             ## @ASN1_TYPE_get_octetstring
	.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
	movq	(%rdi), %rax
	movq	_V_ASN1_OCTET_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	movl	%edx, %r15d
	movq	%rsi, %r14
	callq	_ASN1_STRING_get0_data
	movq	%rax, %r12
	movq	8(%rbx), %rdi
	callq	_ASN1_STRING_length
	movl	%eax, %ebx
	cmpl	%r15d, %eax
	cmovll	%eax, %r15d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	jmp	LBB0_4
LBB0_2:
	movq	_ASN1_F_ASN1_TYPE_GET_OCTETSTRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_DATA_IS_WRONG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	movl	$-1, %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_ASN1_OCTET_STRING,8,3        ## @V_ASN1_OCTET_STRING
	.comm	_ASN1_F_ASN1_TYPE_GET_OCTETSTRING,4,2 ## @ASN1_F_ASN1_TYPE_GET_OCTETSTRING
	.comm	_ASN1_R_DATA_IS_WRONG,4,2       ## @ASN1_R_DATA_IS_WRONG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASN1_TYPE_get_octetstring      ; -- Begin function ASN1_TYPE_get_octetstring
	.p2align	2
_ASN1_TYPE_get_octetstring:             ; @ASN1_TYPE_get_octetstring
	.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, _V_ASN1_OCTET_STRING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V_ASN1_OCTET_STRING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x2
	mov	x19, x1
	bl	_ASN1_STRING_get0_data
	mov	x22, x0
	ldr	x0, [x21, #8]
	bl	_ASN1_STRING_length
	mov	x21, x0
	cmp	w0, w20
	csel	w2, w0, w20, lt
	mov	x0, x19
	mov	x1, x22
	bl	_memcpy
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _ASN1_F_ASN1_TYPE_GET_OCTETSTRING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASN1_F_ASN1_TYPE_GET_OCTETSTRING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ASN1_R_DATA_IS_WRONG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ASN1_R_DATA_IS_WRONG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ASN1err
	mov	w21, #-1
LBB0_4:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_V_ASN1_OCTET_STRING,8,3        ; @V_ASN1_OCTET_STRING
	.comm	_ASN1_F_ASN1_TYPE_GET_OCTETSTRING,4,2 ; @ASN1_F_ASN1_TYPE_GET_OCTETSTRING
	.comm	_ASN1_R_DATA_IS_WRONG,4,2       ; @ASN1_R_DATA_IS_WRONG
.subsections_via_symbols
