	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__rtld_atfork_pre               ## -- Begin function _rtld_atfork_pre
	.p2align	4, 0x90
__rtld_atfork_pre:                      ## @_rtld_atfork_pre
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_rtld_phdr_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rsi
	callq	_wlock_acquire
	movq	_rtld_bind_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-20(%rbp), %rsi
	callq	_wlock_acquire
	movl	-20(%rbp), %eax
	movl	%eax, (%rbx)
	movl	-24(%rbp), %eax
	movl	%eax, 8(%rbx)
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_rtld_phdr_lock,4,2             ## @rtld_phdr_lock
	.comm	_rtld_bind_lock,4,2             ## @rtld_bind_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__rtld_atfork_pre               ; -- Begin function _rtld_atfork_pre
	.p2align	2
__rtld_atfork_pre:                      ; @_rtld_atfork_pre
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _rtld_phdr_lock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rtld_phdr_lock@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x20, sp
	mov	x1, sp
	bl	_wlock_acquire
Lloh6:
	adrp	x8, _rtld_bind_lock@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rtld_bind_lock@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	orr	x1, x20, #0x4
	bl	_wlock_acquire
	ldp	w9, w8, [sp]
	str	w8, [x19]
	str	w9, [x19, #8]
LBB0_2:
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_rtld_phdr_lock,4,2             ; @rtld_phdr_lock
	.comm	_rtld_bind_lock,4,2             ; @rtld_bind_lock
.subsections_via_symbols
