	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASYNC_init_thread              ## -- Begin function ASYNC_init_thread
	.p2align	4, 0x90
_ASYNC_init_thread:                     ## @ASYNC_init_thread
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	%rdi, %rsi
	jbe	LBB0_2
## %bb.1:
	movq	_ASYNC_F_ASYNC_INIT_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASYNC_R_INVALID_POOL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASYNCerr
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_2:
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_OPENSSL_INIT_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_OPENSSL_init_crypto
	testl	%eax, %eax
	je	LBB0_17
## %bb.3:
	movq	_OPENSSL_INIT_THREAD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ossl_init_thread_start
	testl	%eax, %eax
	je	LBB0_17
## %bb.4:
	movl	$24, %edi
	callq	_OPENSSL_zalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_sk_ASYNC_JOB_new_reserve
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, (%r14)
	xorl	%r15d, %r15d
	testq	%r12, %r12
	je	LBB0_14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_async_job_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_async_fibre_makecontext
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	$0, (%rbx)
	movq	16(%r14), %rdi
	movq	%rbx, %rsi
	callq	_sk_ASYNC_JOB_push
	incq	%r15
	cmpq	%r15, %r12
	jne	LBB0_9
## %bb.13:
	movq	%r12, %r15
	jmp	LBB0_14
LBB0_5:
	movq	_ASYNC_F_ASYNC_INIT_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASYNCerr
	jmp	LBB0_17
LBB0_7:
	movq	_ASYNC_F_ASYNC_INIT_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASYNCerr
	movq	%r14, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_17
LBB0_11:
	movq	%rbx, %rdi
	callq	_async_job_free
LBB0_14:
	movq	%r15, 8(%r14)
	movq	_poolkey@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_CRYPTO_THREAD_set_local
	movl	$1, %r15d
	testl	%eax, %eax
	je	LBB0_15
LBB0_17:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_ASYNC_F_ASYNC_INIT_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASYNC_R_FAILED_TO_SET_POOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASYNCerr
	movq	%r14, %rdi
	callq	_async_empty_pool
	movq	16(%r14), %rdi
	callq	_sk_ASYNC_JOB_free
	movq	%r14, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ASYNC_F_ASYNC_INIT_THREAD,4,2  ## @ASYNC_F_ASYNC_INIT_THREAD
	.comm	_ASYNC_R_INVALID_POOL_SIZE,4,2  ## @ASYNC_R_INVALID_POOL_SIZE
	.comm	_OPENSSL_INIT_ASYNC,4,2         ## @OPENSSL_INIT_ASYNC
	.comm	_OPENSSL_INIT_THREAD_ASYNC,4,2  ## @OPENSSL_INIT_THREAD_ASYNC
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_poolkey,4,2                    ## @poolkey
	.comm	_ASYNC_R_FAILED_TO_SET_POOL,4,2 ## @ASYNC_R_FAILED_TO_SET_POOL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASYNC_init_thread              ; -- Begin function ASYNC_init_thread
	.p2align	2
_ASYNC_init_thread:                     ; @ASYNC_init_thread
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	x1, x0
	b.ls	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ASYNC_F_ASYNC_INIT_THREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASYNC_F_ASYNC_INIT_THREAD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ASYNC_R_INVALID_POOL_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASYNC_R_INVALID_POOL_SIZE@GOTPAGEOFF]
LBB0_2:
	ldr	w1, [x8]
	bl	_ASYNCerr
LBB0_3:
	mov	w0, #0
	b	LBB0_18
LBB0_4:
	mov	x20, x1
	mov	x21, x0
Lloh5:
	adrp	x8, _OPENSSL_INIT_ASYNC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OPENSSL_INIT_ASYNC@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_OPENSSL_init_crypto
	cbz	w0, LBB0_18
; %bb.5:
Lloh8:
	adrp	x8, _OPENSSL_INIT_THREAD_ASYNC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OPENSSL_INIT_THREAD_ASYNC@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_ossl_init_thread_start
	cbz	w0, LBB0_18
; %bb.6:
	mov	w0, #24
	bl	_OPENSSL_zalloc
	cbz	x0, LBB0_13
; %bb.7:
	mov	x19, x0
	mov	x0, #0
	mov	x1, x20
	bl	_sk_ASYNC_JOB_new_reserve
	str	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.8:
	str	x21, [x19]
	mov	x22, #0
	cbz	x20, LBB0_16
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	bl	_async_job_new
	mov	x21, x0
	cbz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x21, #8
	bl	_async_fibre_makecontext
	cbz	w0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [x21]
	ldr	x0, [x19, #16]
	mov	x1, x21
	bl	_sk_ASYNC_JOB_push
	add	x22, x22, #1
	cmp	x20, x22
	b.ne	LBB0_9
; %bb.12:
	mov	x22, x20
	b	LBB0_16
LBB0_13:
Lloh11:
	adrp	x8, _ASYNC_F_ASYNC_INIT_THREAD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ASYNC_F_ASYNC_INIT_THREAD@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_2
LBB0_14:
Lloh16:
	adrp	x8, _ASYNC_F_ASYNC_INIT_THREAD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ASYNC_F_ASYNC_INIT_THREAD@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_ASYNCerr
	b	LBB0_20
LBB0_15:
	mov	x0, x21
	bl	_async_job_free
LBB0_16:
	str	x22, [x19, #8]
Lloh22:
	adrp	x0, _poolkey@GOTPAGE
Lloh23:
	ldr	x0, [x0, _poolkey@GOTPAGEOFF]
	mov	x1, x19
	bl	_CRYPTO_THREAD_set_local
	cbz	w0, LBB0_19
; %bb.17:
	mov	w0, #1
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh24:
	adrp	x8, _ASYNC_F_ASYNC_INIT_THREAD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ASYNC_F_ASYNC_INIT_THREAD@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _ASYNC_R_FAILED_TO_SET_POOL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ASYNC_R_FAILED_TO_SET_POOL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_ASYNCerr
	mov	x0, x19
	bl	_async_empty_pool
	ldr	x0, [x19, #16]
	bl	_sk_ASYNC_JOB_free
LBB0_20:
	mov	x0, x19
	bl	_OPENSSL_free
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ASYNC_F_ASYNC_INIT_THREAD,4,2  ; @ASYNC_F_ASYNC_INIT_THREAD
	.comm	_ASYNC_R_INVALID_POOL_SIZE,4,2  ; @ASYNC_R_INVALID_POOL_SIZE
	.comm	_OPENSSL_INIT_ASYNC,4,2         ; @OPENSSL_INIT_ASYNC
	.comm	_OPENSSL_INIT_THREAD_ASYNC,4,2  ; @OPENSSL_INIT_THREAD_ASYNC
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_poolkey,4,2                    ; @poolkey
	.comm	_ASYNC_R_FAILED_TO_SET_POOL,4,2 ; @ASYNC_R_FAILED_TO_SET_POOL
.subsections_via_symbols
