	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mktmpcpy
_mktmpcpy:                              ## @mktmpcpy
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	(,%r15,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %r12d
	leaq	-72(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_3:
	movl	-72(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	%r12d, %edi
	callq	_close
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_err
	movl	$-1, %r12d
LBB0_9:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_tmpdir@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	leaq	-56(%rbp), %rdi
	callq	_asprintf
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_11:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi
	callq	_mkstemp
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.12:
	movl	%eax, %ebx
	shll	$2, %r15d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_read
	movl	%eax, %r14d
	leal	-1(%r14), %eax
	cmpl	$-3, %eax
	ja	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movslq	%r14d, %rdx
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_write
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	%eax, %r14d
	je	LBB0_13
LBB0_16:
	leaq	L_.str.5(%rip), %rdi
LBB0_18:
	movq	-56(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_21:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_warn
	movq	-56(%rbp), %rdi
	callq	_unlink
	movl	$2, %edi
	callq	_exit
LBB0_19:
	cmpl	$-1, %r14d
	je	LBB0_20
## %bb.22:
	movl	%r12d, %edi
	callq	_close
	movl	%ebx, %edi
	callq	_close
	movq	-56(%rbp), %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_23:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_25
## %bb.24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_9
LBB0_25:
	callq	___stack_chk_fail
LBB0_17:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_18
LBB0_20:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error getting file status from %s"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"-"

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
L_.str.2:                               ## @.str.2
	.asciz	"error opening %s"

L_.str.3:                               ## @.str.3
	.asciz	"%s/sdiff.XXXXXXXXXX"

	.comm	_tmpdir,4,2                     ## @tmpdir
L_.str.4:                               ## @.str.4
	.asciz	"asprintf"

L_.str.5:                               ## @.str.5
	.asciz	"error writing to %s"

L_.str.6:                               ## @.str.6
	.asciz	"error reading from %s"

	.no_dead_strip	_mktmpcpy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mktmpcpy
_mktmpcpy:                              ; @mktmpcpy
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x19, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	lsl	x8, x23, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x0
	sub	x1, x29, #80
	bl	_fstat
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
	str	x19, [sp, #-16]!
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_err
	add	sp, sp, #16
LBB0_3:
	ldur	w0, [x29, #-80]
	bl	_S_ISREG
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_close
	mov	x0, #0
	b	LBB0_19
LBB0_5:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _ENOENT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_21
LBB0_7:
	str	x19, [sp, #-16]!
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_err
	add	sp, sp, #16
	mov	w21, #-1
LBB0_8:
Lloh23:
	adrp	x8, _tmpdir@GOTPAGE
Lloh24:
	ldr	x8, [x8, _tmpdir@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	sub	x0, x29, #88
	bl	_asprintf
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #2
	bl	_err
LBB0_10:
	ldur	x0, [x29, #-88]
	bl	_mkstemp
	cmn	w0, #1
	b.eq	LBB0_23
; %bb.11:
	mov	x22, x0
	lsl	w23, w23, #2
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_read
	mov	x24, x0
	sub	w8, w0, #1
	cmn	w8, #3
	b.hi	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	sxtw	x2, w24
	mov	x0, x22
	mov	x1, x20
	bl	_write
	cmn	w0, #1
	ccmp	w24, w0, #0, ne
	b.eq	LBB0_12
; %bb.14:
Lloh30:
	adrp	x0, l_.str.5@PAGE
Lloh31:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_15:
	ldur	x19, [x29, #-88]
LBB0_16:
	mov	x1, x19
	bl	_warn
	ldur	x0, [x29, #-88]
	bl	_unlink
	mov	w0, #2
	bl	_exit
LBB0_17:
	cmn	w24, #1
	b.eq	LBB0_24
; %bb.18:
	mov	x0, x21
	bl	_close
	mov	x0, x22
	bl	_close
	ldur	x0, [x29, #-88]
LBB0_19:
	mov	sp, x25
	ldur	x8, [x29, #-72]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.20:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_21:
Lloh35:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x8]
	b	LBB0_8
LBB0_22:
	bl	___stack_chk_fail
LBB0_23:
Lloh38:
	adrp	x0, l_.str.2@PAGE
Lloh39:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_24:
Lloh40:
	adrp	x0, l_.str.6@PAGE
Lloh41:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error getting file status from %s"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"-"

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
l_.str.2:                               ; @.str.2
	.asciz	"error opening %s"

l_.str.3:                               ; @.str.3
	.asciz	"%s/sdiff.XXXXXXXXXX"

	.comm	_tmpdir,4,2                     ; @tmpdir
l_.str.4:                               ; @.str.4
	.asciz	"asprintf"

l_.str.5:                               ; @.str.5
	.asciz	"error writing to %s"

l_.str.6:                               ; @.str.6
	.asciz	"error reading from %s"

	.no_dead_strip	_mktmpcpy
.subsections_via_symbols
