	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kdb_cpu_set_singlestep         ## -- Begin function kdb_cpu_set_singlestep
	.p2align	4, 0x90
_kdb_cpu_set_singlestep:                ## @kdb_cpu_set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_dbg_capable
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	_dbg_watchpoint_num@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	movq	_DBG_REG_BASE_WCR@GOTPCREL(%rip), %r15
	movq	_DBG_WB_CTRL_E@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	(%r14), %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_dbg_wb_read_reg
	movl	(%r12), %ecx
	testl	%eax, %ecx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	notl	%ecx
	andl	%ecx, %eax
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_dbg_wb_write_reg
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	callq	_PC_REGS
	movl	%eax, %r14d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_db_get_value
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_inst_branch
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movl	%ebx, %edi
	callq	_inst_call
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %edi
	callq	_inst_return
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_branch_taken
	movq	_INSN_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_BKPT_BT_SLOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_dbg_setup_breakpoint
LBB0_10:
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_next_instr_address
	movq	_INSN_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_BKPT_BNT_SLOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dbg_setup_breakpoint           ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dbg_watchpoint_num,8,3         ## @dbg_watchpoint_num
	.comm	_DBG_REG_BASE_WCR,4,2           ## @DBG_REG_BASE_WCR
	.comm	_DBG_WB_CTRL_E,4,2              ## @DBG_WB_CTRL_E
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_INSN_SIZE,4,2                  ## @INSN_SIZE
	.comm	_DBG_BKPT_BT_SLOT,4,2           ## @DBG_BKPT_BT_SLOT
	.comm	_DBG_BKPT_BNT_SLOT,4,2          ## @DBG_BKPT_BNT_SLOT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kdb_cpu_set_singlestep         ; -- Begin function kdb_cpu_set_singlestep
	.p2align	2
_kdb_cpu_set_singlestep:                ; @kdb_cpu_set_singlestep
	.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
	bl	_dbg_capable
	cbz	w0, LBB0_11
; %bb.1:
Lloh0:
	adrp	x20, _dbg_watchpoint_num@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dbg_watchpoint_num@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x19, #0
Lloh2:
	adrp	x21, _DBG_REG_BASE_WCR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DBG_REG_BASE_WCR@GOTPAGEOFF]
Lloh4:
	adrp	x22, _DBG_WB_CTRL_E@GOTPAGE
Lloh5:
	ldr	x22, [x22, _DBG_WB_CTRL_E@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #1
	ldr	x8, [x20]
	cmp	x19, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	x1, x19
	bl	_dbg_wb_read_reg
	ldr	w9, [x22]
	tst	w9, w0
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	bic	w2, w0, w9
	mov	x0, x8
	mov	x1, x19
	bl	_dbg_wb_write_reg
	b	LBB0_3
LBB0_6:
	bl	_PC_REGS
	mov	x19, x0
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_db_get_value
	mov	x20, x0
	bl	_inst_branch
Lloh9:
	adrp	x21, _INSN_SIZE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _INSN_SIZE@GOTPAGEOFF]
	cbnz	x0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_inst_call
	cbnz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_inst_return
	cbz	x0, LBB0_10
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_branch_taken
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _DBG_BKPT_BT_SLOT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DBG_BKPT_BT_SLOT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_dbg_setup_breakpoint
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_next_instr_address
	ldr	w1, [x21]
Lloh14:
	adrp	x8, _DBG_BKPT_BNT_SLOT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DBG_BKPT_BNT_SLOT@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	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
	b	_dbg_setup_breakpoint
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_dbg_watchpoint_num,8,3         ; @dbg_watchpoint_num
	.comm	_DBG_REG_BASE_WCR,4,2           ; @DBG_REG_BASE_WCR
	.comm	_DBG_WB_CTRL_E,4,2              ; @DBG_WB_CTRL_E
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_INSN_SIZE,4,2                  ; @INSN_SIZE
	.comm	_DBG_BKPT_BT_SLOT,4,2           ; @DBG_BKPT_BT_SLOT
	.comm	_DBG_BKPT_BNT_SLOT,4,2          ; @DBG_BKPT_BNT_SLOT
.subsections_via_symbols
