	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_testvec
_write_testvec:                         ## @write_testvec
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	_SECSIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	imull	(%rbx), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_rump_sys_lseek
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	4(%rbx), %esi
	movl	(%r15), %edx
	movl	%r14d, %edi
	callq	_rump_sys_write
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	(%r15), %ecx
	setne	%al
	negl	%eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECSIZE,4,2                    ## @SECSIZE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_write_testvec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_testvec
_write_testvec:                         ; @write_testvec
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _SECSIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SECSIZE@GOTPAGEOFF]
	ldr	w8, [x1]
	ldr	w9, [x21]
	mul	w1, w9, w8
Lloh2:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_rump_sys_lseek
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldr	w1, [x20, #4]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_rump_sys_write
	ldr	w8, [x21]
	cmp	w0, w8
	csetm	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SECSIZE,4,2                    ; @SECSIZE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_write_testvec
.subsections_via_symbols
