	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function overwrite
_overwrite:                             ## @overwrite
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_INV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lo_open
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_lo_lseek
	leal	1(%r12), %edi
	callq	_malloc
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	testl	%r12d, %r12d
	jle	LBB0_3
## %bb.4:
	movl	%r12d, %edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$88, %esi
	callq	_memset
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movb	$0, (%rbx,%rax)
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %ecx
	subl	%r13d, %ecx
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r13d, %rdx
	addq	%rbx, %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_lo_write
	addl	%eax, %r13d
	testl	%eax, %eax
	jg	LBB0_6
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	movq	%rbx, %rdi
	callq	_free
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lo_close                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INV_WRITE,4,2                  ## @INV_WRITE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot open large object %u"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.1:                               ## @.str.1
	.asciz	"\nWRITE FAILED!\n"

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

	.no_dead_strip	_overwrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function overwrite
_overwrite:                             ; @overwrite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _INV_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INV_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_lo_open
	mov	x20, x0
Lloh3:
	adrp	x24, _stderr@GOTPAGE
Lloh4:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
	tbz	w0, #31, LBB0_2
; %bb.1:
	ldr	w0, [x24]
	str	x23, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
Lloh7:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_lo_lseek
	add	w0, w21, #1
	bl	_malloc
	mov	x22, x0
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.3:
	mov	w23, w21
	mov	x0, x22
	mov	w1, #88
	mov	x2, x23
	bl	_memset
	b	LBB0_5
LBB0_4:
	mov	x23, #0
LBB0_5:
	mov	w25, #0
	strb	wzr, [x22, x23]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	w3, w21, w25
	cmp	w3, #1
	b.lt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x2, x22, w25, sxtw
	mov	x0, x19
	mov	x1, x20
	bl	_lo_write
	add	w25, w0, w25
	cmp	w0, #0
	b.gt	LBB0_6
; %bb.8:
	ldr	w0, [x24]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_9:
	mov	x0, x22
	bl	_free
	ldr	w0, [x24]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_lo_close
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_INV_WRITE,4,2                  ; @INV_WRITE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot open large object %u"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.1:                               ; @.str.1
	.asciz	"\nWRITE FAILED!\n"

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

	.no_dead_strip	_overwrite
.subsections_via_symbols
