	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ptrace_set_debugreg
_ptrace_set_debugreg:                   ## @ptrace_set_debugreg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %eax
	andl	$-2, %eax
	xorl	%edi, %edi
	cmpl	$4, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$3, %ebx
	jg	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_debugreg_addr_limit
	xorl	%edi, %edi
	cmpq	%r15, %rax
	setbe	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
LBB0_4:
	xorl	%r12d, %r12d
	cmpl	$7, %ebx
	ja	LBB0_19
## %bb.5:
	movl	%ebx, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	%r15, (%r14)
	jmp	LBB0_19
LBB0_7:
	movq	%r15, 8(%r14)
	jmp	LBB0_19
LBB0_8:
	movq	%r15, 16(%r14)
	jmp	LBB0_19
LBB0_9:
	movq	%r15, 24(%r14)
	jmp	LBB0_19
LBB0_10:
	movq	%r15, %rax
	shrq	$32, %rax
	jne	LBB0_1
## %bb.11:
	movq	%r15, 32(%r14)
	jmp	LBB0_19
LBB0_12:
	movq	_DR_CONTROL_RESERVED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%r15, %rax
	movl	%eax, %ecx
	shrl	$16, %ecx
	andb	$15, %cl
	movzbl	%cl, %edx
	movl	$21844, %ecx                    ## imm = 0x5554
	btl	%edx, %ecx
	jb	LBB0_1
## %bb.13:
	movl	%eax, %edx
	shrl	$20, %edx
	andb	$15, %dl
	movzbl	%dl, %edx
	btl	%edx, %ecx
	jb	LBB0_1
## %bb.14:
	movl	%eax, %ecx
	shrl	$24, %ecx
	andb	$15, %cl
	movzbl	%cl, %edx
	movl	$21844, %ecx                    ## imm = 0x5554
	btl	%edx, %ecx
	jb	LBB0_1
## %bb.15:
	movl	%eax, %edx
	shrl	$28, %edx
	btl	%edx, %ecx
	jb	LBB0_1
## %bb.16:
	movq	%rax, 40(%r14)
	movq	_TIF_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	callq	_set_tsk_thread_flag
	jmp	LBB0_19
LBB0_18:
	callq	_clear_tsk_thread_flag
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_10
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DR_CONTROL_RESERVED,8,3        ## @DR_CONTROL_RESERVED
	.comm	_TIF_DEBUG,4,2                  ## @TIF_DEBUG
	.comm	_DR7_MASK,8,3                   ## @DR7_MASK
	.no_dead_strip	_ptrace_set_debugreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ptrace_set_debugreg
_ptrace_set_debugreg:                   ; @ptrace_set_debugreg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	and	w8, w1, #0xfffffffe
	cmp	w8, #4
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	cmp	w21, #3
	b.gt	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_debugreg_addr_limit
	cmp	x0, x20
	cset	w0, ls
	bl	_unlikely
	cbnz	x0, LBB0_1
LBB0_5:
	mov	w0, #0
	cmp	w21, #7
	b.hi	LBB0_2
; %bb.6:
	mov	w8, w21
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_2
LBB0_8:
	mov	w0, #0
	str	x20, [x19, #8]
	b	LBB0_2
LBB0_9:
	mov	w0, #0
	str	x20, [x19, #16]
	b	LBB0_2
LBB0_10:
	mov	w0, #0
	str	x20, [x19, #24]
	b	LBB0_2
LBB0_11:
	lsr	x8, x20, #32
	cbnz	x8, LBB0_1
; %bb.12:
	mov	w0, #0
	str	x20, [x19, #32]
	b	LBB0_2
LBB0_13:
Lloh5:
	adrp	x8, _DR_CONTROL_RESERVED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DR_CONTROL_RESERVED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	bic	x8, x20, x8
	ubfx	w10, w8, #16, #4
	mov	w9, #21844
	lsr	w10, w9, w10
	tbnz	w10, #0, LBB0_1
; %bb.14:
	ubfx	w10, w8, #20, #4
	lsr	w9, w9, w10
	tbnz	w9, #0, LBB0_1
; %bb.15:
	ubfx	w10, w8, #24, #4
	mov	w9, #21844
	lsr	w10, w9, w10
	tbnz	w10, #0, LBB0_1
; %bb.16:
	lsr	w10, w8, #28
	lsr	w9, w9, w10
	tbnz	w9, #0, LBB0_1
; %bb.17:
	str	x8, [x19, #40]
Lloh8:
	adrp	x9, _TIF_DEBUG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TIF_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	mov	x0, x19
	cbz	x8, LBB0_19
; %bb.18:
	bl	_set_tsk_thread_flag
	b	LBB0_20
LBB0_19:
	bl	_clear_tsk_thread_flag
LBB0_20:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DR_CONTROL_RESERVED,8,3        ; @DR_CONTROL_RESERVED
	.comm	_TIF_DEBUG,4,2                  ; @TIF_DEBUG
	.comm	_DR7_MASK,8,3                   ; @DR7_MASK
	.no_dead_strip	_ptrace_set_debugreg
.subsections_via_symbols
