	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ossl_init_thread_start         ## -- Begin function ossl_init_thread_start
	.p2align	4, 0x90
_ossl_init_thread_start:                ## @ossl_init_thread_start
	.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
	movl	%edi, %r14d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_OPENSSL_init_crypto
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	$1, %edi
	callq	_ossl_init_get_thread_local
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	_OPENSSL_INIT_THREAD_ASYNC@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	$1, (%rax)
LBB0_4:
	movq	_OPENSSL_INIT_THREAD_ERR_STATE@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_6
## %bb.5:
	movl	$1, 4(%rax)
LBB0_6:
	movq	_OPENSSL_INIT_THREAD_RAND@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	testl	%r14d, (%rcx)
	je	LBB0_8
## %bb.7:
	movl	$1, 8(%rax)
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPENSSL_INIT_THREAD_ASYNC,4,2  ## @OPENSSL_INIT_THREAD_ASYNC
	.comm	_OPENSSL_INIT_THREAD_ERR_STATE,4,2 ## @OPENSSL_INIT_THREAD_ERR_STATE
	.comm	_OPENSSL_INIT_THREAD_RAND,4,2   ## @OPENSSL_INIT_THREAD_RAND
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ossl_init_thread_start         ; -- Begin function ossl_init_thread_start
	.p2align	2
_ossl_init_thread_start:                ; @ossl_init_thread_start
	.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
	mov	x19, x0
	mov	w0, #0
	mov	x1, #0
	bl	_OPENSSL_init_crypto
	cbz	w0, LBB0_8
; %bb.1:
	mov	w0, #1
	bl	_ossl_init_get_thread_local
	cbz	x0, LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _OPENSSL_INIT_THREAD_ASYNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPENSSL_INIT_THREAD_ASYNC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x0]
LBB0_4:
Lloh3:
	adrp	x8, _OPENSSL_INIT_THREAD_ERR_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPENSSL_INIT_THREAD_ERR_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x0, #4]
LBB0_6:
Lloh6:
	adrp	x8, _OPENSSL_INIT_THREAD_RAND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPENSSL_INIT_THREAD_RAND@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	mov	w8, #1
	tst	w9, w19
	b.eq	LBB0_9
; %bb.7:
	str	w8, [x0, #8]
	b	LBB0_9
LBB0_8:
	mov	w8, #0
LBB0_9:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OPENSSL_INIT_THREAD_ASYNC,4,2  ; @OPENSSL_INIT_THREAD_ASYNC
	.comm	_OPENSSL_INIT_THREAD_ERR_STATE,4,2 ; @OPENSSL_INIT_THREAD_ERR_STATE
	.comm	_OPENSSL_INIT_THREAD_RAND,4,2   ; @OPENSSL_INIT_THREAD_RAND
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
