	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function holywrite
_holywrite:                             ## @holywrite
	.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	%r12
	pushq	%rbx
	subq	$1040, %rsp                     ## imm = 0x410
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	callq	_getpagesize
	leaq	1(%rax), %r14
	xorl	%eax, %eax
	callq	_FSTEST_ENTER
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_rump_sys_open
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_RL
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$65, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memset
	xorl	%eax, %eax
	callq	_getpagesize
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	movl	%eax, %ecx
	callq	_rump_sys_pwrite
	movl	%eax, %edi
	callq	_RL
	movq	%rbx, %rdi
	movl	$66, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memset
	xorl	%eax, %eax
	callq	_getpagesize
	leal	-1(%rax), %ecx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_rump_sys_pwrite
	movl	%eax, %edi
	callq	_RL
	xorl	%eax, %eax
	callq	_getpagesize
	leal	(%rax,%rax), %edi
	callq	_malloc
	movq	%rax, %r12
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_REQUIRE_LIBC
	xorl	%eax, %eax
	callq	_getpagesize
	leal	(%rax,%rax), %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_REQUIRE_LIBC
	movl	%r15d, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_rump_sys_pread
	movl	%eax, %edi
	callq	_RL
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	xorl	%eax, %eax
	callq	_getpagesize
	leaq	(%rbx,%rax), %rdi
	decq	%rdi
	movl	$66, %esi
	movl	$2, %edx
	callq	_memset
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_memcmp
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ATF_REQUIRE_EQ
	movl	%r15d, %edi
	callq	_rump_sys_close
	xorl	%eax, %eax
	callq	_FSTEST_EXIT
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$1040, %rsp                     ## imm = 0x410
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.no_dead_strip	_holywrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function holywrite
_holywrite:                             ; @holywrite
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_getpagesize
	add	x19, x0, #1
	bl	_FSTEST_ENTER
Lloh3:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #438
	bl	_rump_sys_open
	mov	x20, x0
	bl	_RL
	add	x0, sp, #8
	mov	w1, #65
	mov	w2, #1024
	bl	_memset
	bl	_getpagesize
	mov	x3, x0
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #1
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_rump_sys_pwrite
	bl	_RL
	add	x0, sp, #8
	mov	w1, #66
	mov	w2, #1024
	bl	_memset
	bl	_getpagesize
	sub	w3, w0, #1
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #2
	bl	_rump_sys_pwrite
	bl	_RL
	bl	_getpagesize
	lsl	w0, w0, #1
	bl	_malloc
	mov	x21, x0
	mov	x1, #0
	bl	_REQUIRE_LIBC
	bl	_getpagesize
	lsl	w0, w0, #1
	bl	_malloc
	mov	x22, x0
	mov	x1, #0
	bl	_REQUIRE_LIBC
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w3, #0
	bl	_rump_sys_pread
	bl	_RL
	mov	x0, x22
	mov	w1, #0
	mov	x2, x19
	bl	_memset
	bl	_getpagesize
	add	x8, x22, x0
	sub	x0, x8, #1
	mov	w1, #66
	mov	w2, #2
	bl	_memset
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_memcmp
	mov	w1, #0
	bl	_ATF_REQUIRE_EQ
	mov	x0, x20
	bl	_rump_sys_close
	bl	_FSTEST_EXIT
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.no_dead_strip	_holywrite
.subsections_via_symbols
