	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_child                  ## -- Begin function prepare_child
	.p2align	4, 0x90
_prepare_child:                         ## @prepare_child
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	movl	%esi, %edi
	xorl	%esi, %esi
	callq	_dup2
LBB0_2:
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_dup2
LBB0_4:
	movq	_NSIG@GOTPCREL(%rip), %r15
	cmpl	$2, (%r15)
	jl	LBB0_10
## %bb.5:
	movl	$1, %ebx
	movq	_SIG_IGN@GOTPCREL(%rip), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_sigismember
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_signal
	jmp	LBB0_9
LBB0_10:
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sigismember
	testq	%rax, %rax
	jne	LBB0_13
LBB0_12:
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_DFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
LBB0_13:
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sigemptyset
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NSIG,4,2                       ## @NSIG
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_child                  ; -- Begin function prepare_child
	.p2align	2
_prepare_child:                         ; @prepare_child
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x19, x0
	tbnz	w1, #31, LBB0_2
; %bb.1:
	mov	x0, x1
	mov	w1, #0
	bl	_dup2
LBB0_2:
	tbnz	w20, #31, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #1
	bl	_dup2
LBB0_4:
Lloh0:
	adrp	x21, _NSIG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NSIG@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.5:
	mov	w20, #1
Lloh2:
	adrp	x22, _SIG_IGN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SIG_IGN@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x19, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_sigismember
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_signal
	b	LBB0_6
LBB0_10:
Lloh4:
	adrp	x20, _SIGINT@GOTPAGE
Lloh5:
	ldr	x20, [x20, _SIGINT@GOTPAGEOFF]
	cbz	x19, LBB0_12
; %bb.11:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sigismember
	cbnz	x0, LBB0_13
LBB0_12:
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _SIG_DFL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIG_DFL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_signal
LBB0_13:
	add	x0, sp, #12
	bl	_sigemptyset
Lloh9:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	x2, #0
	bl	_sigprocmask
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NSIG,4,2                       ; @NSIG
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
.subsections_via_symbols
