	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chkclob
_chkclob:                               ## @chkclob
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	movl	-16(%rbp), %edi
	callq	_S_ISCHR
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	_no_clobber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NOCLOBBER_NOTEMPTY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	cmpq	$0, -24(%rbp)
	je	LBB0_7
LBB0_4:
	movq	_NOCLOBBER_ASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdx
	movl	$22, %edi
	movl	$15, %esi
	callq	_CGETS
	movl	%eax, %edi
	callq	_getYN
	testq	%rax, %rax
	jne	LBB0_7
LBB0_6:
	movq	_ERR_EXISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_stderror
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_no_clobber,4,2                 ## @no_clobber
	.comm	_NOCLOBBER_NOTEMPTY,4,2         ## @NOCLOBBER_NOTEMPTY
	.comm	_NOCLOBBER_ASK,4,2              ## @NOCLOBBER_ASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Do you really want to overwrite an existing file? [N/y] "

	.comm	_ERR_EXISTS,4,2                 ## @ERR_EXISTS
	.no_dead_strip	_chkclob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chkclob
_chkclob:                               ; @chkclob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	x1, sp
	bl	_stat
	tbnz	x0, #63, LBB0_6
; %bb.1:
	ldr	w0, [sp, #8]
	bl	_S_ISCHR
	cbnz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _no_clobber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _no_clobber@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NOCLOBBER_NOTEMPTY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NOCLOBBER_NOTEMPTY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w8
	ldr	x10, [sp]
	cmp	w9, #0
	ccmp	x10, #0, #0, ne
	b.eq	LBB0_6
; %bb.3:
Lloh6:
	adrp	x9, _NOCLOBBER_ASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NOCLOBBER_ASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #22
	mov	w1, #15
	bl	_CGETS
	bl	_getYN
	cbnz	x0, LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _ERR_EXISTS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_EXISTS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_stderror
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_no_clobber,4,2                 ; @no_clobber
	.comm	_NOCLOBBER_NOTEMPTY,4,2         ; @NOCLOBBER_NOTEMPTY
	.comm	_NOCLOBBER_ASK,4,2              ; @NOCLOBBER_ASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Do you really want to overwrite an existing file? [N/y] "

	.comm	_ERR_EXISTS,4,2                 ; @ERR_EXISTS
	.no_dead_strip	_chkclob
.subsections_via_symbols
