	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chk_same                       ## -- Begin function chk_same
	.p2align	4, 0x90
_chk_same:                              ## @chk_same
	.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
	movl	(%rdi), %edi
	leaq	-24(%rbp), %rsi
	callq	_lstat
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	js	LBB0_6
## %bb.1:
	movq	_kflag@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_2:
	movq	8(%rbx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_6
## %bb.3:
	movq	16(%rbx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_6
## %bb.4:
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_paxwarn
	jmp	LBB0_5
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kflag,8,3                      ## @kflag
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to copy %s, file would overwrite itself"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chk_same                       ; -- Begin function chk_same
	.p2align	2
_chk_same:                              ; @chk_same
	.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
	ldr	w0, [x0]
	mov	x1, sp
	bl	_lstat
	tbnz	x0, #63, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _kflag@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kflag@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x9, [sp]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w2, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_paxwarn
	b	LBB0_2
LBB0_6:
	mov	w0, #1
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_kflag,8,3                      ; @kflag
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to copy %s, file would overwrite itself"

.subsections_via_symbols
