	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_popredir                       ## -- Begin function popredir
	.p2align	4, 0x90
_popredir:                              ## @popredir
	.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	_empty_redirs@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	jle	LBB0_1
## %bb.9:
	decq	%rax
	movq	%rax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_redirlist@GOTPCREL(%rip), %r12
	movq	(%r12), %r14
	xorl	%ebx, %ebx
	movq	_EMPTY@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %esi
	callq	_dup2
	movq	(%r14), %rax
	movl	(%rax,%rbx,8), %edi
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_close
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	$10, %rbx
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	cmpq	(%r13), %rdi
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rdi, %rdi
	jns	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	jmp	LBB0_6
LBB0_8:
	movl	24(%r14), %eax
	movq	_fd0_redirected@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	8(%r14), %rax
	movq	%rax, (%r15)
	movq	16(%r14), %rax
	movq	%rax, (%r12)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ckfree                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_redirlist,8,3                  ## @redirlist
	.comm	_INTOFF,4,2                     ## @INTOFF
	.comm	_empty_redirs,8,3               ## @empty_redirs
	.comm	_INTON,4,2                      ## @INTON
	.comm	_EMPTY,8,3                      ## @EMPTY
	.comm	_fd0_redirected,4,2             ## @fd0_redirected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_popredir                       ; -- Begin function popredir
	.p2align	2
_popredir:                              ; @popredir
	.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
Lloh0:
	adrp	x21, _empty_redirs@GOTPAGE
Lloh1:
	ldr	x21, [x21, _empty_redirs@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #0
	b.le	LBB0_2
; %bb.1:
	sub	x8, x8, #1
	str	x8, [x21]
	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
LBB0_2:
	mov	x20, #0
Lloh2:
	adrp	x22, _redirlist@GOTPAGE
Lloh3:
	ldr	x22, [x22, _redirlist@GOTPAGEOFF]
	ldr	x19, [x22]
Lloh4:
	adrp	x23, _EMPTY@GOTPAGE
Lloh5:
	ldr	x23, [x23, _EMPTY@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x20
	bl	_dup2
	ldr	x8, [x19]
	ldr	x0, [x8, x20, lsl #3]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_close
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	cmp	x20, #10
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x20, lsl #3]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	tbz	x0, #63, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	b	LBB0_4
LBB0_9:
	ldr	w8, [x19, #24]
Lloh6:
	adrp	x9, _fd0_redirected@GOTPAGE
Lloh7:
	ldr	x9, [x9, _fd0_redirected@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	ldp	x8, x9, [x19, #8]
	str	x8, [x21]
	str	x9, [x22]
	mov	x0, x19
	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
	b	_ckfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_redirlist,8,3                  ; @redirlist
	.comm	_INTOFF,4,2                     ; @INTOFF
	.comm	_empty_redirs,8,3               ; @empty_redirs
	.comm	_INTON,4,2                      ; @INTON
	.comm	_EMPTY,8,3                      ; @EMPTY
	.comm	_fd0_redirected,4,2             ; @fd0_redirected
.subsections_via_symbols
