	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_broken_pipe
_ctrl_broken_pipe:                      ## @ctrl_broken_pipe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PeekNamedPipe
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_BROKEN_PIPE@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_ERROR_BAD_PIPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%al
	testl	%r14d, %r14d
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_BROKEN_PIPE,8,3          ## @ERROR_BROKEN_PIPE
	.comm	_ERROR_BAD_PIPE,8,3             ## @ERROR_BAD_PIPE
	.no_dead_strip	_ctrl_broken_pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_broken_pipe
_ctrl_broken_pipe:                      ; @ctrl_broken_pipe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_PeekNamedPipe
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_4
; %bb.1:
	bl	_GetLastError
Lloh0:
	adrp	x8, _ERROR_BROKEN_PIPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR_BROKEN_PIPE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #1
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _ERROR_BAD_PIPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR_BAD_PIPE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	w19, #0
	ccmp	x0, x8, #0, ne
	cset	w0, eq
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_BROKEN_PIPE,8,3          ; @ERROR_BROKEN_PIPE
	.comm	_ERROR_BAD_PIPE,8,3             ; @ERROR_BAD_PIPE
	.no_dead_strip	_ctrl_broken_pipe
.subsections_via_symbols
