	.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
	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	$-1, %eax
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.2:
	movq	(%rsi), %r13
	testq	%r13, %r13
	je	LBB0_9
## %bb.3:
	movq	(%r13), %rsi
	movslq	%ecx, %rbx
	leaq	(%rsi,%rbx), %rax
	movq	_GPROBE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ecx, %edx
	subl	%esi, %edx
	cmpq	%rcx, %rax
	cmovgl	%edx, %ebx
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.4:
	leaq	8(%r13), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r14d, %rax
	leaq	(%r15,%rax,4), %rdx
	movl	%ebx, %ecx
	subl	%eax, %ecx
	movq	%r12, %rdi
	callq	_gprobe_write
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %esi
	addq	(%r13), %rsi
	movq	%rsi, (%r13)
	addl	%eax, %r14d
	cmpl	%r14d, %ebx
	jg	LBB0_5
LBB0_8:
	movl	%ebx, %eax
	jmp	LBB0_9
LBB0_6:
	movl	$-1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPROBE_SIZE,8,3                ## @GPROBE_SIZE
	.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:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	cbz	x1, LBB0_7
; %bb.1:
	mov	x20, x2
	mov	w19, #-1
	cbz	x2, LBB0_8
; %bb.2:
	ldr	x22, [x1]
	cbz	x22, LBB0_8
; %bb.3:
	mov	x21, x22
	ldr	x1, [x21], #8
Lloh0:
	adrp	x8, _GPROBE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPROBE_SIZE@GOTPAGEOFF]
	add	x9, x1, w3, sxtw
Lloh2:
	ldr	x8, [x8]
	sub	w10, w8, w1
	cmp	x9, x8
	csel	w19, w10, w3, gt
	cmp	w19, #1
	b.lt	LBB0_8
; %bb.4:
	mov	w23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, x20, w23, sxtw #2
	sub	w3, w19, w23
	mov	x0, x21
	bl	_gprobe_write
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	add	x1, x8, w0, uxtw
	str	x1, [x22]
	add	w23, w0, w23
	cmp	w19, w23
	b.gt	LBB0_5
	b	LBB0_8
LBB0_7:
	mov	w19, #-1
LBB0_8:
	mov	x0, x19
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPROBE_SIZE,8,3                ; @GPROBE_SIZE
	.no_dead_strip	___write
.subsections_via_symbols
