	.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
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_v2printk
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_kgdbts_regs@GOTPCREL(%rip), %rdi
	callq	_instruction_pointer
	cltq
	cmpq	%rax, %r14
	je	LBB0_3
## %bb.2:
	movq	_kgdbts_regs@GOTPCREL(%rip), %rdi
	callq	_instruction_pointer
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_eprintk
	movl	$1, %ebx
LBB0_3:
	movl	%ebx, %eax
	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,8,3                ## @kgdbts_regs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stopped at IP: %lx\n"

L_.str.1:                               ## @.str.1
	.asciz	"silent"

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

	.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:
	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, 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	x1, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_v2printk
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.1:
Lloh11:
	adrp	x0, _kgdbts_regs@GOTPAGE
Lloh12:
	ldr	x0, [x0, _kgdbts_regs@GOTPAGEOFF]
	bl	_instruction_pointer
	cmp	x19, w0, sxtw
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x0, _kgdbts_regs@GOTPAGE
Lloh14:
	ldr	x0, [x0, _kgdbts_regs@GOTPAGEOFF]
	bl	_instruction_pointer
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_eprintk
	mov	w0, #1
LBB0_4:
	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 AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_kgdbts_gdb_regs,8,3            ; @kgdbts_gdb_regs
	.comm	_NUMREGBYTES,4,2                ; @NUMREGBYTES
	.comm	_kgdbts_regs,8,3                ; @kgdbts_regs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stopped at IP: %lx\n"

l_.str.1:                               ; @.str.1
	.asciz	"silent"

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

	.no_dead_strip	_check_and_rewind_pc
.subsections_via_symbols
