	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdes_child
_pdes_child:                            ## @pdes_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_pidlist@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %edi
	callq	_fileno
	movl	%eax, %edi
	callq	_close
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_1
LBB0_3:
	cmpb	$114, (%r14)
	jne	LBB0_8
## %bb.4:
	movl	(%r15), %edi
	callq	_close
	movl	4(%r15), %edi
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	cmpl	%esi, %edi
	je	LBB0_6
## %bb.5:
	callq	_dup2
	movl	4(%r15), %edi
	callq	_close
LBB0_6:
	cmpb	$43, 1(%r14)
	jne	LBB0_9
## %bb.7:
	movl	(%rbx), %edi
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dup2                           ## TAILCALL
LBB0_8:
	movl	4(%r15), %edi
	callq	_close
	movl	(%r15), %edi
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%esi, %edi
	jne	LBB0_10
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	_dup2
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pidlist,8,3                    ## @pidlist
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.no_dead_strip	_pdes_child
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdes_child
_pdes_child:                            ; @pdes_child
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _pidlist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pidlist@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	cbz	x21, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #4]
	bl	_fileno
	bl	_close
	ldr	x21, [x21, #8]
	cbnz	x21, LBB0_1
LBB0_2:
	ldrb	w8, [x20]
	cmp	w8, #114
	b.ne	LBB0_7
; %bb.3:
	ldr	w0, [x19]
	bl	_close
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x21, _STDOUT_FILENO@GOTPAGE
Lloh4:
	ldr	x21, [x21, _STDOUT_FILENO@GOTPAGEOFF]
	ldr	w1, [x21]
	cmp	w0, w1
	b.eq	LBB0_5
; %bb.4:
	bl	_dup2
	ldr	w0, [x19, #4]
	bl	_close
LBB0_5:
	ldrb	w8, [x20, #1]
	cmp	w8, #43
	b.ne	LBB0_8
; %bb.6:
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	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
	b	_dup2
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_close
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	cmp	w0, w1
	b.ne	LBB0_9
LBB0_8:
	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_9:
	bl	_dup2
	ldr	w0, [x19]
	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
	b	_close
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_pidlist,8,3                    ; @pidlist
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.no_dead_strip	_pdes_child
.subsections_via_symbols
