	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_mem_write                ## -- Begin function check_mem_write
	.p2align	4, 0x90
_check_mem_write:                       ## @check_mem_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	_breakpoints@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r15
	movslq	%edx, %rax
	addq	%rdi, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r14), %r14
	testq	%r14, %r14
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	_breakpoint_len@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	addq	%rax, %rbx
	cmpq	%r15, %rbx
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	jge	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, %rax
	movq	%r15, %rcx
	cmovgq	%rax, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rbx
	cmovgeq	%rdx, %rbx
	subl	%ecx, %ebx
	movl	%ecx, %edx
	subl	%eax, %edx
	subl	%r15d, %ecx
	movslq	%edx, %r12
	movq	8(%r14), %rdi
	addq	%r12, %rdi
	movslq	%ecx, %r13
	addq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	cmpq	$0, 16(%r14)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_breakpoint_data@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	jmp	LBB0_6
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_breakpoints,8,3                ## @breakpoints
	.comm	_breakpoint_len,8,3             ## @breakpoint_len
	.comm	_breakpoint_data,8,3            ## @breakpoint_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_mem_write                ; -- Begin function check_mem_write
	.p2align	2
_check_mem_write:                       ; @check_mem_write
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _breakpoints@GOTPAGE
Lloh1:
	ldr	x8, [x8, _breakpoints@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	cbz	x23, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	add	x24, x0, w2, sxtw
Lloh3:
	adrp	x25, _breakpoint_len@GOTPAGE
Lloh4:
	ldr	x25, [x25, _breakpoint_len@GOTPAGEOFF]
Lloh5:
	adrp	x26, _breakpoint_data@GOTPAGE
Lloh6:
	ldr	x26, [x26, _breakpoint_data@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x23, #24]
	cbz	x23, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x9, [x25]
	add	x9, x9, x8
	cmp	x9, x20
	ccmp	x8, x24, #0, gt
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x8, x20
	csel	x10, x8, x20, gt
	cmp	x9, x24
	csel	x9, x9, x24, lt
	sub	w21, w9, w10
	sub	w8, w10, w8
	sub	w9, w10, w20
	ldr	x10, [x23, #8]
	sxtw	x27, w8
	add	x0, x10, x27
	add	x22, x19, w9, sxtw
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	add	x1, x8, x27
	mov	x0, x22
	mov	x2, x21
	bl	_memcpy
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_breakpoints,8,3                ; @breakpoints
	.comm	_breakpoint_len,8,3             ; @breakpoint_len
	.comm	_breakpoint_data,8,3            ; @breakpoint_data
.subsections_via_symbols
