	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kdb_cpu_clear_singlestep       ## -- Begin function kdb_cpu_clear_singlestep
	.p2align	4, 0x90
_kdb_cpu_clear_singlestep:              ## @kdb_cpu_clear_singlestep
	.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
	xorl	%eax, %eax
	callq	_dbg_capable
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_DBG_BKPT_BT_SLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dbg_remove_breakpoint
	movq	_DBG_BKPT_BNT_SLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dbg_remove_breakpoint
	movq	_dbg_watchpoint_num@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	movq	_DBG_REG_BASE_WCR@GOTPCREL(%rip), %r12
	movq	_DBG_REG_BASE_WVR@GOTPCREL(%rip), %r13
	movq	_DBGWVR_ADDR_MASK@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	_dbg_watchpoint_num@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_dbg_wb_read_reg
	movl	%eax, %r14d
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_dbg_wb_read_reg
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %edi
	movq	_DBG_WB_CTRL_E@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_dbg_wb_write_reg
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DBG_BKPT_BT_SLOT,4,2           ## @DBG_BKPT_BT_SLOT
	.comm	_DBG_BKPT_BNT_SLOT,4,2          ## @DBG_BKPT_BNT_SLOT
	.comm	_dbg_watchpoint_num,8,3         ## @dbg_watchpoint_num
	.comm	_DBG_REG_BASE_WCR,4,2           ## @DBG_REG_BASE_WCR
	.comm	_DBG_REG_BASE_WVR,4,2           ## @DBG_REG_BASE_WVR
	.comm	_DBGWVR_ADDR_MASK,4,2           ## @DBGWVR_ADDR_MASK
	.comm	_DBG_WB_CTRL_E,4,2              ## @DBG_WB_CTRL_E
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kdb_cpu_clear_singlestep       ; -- Begin function kdb_cpu_clear_singlestep
	.p2align	2
_kdb_cpu_clear_singlestep:              ; @kdb_cpu_clear_singlestep
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	bl	_dbg_capable
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _DBG_BKPT_BT_SLOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBG_BKPT_BT_SLOT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_dbg_remove_breakpoint
Lloh3:
	adrp	x8, _DBG_BKPT_BNT_SLOT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_BKPT_BNT_SLOT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_dbg_remove_breakpoint
Lloh6:
	adrp	x21, _dbg_watchpoint_num@GOTPAGE
Lloh7:
	ldr	x21, [x21, _dbg_watchpoint_num@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x19, #0
Lloh8:
	adrp	x22, _DBG_REG_BASE_WCR@GOTPAGE
Lloh9:
	ldr	x22, [x22, _DBG_REG_BASE_WCR@GOTPAGEOFF]
Lloh10:
	adrp	x23, _DBG_REG_BASE_WVR@GOTPAGE
Lloh11:
	ldr	x23, [x23, _DBG_REG_BASE_WVR@GOTPAGEOFF]
Lloh12:
	adrp	x24, _DBGWVR_ADDR_MASK@GOTPAGE
Lloh13:
	ldr	x24, [x24, _DBGWVR_ADDR_MASK@GOTPAGEOFF]
Lloh14:
	adrp	x25, _DBG_WB_CTRL_E@GOTPAGE
Lloh15:
	ldr	x25, [x25, _DBG_WB_CTRL_E@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #1
	ldr	x8, [x21]
	cmp	x19, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	bl	_dbg_wb_read_reg
	mov	x20, x0
	ldr	w0, [x23]
	mov	x1, x19
	bl	_dbg_wb_read_reg
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22]
	ldr	w8, [x25]
	orr	w2, w8, w20
	mov	x1, x19
	bl	_dbg_wb_write_reg
	b	LBB0_3
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DBG_BKPT_BT_SLOT,4,2           ; @DBG_BKPT_BT_SLOT
	.comm	_DBG_BKPT_BNT_SLOT,4,2          ; @DBG_BKPT_BNT_SLOT
	.comm	_dbg_watchpoint_num,8,3         ; @dbg_watchpoint_num
	.comm	_DBG_REG_BASE_WCR,4,2           ; @DBG_REG_BASE_WCR
	.comm	_DBG_REG_BASE_WVR,4,2           ; @DBG_REG_BASE_WVR
	.comm	_DBGWVR_ADDR_MASK,4,2           ; @DBGWVR_ADDR_MASK
	.comm	_DBG_WB_CTRL_E,4,2              ; @DBG_WB_CTRL_E
.subsections_via_symbols
