	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps_pclose
_ps_pclose:                             ## @ps_pclose
	.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
	movq	_PS_INLINE@GOTPCREL(%rip), %r14
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	testl	%ecx, (%r14)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	_TERMTYPE_PS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdi), %rcx
	jne	LBB0_2
## %bb.4:
	movq	8(%rax), %rcx
	cmpq	16(%rax), %rcx
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%rbx, %rdi
	callq	_ps_printf
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ps_printf
	movq	8(%rbx), %rax
	movq	8(%rax), %rcx
	movq	%rcx, 16(%rax)
LBB0_7:
	movl	(%r14), %eax
	notl	%eax
	movq	8(%rbx), %rcx
	andl	%eax, (%rcx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_INLINE,4,2                  ## @PS_INLINE
	.comm	_TERMTYPE_PS,8,3                ## @TERMTYPE_PS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	") Tj\nET\n"

L_.str.1:                               ## @.str.1
	.asciz	")c\n"

L_.str.2:                               ## @.str.2
	.asciz	")s\n"

	.no_dead_strip	_ps_pclose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps_pclose
_ps_pclose:                             ; @ps_pclose
	.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
Lloh0:
	adrp	x20, _PS_INLINE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PS_INLINE@GOTPAGEOFF]
	ldr	w9, [x20]
	ldr	x8, [x0, #8]
	ldr	w10, [x8]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x9, _TERMTYPE_PS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TERMTYPE_PS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x10, [x0]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldp	x9, x8, [x8, #8]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_ps_printf
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ps_printf
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	str	x9, [x8, #16]
LBB0_7:
	ldr	w8, [x20]
	ldr	x9, [x19, #8]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_INLINE,4,2                  ; @PS_INLINE
	.comm	_TERMTYPE_PS,8,3                ; @TERMTYPE_PS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	") Tj\nET\n"

l_.str.1:                               ; @.str.1
	.asciz	")c\n"

l_.str.2:                               ; @.str.2
	.asciz	")s\n"

	.no_dead_strip	_ps_pclose
.subsections_via_symbols
