	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asn1_do_lock                   ## -- Begin function asn1_do_lock
	.p2align	4, 0x90
_asn1_do_lock:                          ## @asn1_do_lock
	.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	%esi, %r15d
	movq	%rdi, %r14
	movl	$-1, -36(%rbp)
	movq	(%rdx), %rcx
	movq	_ASN1_ITYPE_SEQUENCE@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rcx
	je	LBB0_2
## %bb.1:
	movq	_ASN1_ITYPE_NDEF_SEQUENCE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_14
LBB0_2:
	movq	16(%rdx), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.3:
	movq	_ASN1_AFLG_REFCOUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_14
## %bb.4:
	movq	(%r14), %rdi
	movl	8(%rbx), %esi
	callq	_offset2ptr
	movq	%rax, %r12
	movq	(%r14), %rdi
	movl	4(%rbx), %esi
	callq	_offset2ptr
	movq	%rax, %r14
	cmpl	$-1, %r15d
	je	LBB0_9
## %bb.5:
	cmpl	$1, %r15d
	je	LBB0_12
## %bb.6:
	testl	%r15d, %r15d
	jne	LBB0_13
## %bb.7:
	movl	$1, -36(%rbp)
	movl	$1, (%r12)
	xorl	%eax, %eax
	callq	_CRYPTO_THREAD_lock_new
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	movq	_ASN1_F_ASN1_DO_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_9:
	movq	(%r14), %rdx
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_CRYPTO_DOWN_REF
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	movl	-36(%rbp), %edi
	shrl	$31, %edi
	callq	_REF_ASSERT_ISNT
	cmpl	$0, -36(%rbp)
	jne	LBB0_13
## %bb.11:
	movq	(%r14), %rdi
	callq	_CRYPTO_THREAD_lock_free
	movq	$0, (%r14)
	jmp	LBB0_13
LBB0_12:
	movq	(%r14), %rdx
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_CRYPTO_UP_REF
	testl	%eax, %eax
	je	LBB0_16
LBB0_13:
	movl	-36(%rbp), %eax
	jmp	LBB0_14
LBB0_16:
	movl	$-1, %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_ITYPE_SEQUENCE,8,3        ## @ASN1_ITYPE_SEQUENCE
	.comm	_ASN1_ITYPE_NDEF_SEQUENCE,8,3   ## @ASN1_ITYPE_NDEF_SEQUENCE
	.comm	_ASN1_AFLG_REFCOUNT,4,2         ## @ASN1_AFLG_REFCOUNT
	.comm	_ASN1_F_ASN1_DO_LOCK,4,2        ## @ASN1_F_ASN1_DO_LOCK
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asn1_do_lock                   ; -- Begin function asn1_do_lock
	.p2align	2
_asn1_do_lock:                          ; @asn1_do_lock
	.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	w8, #-1
	str	w8, [sp, #12]
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _ASN1_ITYPE_SEQUENCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ASN1_ITYPE_SEQUENCE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ASN1_ITYPE_NDEF_SEQUENCE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ASN1_ITYPE_NDEF_SEQUENCE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.1:
	ldr	x22, [x2, #16]
	cbz	x22, LBB0_8
; %bb.2:
	ldr	w8, [x22]
Lloh6:
	adrp	x9, _ASN1_AFLG_REFCOUNT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ASN1_AFLG_REFCOUNT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.3:
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	ldr	w1, [x22, #8]
	bl	_offset2ptr
	mov	x21, x0
	ldr	x0, [x19]
	ldr	w1, [x22, #4]
	bl	_offset2ptr
	mov	x19, x0
	cmn	w20, #1
	b.eq	LBB0_10
; %bb.4:
	cmp	w20, #1
	b.eq	LBB0_13
; %bb.5:
	cbnz	w20, LBB0_14
; %bb.6:
	mov	w8, #1
	str	w8, [sp, #12]
	str	w8, [x21]
	bl	_CRYPTO_THREAD_lock_new
	str	x0, [x19]
	cbnz	x0, LBB0_14
; %bb.7:
Lloh9:
	adrp	x8, _ASN1_F_ASN1_DO_LOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ASN1_F_ASN1_DO_LOCK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_ASN1err
	mov	w0, #-1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
LBB0_10:
	ldr	x2, [x19]
	add	x1, sp, #12
	mov	x0, x21
	bl	_CRYPTO_DOWN_REF
	cbz	w0, LBB0_15
; %bb.11:
	ldr	w8, [sp, #12]
	lsr	w0, w8, #31
	bl	_REF_ASSERT_ISNT
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_14
; %bb.12:
	ldr	x0, [x19]
	bl	_CRYPTO_THREAD_lock_free
	str	xzr, [x19]
	b	LBB0_14
LBB0_13:
	ldr	x2, [x19]
	add	x1, sp, #12
	mov	x0, x21
	bl	_CRYPTO_UP_REF
	cbz	w0, LBB0_15
LBB0_14:
	ldr	w0, [sp, #12]
	b	LBB0_9
LBB0_15:
	mov	w0, #-1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_ITYPE_SEQUENCE,8,3        ; @ASN1_ITYPE_SEQUENCE
	.comm	_ASN1_ITYPE_NDEF_SEQUENCE,8,3   ; @ASN1_ITYPE_NDEF_SEQUENCE
	.comm	_ASN1_AFLG_REFCOUNT,4,2         ; @ASN1_AFLG_REFCOUNT
	.comm	_ASN1_F_ASN1_DO_LOCK,4,2        ; @ASN1_F_ASN1_DO_LOCK
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
