	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rand_drbg_enable_locking       ## -- Begin function rand_drbg_enable_locking
	.p2align	4, 0x90
_rand_drbg_enable_locking:              ## @rand_drbg_enable_locking
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_DRBG_UNINITIALISED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	$1, %r14d
	cmpq	$0, 8(%rdi)
	jne	LBB0_9
## %bb.3:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpq	$0, (%rax)
	je	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	callq	_CRYPTO_THREAD_lock_new
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	_RAND_R_FAILED_TO_CREATE_LOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_RAND_R_DRBG_ALREADY_INITIALIZED@GOTPCREL(%rip), %rax
LBB0_8:
	movq	_RAND_F_RAND_DRBG_ENABLE_LOCKING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_RANDerr
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_RAND_R_PARENT_LOCKING_NOT_ENABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_DRBG_UNINITIALISED,8,3         ## @DRBG_UNINITIALISED
	.comm	_RAND_F_RAND_DRBG_ENABLE_LOCKING,4,2 ## @RAND_F_RAND_DRBG_ENABLE_LOCKING
	.comm	_RAND_R_DRBG_ALREADY_INITIALIZED,4,2 ## @RAND_R_DRBG_ALREADY_INITIALIZED
	.comm	_RAND_R_PARENT_LOCKING_NOT_ENABLED,4,2 ## @RAND_R_PARENT_LOCKING_NOT_ENABLED
	.comm	_RAND_R_FAILED_TO_CREATE_LOCK,4,2 ## @RAND_R_FAILED_TO_CREATE_LOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rand_drbg_enable_locking       ; -- Begin function rand_drbg_enable_locking
	.p2align	2
_rand_drbg_enable_locking:              ; @rand_drbg_enable_locking
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DRBG_UNINITIALISED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRBG_UNINITIALISED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
LBB0_4:
	bl	_CRYPTO_THREAD_lock_new
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
LBB0_5:
	mov	w0, #1
	b	LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _RAND_R_DRBG_ALREADY_INITIALIZED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RAND_R_DRBG_ALREADY_INITIALIZED@GOTPAGEOFF]
LBB0_7:
Lloh5:
	adrp	x9, _RAND_F_RAND_DRBG_ENABLE_LOCKING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RAND_F_RAND_DRBG_ENABLE_LOCKING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_RANDerr
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh8:
	adrp	x8, _RAND_R_FAILED_TO_CREATE_LOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RAND_R_FAILED_TO_CREATE_LOCK@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
Lloh10:
	adrp	x8, _RAND_R_PARENT_LOCKING_NOT_ENABLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RAND_R_PARENT_LOCKING_NOT_ENABLED@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRBG_UNINITIALISED,8,3         ; @DRBG_UNINITIALISED
	.comm	_RAND_F_RAND_DRBG_ENABLE_LOCKING,4,2 ; @RAND_F_RAND_DRBG_ENABLE_LOCKING
	.comm	_RAND_R_DRBG_ALREADY_INITIALIZED,4,2 ; @RAND_R_DRBG_ALREADY_INITIALIZED
	.comm	_RAND_R_PARENT_LOCKING_NOT_ENABLED,4,2 ; @RAND_R_PARENT_LOCKING_NOT_ENABLED
	.comm	_RAND_R_FAILED_TO_CREATE_LOCK,4,2 ; @RAND_R_FAILED_TO_CREATE_LOCK
.subsections_via_symbols
