	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_op_rw_range
_find_op_rw_range:                      ## @find_op_rw_range
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%rbx, -56(%rbp)
	movq	_ctl3_rewriters@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	_ctl3_rsize@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_compare_opcodes@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	$8, %ecx
	callq	_bsearch
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r14), %rdx
	movq	%rax, %rcx
	cmpq	%rax, %rdx
	jae	LBB0_6
## %bb.3:
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, -8(%rcx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$-8, %rcx
	cmpq	%rdx, %rcx
	ja	LBB0_4
LBB0_6:
	movslq	(%r13), %rsi
	leaq	(%rdx,%rsi,8), %rdx
	addq	$8, %rax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rsi
	cmpq	%rdx, %rax
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	8(%rsi), %rax
	cmpq	%rbx, (%rsi)
	je	LBB0_7
LBB0_9:
	movq	%rcx, (%r15)
	addq	$-8, %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rsi, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movl	$1, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctl3_rewriters,8,3             ## @ctl3_rewriters
	.comm	_ctl3_rsize,4,2                 ## @ctl3_rsize
	.comm	_compare_opcodes,4,2            ## @compare_opcodes
	.no_dead_strip	_find_op_rw_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_op_rw_range
_find_op_rw_range:                      ; @find_op_rw_range
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x21, [sp, #8]
Lloh0:
	adrp	x23, _ctl3_rewriters@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ctl3_rewriters@GOTPAGEOFF]
	ldr	x1, [x23]
Lloh2:
	adrp	x22, _ctl3_rsize@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ctl3_rsize@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh4:
	adrp	x8, _compare_opcodes@GOTPAGE
Lloh5:
	ldr	x8, [x8, _compare_opcodes@GOTPAGEOFF]
Lloh6:
	ldr	w4, [x8]
	add	x0, sp, #8
	mov	w3, #8
	bl	_bsearch
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x9, [x23]
	mov	x8, x0
	cmp	x9, x0
	b.hs	LBB0_5
; %bb.2:
	mov	x8, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x8, #-8]
	cmp	x10, x21
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x8, #8
	cmp	x8, x9
	b.hi	LBB0_3
LBB0_5:
	ldrsw	x10, [x22]
	add	x9, x9, x10, lsl #3
	add	x11, x0, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x11
	cmp	x11, x9
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x11, x10
	ldr	x12, [x11], #8
	cmp	x12, x21
	b.eq	LBB0_6
LBB0_8:
	mov	w0, #0
	str	x8, [x20]
	sub	x8, x10, #8
	str	x8, [x19]
	b	LBB0_10
LBB0_9:
	mov	w0, #1
LBB0_10:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ctl3_rewriters,8,3             ; @ctl3_rewriters
	.comm	_ctl3_rsize,4,2                 ; @ctl3_rsize
	.comm	_compare_opcodes,4,2            ; @compare_opcodes
	.no_dead_strip	_find_op_rw_range
.subsections_via_symbols
