	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASN1_STRING_set                ## -- Begin function ASN1_STRING_set
	.p2align	4, 0x90
_ASN1_STRING_set:                       ## @ASN1_STRING_set
	.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
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	testl	%edx, %edx
	jns	LBB0_3
## %bb.1:
	testq	%r14, %r14
	je	LBB0_11
## %bb.2:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %ebx
LBB0_3:
	movq	8(%r15), %rax
	cmpl	%ebx, (%r15)
	jle	LBB0_6
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_6:
	movq	%rax, %r12
LBB0_7:
	leal	1(%rbx), %esi
	movq	%r12, %rdi
	callq	_OPENSSL_realloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	movl	%ebx, (%r15)
	movl	$1, %r12d
	testq	%r14, %r14
	je	LBB0_12
## %bb.9:
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	8(%r15), %rax
	movslq	%ebx, %rcx
	movb	$0, (%rax,%rcx)
	jmp	LBB0_12
LBB0_10:
	movq	_ASN1_F_ASN1_STRING_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	movq	%r12, 8(%r15)
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_F_ASN1_STRING_SET,4,2     ## @ASN1_F_ASN1_STRING_SET
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASN1_STRING_set                ; -- Begin function ASN1_STRING_set
	.p2align	2
_ASN1_STRING_set:                       ; @ASN1_STRING_set
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	tbz	w2, #31, LBB0_3
; %bb.1:
	cbz	x20, LBB0_12
; %bb.2:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
LBB0_3:
	ldr	w8, [x19]
	ldr	x0, [x19, #8]
	cmp	w8, w21
	b.le	LBB0_6
; %bb.4:
	cbnz	x0, LBB0_8
; %bb.5:
	mov	x22, #0
	b	LBB0_7
LBB0_6:
	mov	x22, x0
LBB0_7:
	add	w1, w21, #1
	mov	x0, x22
	bl	_OPENSSL_realloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
LBB0_8:
	str	w21, [x19]
	cbz	x20, LBB0_10
; %bb.9:
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x19, #8]
	strb	wzr, [x8, w21, sxtw]
LBB0_10:
	mov	w0, #1
	b	LBB0_13
LBB0_11:
Lloh0:
	adrp	x8, _ASN1_F_ASN1_STRING_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_F_ASN1_STRING_SET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ASN1err
	mov	w0, #0
	str	x22, [x19, #8]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_F_ASN1_STRING_SET,4,2     ; @ASN1_F_ASN1_STRING_SET
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
