	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_thread__fork                   ## -- Begin function thread__fork
	.p2align	4, 0x90
_thread__fork:                          ## @thread__fork
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	cmpl	$0, (%rsi)
	je	LBB0_5
## %bb.1:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_free
LBB0_3:
	movq	8(%r14), %rdi
	callq	_strdup
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movl	$1, (%r15)
LBB0_5:
	movq	_MAP__NR_TYPES@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_11
## %bb.6:
	addq	$4, %r15
	addq	$4, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_map_groups__clone
	testq	%rax, %rax
	js	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_7
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAP__NR_TYPES,4,2              ## @MAP__NR_TYPES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_thread__fork                   ; -- Begin function thread__fork
	.p2align	2
_thread__fork:                          ; @thread__fork
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_free
LBB0_3:
	ldr	x0, [x19, #8]
	bl	_strdup
	str	x0, [x20, #8]
	cbz	x0, LBB0_10
; %bb.4:
	mov	w8, #1
	str	w8, [x20]
LBB0_5:
Lloh0:
	adrp	x22, _MAP__NR_TYPES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAP__NR_TYPES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	w21, #0
	add	x20, x20, #4
	add	x19, x19, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_map_groups__clone
	tbnz	x0, #63, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_7
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAP__NR_TYPES,4,2              ; @MAP__NR_TYPES
.subsections_via_symbols
