	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_and_rewind_pc
_check_and_rewind_pc:                   ## @check_and_rewind_pc
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_lookup_addr
	movq	%rax, %r14
	incq	%rbx
	movq	_kgdbts_gdb_regs@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	_NUMREGBYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_kgdb_hex2mem
	movq	(%r12), %rdi
	movq	_kgdbts_regs@GOTPCREL(%rip), %rbx
	movq	%rbx, %rsi
	callq	_gdb_regs_to_pt_regs
	movq	%rbx, %rdi
	callq	_instruction_pointer
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_v2printk
	movq	_arch_needs_sstep_emulation@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.1:
	movq	_sstep_addr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	cmpq	%rax, %rbx
	jne	LBB0_7
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	cmpq	%r14, %rbx
	je	LBB0_6
## %bb.9:
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_eprintk
	movl	$1, %eax
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_v2printk
	movq	_restart_from_top_after_write@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_6:
	movq	_cont_addr@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kgdbts_gdb_regs,8,3            ## @kgdbts_gdb_regs
	.comm	_NUMREGBYTES,4,2                ## @NUMREGBYTES
	.comm	_kgdbts_regs,4,2                ## @kgdbts_regs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stopped at IP: %lx\n"

	.comm	_arch_needs_sstep_emulation,8,3 ## @arch_needs_sstep_emulation
	.comm	_sstep_addr,8,3                 ## @sstep_addr
L_.str.1:                               ## @.str.1
	.asciz	"sys_open"

L_.str.2:                               ## @.str.2
	.asciz	"do_fork"

L_.str.3:                               ## @.str.3
	.asciz	"Emul: rewind hit single step bp\n"

	.comm	_restart_from_top_after_write,4,2 ## @restart_from_top_after_write
L_.str.4:                               ## @.str.4
	.asciz	"silent"

L_.str.5:                               ## @.str.5
	.asciz	"kgdbts: BP mismatch %lx expected %lx\n"

	.comm	_cont_addr,8,3                  ## @cont_addr
	.comm	_BREAK_INSTR_SIZE,8,3           ## @BREAK_INSTR_SIZE
	.no_dead_strip	_check_and_rewind_pc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_and_rewind_pc
_check_and_rewind_pc:                   ; @check_and_rewind_pc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_lookup_addr
	mov	x19, x0
	add	x0, x21, #1
Lloh0:
	adrp	x21, _kgdbts_gdb_regs@GOTPAGE
Lloh1:
	ldr	x21, [x21, _kgdbts_gdb_regs@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh2:
	adrp	x8, _NUMREGBYTES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NUMREGBYTES@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_kgdb_hex2mem
	ldr	x0, [x21]
Lloh5:
	adrp	x21, _kgdbts_regs@GOTPAGE
Lloh6:
	ldr	x21, [x21, _kgdbts_regs@GOTPAGEOFF]
	mov	x1, x21
	bl	_gdb_regs_to_pt_regs
	mov	x0, x21
	bl	_instruction_pointer
	mov	x21, x0
	str	x0, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_v2printk
Lloh9:
	adrp	x8, _arch_needs_sstep_emulation@GOTPAGE
Lloh10:
	ldr	x8, [x8, _arch_needs_sstep_emulation@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _sstep_addr@GOTPAGE
Lloh13:
	ldr	x9, [x9, _sstep_addr@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	ccmp	x21, x9, #0, ne
	b.ne	LBB0_3
; %bb.1:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.2:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_6
LBB0_3:
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.4:
	cmp	x21, x19
	b.eq	LBB0_7
; %bb.5:
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	bl	_eprintk
	mov	w0, #1
	b	LBB0_8
LBB0_6:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_v2printk
Lloh25:
	adrp	x8, _restart_from_top_after_write@GOTPAGE
Lloh26:
	ldr	x8, [x8, _restart_from_top_after_write@GOTPAGEOFF]
	mov	w9, #1
Lloh27:
	str	w9, [x8]
LBB0_7:
	mov	w0, #0
Lloh28:
	adrp	x8, _cont_addr@GOTPAGE
Lloh29:
	ldr	x8, [x8, _cont_addr@GOTPAGEOFF]
Lloh30:
	str	x21, [x8]
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_kgdbts_gdb_regs,8,3            ; @kgdbts_gdb_regs
	.comm	_NUMREGBYTES,4,2                ; @NUMREGBYTES
	.comm	_kgdbts_regs,4,2                ; @kgdbts_regs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stopped at IP: %lx\n"

	.comm	_arch_needs_sstep_emulation,8,3 ; @arch_needs_sstep_emulation
	.comm	_sstep_addr,8,3                 ; @sstep_addr
l_.str.1:                               ; @.str.1
	.asciz	"sys_open"

l_.str.2:                               ; @.str.2
	.asciz	"do_fork"

l_.str.3:                               ; @.str.3
	.asciz	"Emul: rewind hit single step bp\n"

	.comm	_restart_from_top_after_write,4,2 ; @restart_from_top_after_write
l_.str.4:                               ; @.str.4
	.asciz	"silent"

l_.str.5:                               ; @.str.5
	.asciz	"kgdbts: BP mismatch %lx expected %lx\n"

	.comm	_cont_addr,8,3                  ; @cont_addr
	.comm	_BREAK_INSTR_SIZE,8,3           ; @BREAK_INSTR_SIZE
	.no_dead_strip	_check_and_rewind_pc
.subsections_via_symbols
