	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drx_set                        ## -- Begin function drx_set
	.p2align	4, 0x90
_drx_set:                               ## @drx_set
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%esi, %ebx
	movq	_DR_NADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%ebx, %ebx
	js	LBB0_2
## %bb.1:
	cmpl	%ebx, %esi
	jle	LBB0_2
## %bb.4:
	movl	%edx, %r15d
	xorl	%edx, %edx
	cmpl	$2, %r8d
	sete	%dl
	cmpl	$4, %r8d
	movl	$3, %eax
	cmovnel	%edx, %eax
	leal	1(%rcx), %esi
	cmpl	$9, %esi
	ja	LBB0_9
## %bb.5:
	movl	%r9d, %r13d
	movq	%rdi, %r14
	movq	_DR_CONTROL@GOTPCREL(%rip), %r8
	movq	(%r8), %rdx
	movl	(%rdi,%rdx,4), %r12d
	xorl	%edx, %edx
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_8:
	movl	%r12d, %edi
	movl	%ebx, %esi
	movq	%r8, %r15
	callq	_I386_DR_DISABLE
	movq	_I386_DR_CONTROL_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	(%r15), %rax
	movl	%r12d, (%r14,%rax,4)
	movl	%ebx, %eax
	movl	$0, (%r14,%rax,4)
	jmp	LBB0_15
LBB0_2:
	decl	%esi
	leaq	L_.str(%rip), %rdi
LBB0_3:
	callq	_eprintf
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movl	%ecx, %esi
	jmp	LBB0_3
LBB0_10:
	movl	$4, %edx
	jmp	LBB0_11
LBB0_6:
	movl	$12, %edx
	jmp	LBB0_11
LBB0_7:
	movl	$8, %edx
LBB0_11:
	orl	%eax, %edx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_I386_DR_SET_RW_LEN
	movl	%r12d, %edi
	movl	%ebx, %esi
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.12:
	callq	_I386_DR_GLOBAL_ENABLE
	jmp	LBB0_14
LBB0_13:
	callq	_I386_DR_LOCAL_ENABLE
LBB0_14:
	movq	_I386_DR_CONTROL_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movl	%ebx, %eax
	movl	%r15d, (%r14,%rax,4)
	movq	_DR_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, (%r14,%rax,4)
LBB0_15:
	movl	$1, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_DR_CONTROL,8,3                 ## @DR_CONTROL
	.comm	_DR_NADDR,4,2                   ## @DR_NADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid DRX index (0-%d)\n"

	.comm	_I386_DR_CONTROL_MASK,4,2       ## @I386_DR_CONTROL_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Invalid DRX length (%d) must be 1, 2, 4, 8 bytes\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drx_set                        ; -- Begin function drx_set
	.p2align	2
_drx_set:                               ; @drx_set
	.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
Lloh0:
	adrp	x8, _DR_NADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DR_NADDR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tbnz	w1, #31, LBB0_5
; %bb.1:
	mov	x20, x1
	cmp	w8, w1
	b.le	LBB0_5
; %bb.2:
	cmp	w4, #2
	cset	w8, eq
	mov	w9, #3
	cmp	w4, #4
	csel	w8, w9, w8, eq
	add	w10, w3, #1
	cmp	w10, #9
	b.hi	LBB0_7
; %bb.3:
	mov	x23, x5
	mov	x21, x2
	mov	x19, x0
	mov	w9, #0
Lloh3:
	adrp	x24, _DR_CONTROL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DR_CONTROL@GOTPAGEOFF]
	ldr	x11, [x24]
	ldr	w22, [x0, x11, lsl #2]
Lloh5:
	adrp	x11, lJTI0_0@PAGE
Lloh6:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_4
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_4:
	mov	x0, x22
	mov	x1, x20
	bl	_I386_DR_DISABLE
Lloh7:
	adrp	x8, _I386_DR_CONTROL_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I386_DR_CONTROL_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w8, w8, w22
	ldr	x9, [x24]
	str	w8, [x19, x9, lsl #2]
	str	wzr, [x19, w20, uxtw #2]
	b	LBB0_15
LBB0_5:
	sub	w1, w8, #1
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	bl	_eprintf
	mov	w0, #0
	b	LBB0_16
LBB0_7:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x3
	b	LBB0_6
LBB0_8:
	mov	w9, #4
	b	LBB0_11
LBB0_9:
	mov	w9, #12
	b	LBB0_11
LBB0_10:
	mov	w9, #8
LBB0_11:
	orr	w2, w9, w8
	mov	x0, x22
	mov	x1, x20
	bl	_I386_DR_SET_RW_LEN
	mov	x0, x22
	mov	x1, x20
	cbz	w23, LBB0_13
; %bb.12:
	bl	_I386_DR_GLOBAL_ENABLE
	b	LBB0_14
LBB0_13:
	bl	_I386_DR_LOCAL_ENABLE
LBB0_14:
Lloh14:
	adrp	x8, _I386_DR_CONTROL_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I386_DR_CONTROL_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w8, w8, w22
	str	w21, [x19, w20, uxtw #2]
	ldr	x9, [x24]
	str	w8, [x19, x9, lsl #2]
LBB0_15:
	mov	w0, #1
LBB0_16:
	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
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
                                        ; -- End function
	.comm	_DR_CONTROL,8,3                 ; @DR_CONTROL
	.comm	_DR_NADDR,4,2                   ; @DR_NADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid DRX index (0-%d)\n"

	.comm	_I386_DR_CONTROL_MASK,4,2       ; @I386_DR_CONTROL_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Invalid DRX length (%d) must be 1, 2, 4, 8 bytes\n"

.subsections_via_symbols
