	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function overwritebody
_overwritebody:                         ## @overwritebody
	.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	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movl	%esi, %edi
	callq	_malloc
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_REQUIRE_LIBC
	xorl	%eax, %eax
	callq	_FSTEST_ENTER
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_RDWR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	orl	(%rax), %esi
	leaq	L_.str(%rip), %r12
	movq	%r12, %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	xorl	%eax, %eax
	callq	_rump_sys_open
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_RL
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_rump_sys_write
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_ATF_REQUIRE_EQ
	movl	%ebx, %edi
	callq	_rump_sys_close
	movl	%eax, %edi
	callq	_RL
	movl	(%r15), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_rump_sys_open
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_RL
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_rump_sys_ftruncate
	movl	%eax, %edi
	callq	_RL
LBB0_2:
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_rump_sys_write
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_ATF_REQUIRE_EQ
	movl	%ebx, %edi
	callq	_rump_sys_close
	movl	%eax, %edi
	callq	_RL
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FSTEST_EXIT                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"testi"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.no_dead_strip	_overwritebody
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function overwritebody
_overwritebody:                         ; @overwritebody
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x0, x1
	bl	_malloc
	mov	x20, x0
	mov	x1, #0
	bl	_REQUIRE_LIBC
	bl	_FSTEST_ENTER
Lloh0:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x24, _O_RDWR@GOTPAGE
Lloh4:
	ldr	x24, [x24, _O_RDWR@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w1, w9, w8
	mov	w8, #438
	str	x8, [sp]
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x22
	bl	_rump_sys_open
	mov	x23, x0
	bl	_RL
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_rump_sys_write
	mov	x1, x19
	bl	_ATF_REQUIRE_EQ
	mov	x0, x23
	bl	_rump_sys_close
	bl	_RL
	ldr	w1, [x24]
	mov	x0, x22
	bl	_rump_sys_open
	mov	x22, x0
	bl	_RL
	cbz	w21, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	w1, #0
	bl	_rump_sys_ftruncate
	bl	_RL
LBB0_2:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_rump_sys_write
	mov	x1, x19
	bl	_ATF_REQUIRE_EQ
	mov	x0, x22
	bl	_rump_sys_close
	bl	_RL
	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
	add	sp, sp, #80
	b	_FSTEST_EXIT
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"testi"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.no_dead_strip	_overwritebody
.subsections_via_symbols
