	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pipe_read_line
_pipe_read_line:                        ## @pipe_read_line
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_errno@GOTPCREL(%rip), %r13
	movq	$0, (%r13)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_popen
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	$0, (%r13)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_pclose_check
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	cmoveq	%r15, %rax
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
LBB0_5:
	movq	%rbx, %rdi
	callq	_pclose
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	jmp	LBB0_6
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.comm	_stderr,4,2                     ## @stderr
	.comm	_errno,8,3                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"popen failure"

L_.str.2:                               ## @.str.2
	.asciz	"no data was returned by command \"%s\"\n"

L_.str.3:                               ## @.str.3
	.asciz	"fgets failure"

	.comm	_DUPLICATE_SAME_ACCESS,4,2      ## @DUPLICATE_SAME_ACCESS
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_INVALID_HANDLE_VALUE,4,2       ## @INVALID_HANDLE_VALUE
	.comm	_STARTF_USESTDHANDLES,4,2       ## @STARTF_USESTDHANDLES
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_WAIT_OBJECT_0,8,3              ## @WAIT_OBJECT_0
	.no_dead_strip	_pipe_read_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pipe_read_line
_pipe_read_line:                        ; @pipe_read_line
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _stdout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_fflush
Lloh3:
	adrp	x23, _stderr@GOTPAGE
Lloh4:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_fflush
Lloh5:
	adrp	x24, _errno@GOTPAGE
Lloh6:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	str	xzr, [x24]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_popen
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	str	xzr, [x24]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_fgets
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_pclose_check
	cmp	x0, #0
	csel	x0, x20, xzr, eq
	b	LBB0_7
LBB0_3:
	mov	x0, x21
	bl	_feof
	cbz	x0, LBB0_9
; %bb.4:
	ldr	w0, [x23]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_5:
	mov	x0, x21
	bl	_pclose
LBB0_6:
	mov	x0, #0
LBB0_7:
	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_8:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_6
LBB0_9:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	b	LBB0_5
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.comm	_stderr,4,2                     ; @stderr
	.comm	_errno,8,3                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"popen failure"

l_.str.2:                               ; @.str.2
	.asciz	"no data was returned by command \"%s\"\n"

l_.str.3:                               ; @.str.3
	.asciz	"fgets failure"

	.comm	_DUPLICATE_SAME_ACCESS,4,2      ; @DUPLICATE_SAME_ACCESS
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_INVALID_HANDLE_VALUE,4,2       ; @INVALID_HANDLE_VALUE
	.comm	_STARTF_USESTDHANDLES,4,2       ; @STARTF_USESTDHANDLES
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_WAIT_OBJECT_0,8,3              ; @WAIT_OBJECT_0
	.no_dead_strip	_pipe_read_line
.subsections_via_symbols
