	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_atfork                    ## -- Begin function _thr_atfork
	.p2align	4, 0x90
__thr_atfork:                           ## @_thr_atfork
	.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
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	__thr_check_init
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	__get_curthread
	movq	%rax, %r14
	movq	%r13, (%rbx)
	movq	%r12, 8(%rbx)
	movq	%r15, 16(%rbx)
	movq	%rax, %rdi
	callq	_THR_CRITICAL_ENTER
	movq	__thr_atfork_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	__thr_rwl_wrlock
	movq	_qe@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	__thr_atfork_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	%r15, %rdi
	callq	__thr_rwl_unlock
	movq	%r14, %rdi
	xorl	%ebx, %ebx
	callq	_THR_CRITICAL_LEAVE
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	__thr_atfork_lock,4,2           ## @_thr_atfork_lock
	.comm	__thr_atfork_list,4,2           ## @_thr_atfork_list
	.comm	_qe,4,2                         ## @qe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_atfork                    ; -- Begin function _thr_atfork
	.p2align	2
__thr_atfork:                           ; @_thr_atfork
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	__thr_check_init
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	__get_curthread
	mov	x23, x0
	stp	x22, x21, [x19]
	str	x20, [x19, #16]
	bl	_THR_CRITICAL_ENTER
Lloh0:
	adrp	x20, __thr_atfork_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, __thr_atfork_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	__thr_rwl_wrlock
Lloh2:
	adrp	x8, _qe@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qe@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x0, __thr_atfork_list@GOTPAGE
Lloh6:
	ldr	x0, [x0, __thr_atfork_list@GOTPAGEOFF]
	mov	x1, x19
	bl	_TAILQ_INSERT_TAIL
	mov	x0, x20
	bl	__thr_rwl_unlock
	mov	x0, x23
	bl	_THR_CRITICAL_LEAVE
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_3:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	__thr_atfork_lock,4,2           ; @_thr_atfork_lock
	.comm	__thr_atfork_list,4,2           ; @_thr_atfork_list
	.comm	_qe,4,2                         ; @qe
.subsections_via_symbols
