	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __write
___write:                               ## @__write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %eax
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.2:
	movq	(%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.3:
	movq	(%rdx), %rsi
	movq	8(%rdx), %rax
	movslq	%ecx, %rdi
	addq	%rsi, %rdi
	cmpq	%rax, %rdi
	jle	LBB0_5
## %bb.4:
	subl	%esi, %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_5:
	movq	%rdi, (%rdx)
	movl	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __write
___write:                               ; @__write
	.cfi_startproc
; %bb.0:
	mov	w0, #-1
	cbz	x1, LBB0_6
; %bb.1:
	cbz	x2, LBB0_6
; %bb.2:
	ldr	x8, [x1]
	cbz	x8, LBB0_6
; %bb.3:
	ldp	x9, x10, [x8]
	add	x11, x9, w3, sxtw
	cmp	x11, x10
	b.le	LBB0_5
; %bb.4:
	sub	w0, w10, w9
	ret
LBB0_5:
	str	x11, [x8]
	mov	x0, x3
LBB0_6:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___write
.subsections_via_symbols
