	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASN1_STRING_set_by_NID         ## -- Begin function ASN1_STRING_set_by_NID
	.p2align	4, 0x90
_ASN1_STRING_set_by_NID:                ## @ASN1_STRING_set_by_NID
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	$0, -40(%rbp)
	testq	%rdi, %rdi
	leaq	-40(%rbp), %rbx
	cmovneq	%rdi, %rbx
	movl	%r8d, %edi
	callq	_ASN1_STRING_TABLE_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_STABLE_NO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rax), %ecx
	movq	_global_mask@GOTPCREL(%rip), %rdx
	xorl	%r8d, %r8d
	negl	%ecx
	sbbq	%r8, %r8
	orq	(%rdx), %r8
	andq	(%rax), %r8
	movl	12(%rax), %ecx
	movl	16(%rax), %r9d
	movl	%ecx, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_ASN1_mbstring_ncopy
	testl	%eax, %eax
	jle	LBB0_4
LBB0_5:
	movq	(%rbx), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_DIRSTRING_TYPE@GOTPCREL(%rip), %rax
	movq	_global_mask@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	andq	(%rax), %r8
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_ASN1_mbstring_copy
	testl	%eax, %eax
	jg	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STABLE_NO_MASK,4,2             ## @STABLE_NO_MASK
	.comm	_global_mask,8,3                ## @global_mask
	.comm	_DIRSTRING_TYPE,8,3             ## @DIRSTRING_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASN1_STRING_set_by_NID         ; -- Begin function ASN1_STRING_set_by_NID
	.p2align	2
_ASN1_STRING_set_by_NID:                ; @ASN1_STRING_set_by_NID
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	str	xzr, [sp, #8]
	add	x8, sp, #8
	cmp	x0, #0
	csel	x19, x8, x0, eq
	mov	x0, x4
	bl	_ASN1_STRING_TABLE_get
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _STABLE_NO_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STABLE_NO_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _global_mask@GOTPAGE
Lloh4:
	ldr	x10, [x10, _global_mask@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldp	w11, w6, [x0, #8]
	tst	w9, w11
	csinv	x9, x10, xzr, eq
	and	x4, x9, x8
	ldr	w5, [x0, #16]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_ASN1_mbstring_ncopy
	cmp	w0, #1
	b.lt	LBB0_4
LBB0_2:
	ldr	x0, [x19]
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _DIRSTRING_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIRSTRING_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _global_mask@GOTPAGE
Lloh10:
	ldr	x9, [x9, _global_mask@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	and	x4, x9, x8
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_ASN1_mbstring_copy
	cmp	w0, #1
	b.ge	LBB0_2
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STABLE_NO_MASK,4,2             ; @STABLE_NO_MASK
	.comm	_global_mask,8,3                ; @global_mask
	.comm	_DIRSTRING_TYPE,8,3             ; @DIRSTRING_TYPE
.subsections_via_symbols
