	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asn1_primitive_new
_asn1_primitive_new:                    ## @asn1_primitive_new
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	testl	%edx, %edx
	je	LBB0_5
## %bb.3:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*%rax
	movl	$1, %r15d
	jmp	LBB0_22
LBB0_5:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.23:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_6:
	movq	(%rbx), %rax
	movq	_ASN1_ITYPE_MSTRING@GOTPCREL(%rip), %r13
	movl	$-1, %r12d
	cmpq	(%r13), %rax
	jne	LBB0_7
LBB0_15:
	testl	%edx, %edx
	je	LBB0_17
## %bb.16:
	movq	(%r14), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	%r12d, (%r15)
	movq	_ASN1_STRING_FLAG_EMBED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	jmp	LBB0_18
LBB0_7:
	movl	8(%rbx), %r12d
	leal	-128(%r12), %eax
	cmpl	$3, %eax
	ja	LBB0_15
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	_NID_undef@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OBJ_nid2obj
	movq	%rax, (%r14)
	movl	$1, %r15d
	jmp	LBB0_22
LBB0_17:
	movl	%r12d, %edi
	callq	_ASN1_STRING_type_new
	movq	%rax, %r15
	movq	%rax, (%r14)
LBB0_18:
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_21
## %bb.19:
	testq	%r15, %r15
	je	LBB0_21
## %bb.20:
	movq	_ASN1_STRING_FLAG_MSTRING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
LBB0_21:
	xorl	%r15d, %r15d
	cmpq	$0, (%r14)
	setne	%r15b
LBB0_22:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	$1, (%r14)
	movl	$1, %r15d
	jmp	LBB0_22
LBB0_10:
	movl	12(%rbx), %eax
	movl	%eax, (%r14)
	movl	$1, %r15d
	jmp	LBB0_22
LBB0_12:
	movl	$16, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	$0, 8(%rax)
	movl	$-1, (%rax)
	movq	%rax, (%r14)
	jmp	LBB0_21
LBB0_13:
	movq	_ASN1_F_ASN1_PRIMITIVE_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_ASN1_ITYPE_MSTRING,8,3         ## @ASN1_ITYPE_MSTRING
	.comm	_NID_undef,4,2                  ## @NID_undef
	.comm	_ASN1_F_ASN1_PRIMITIVE_NEW,4,2  ## @ASN1_F_ASN1_PRIMITIVE_NEW
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ASN1_STRING_FLAG_EMBED,4,2     ## @ASN1_STRING_FLAG_EMBED
	.comm	_ASN1_STRING_FLAG_MSTRING,4,2   ## @ASN1_STRING_FLAG_MSTRING
	.no_dead_strip	_asn1_primitive_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asn1_primitive_new
_asn1_primitive_new:                    ; @asn1_primitive_new
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x1, LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_8
; %bb.2:
	cbz	w2, LBB0_6
; %bb.3:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	w0, #1
	b	LBB0_19
LBB0_5:
	mov	w0, #0
	b	LBB0_19
LBB0_6:
	ldr	x3, [x8]
	cbz	x3, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x3
LBB0_8:
	ldr	x8, [x20]
Lloh0:
	adrp	x23, _ASN1_ITYPE_MSTRING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ASN1_ITYPE_MSTRING@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.9:
	mov	w22, #-1
LBB0_10:
	cbz	w2, LBB0_15
; %bb.11:
	ldr	x21, [x19]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	w22, [x21]
Lloh2:
	adrp	x8, _ASN1_STRING_FLAG_EMBED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ASN1_STRING_FLAG_EMBED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	b	LBB0_16
LBB0_12:
	ldr	w22, [x20, #8]
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.13:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_14
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_14:
Lloh7:
	adrp	x8, _NID_undef@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NID_undef@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_OBJ_nid2obj
	str	x0, [x19]
	mov	w0, #1
	b	LBB0_19
LBB0_15:
	mov	x0, x22
	bl	_ASN1_STRING_type_new
	mov	x21, x0
	str	x0, [x19]
LBB0_16:
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	ccmp	x21, #0, #4, eq
	b.eq	LBB0_18
; %bb.17:
Lloh10:
	adrp	x8, _ASN1_STRING_FLAG_MSTRING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ASN1_STRING_FLAG_MSTRING@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	str	w8, [x21, #4]
LBB0_18:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
LBB0_19:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	w0, #1
	str	x0, [x19]
	b	LBB0_19
LBB0_21:
	ldr	w8, [x20, #12]
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_19
LBB0_22:
	mov	w0, #16
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_24
; %bb.23:
	str	xzr, [x0, #8]
	mov	w8, #-1
	str	w8, [x0]
	str	x0, [x19]
	b	LBB0_18
LBB0_24:
Lloh13:
	adrp	x8, _ASN1_F_ASN1_PRIMITIVE_NEW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ASN1_F_ASN1_PRIMITIVE_NEW@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_ASN1err
	mov	w0, #0
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_20-LBB0_14)>>2
	.byte	(LBB0_21-LBB0_14)>>2
	.byte	(LBB0_22-LBB0_14)>>2
                                        ; -- End function
	.comm	_ASN1_ITYPE_MSTRING,8,3         ; @ASN1_ITYPE_MSTRING
	.comm	_NID_undef,4,2                  ; @NID_undef
	.comm	_ASN1_F_ASN1_PRIMITIVE_NEW,4,2  ; @ASN1_F_ASN1_PRIMITIVE_NEW
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ASN1_STRING_FLAG_EMBED,4,2     ; @ASN1_STRING_FLAG_EMBED
	.comm	_ASN1_STRING_FLAG_MSTRING,4,2   ; @ASN1_STRING_FLAG_MSTRING
	.no_dead_strip	_asn1_primitive_new
.subsections_via_symbols
