	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emul_sstep_put
_emul_sstep_put:                        ## @emul_sstep_put
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_arch_needs_sstep_emulation@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_sstep_state@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	decl	%eax
	cmpl	$3, %eax
	ja	LBB0_13
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	incq	%rdi
	movq	_kgdbts_gdb_regs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_NUMREGBYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kgdb_hex2mem
	movq	(%rbx), %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
	movq	%rax, %rsi
	callq	_v2printk
	movq	%rbx, %rdi
	callq	_instruction_pointer
	movq	_BREAK_INSTR_SIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_sstep_addr@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_14
LBB0_1:
	incq	%rdi
	movl	$2, %edx
	callq	_strncmp
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str.6(%rip), %rdi
	callq	_eprintk
	jmp	LBB0_14
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_7
LBB0_14:
	movq	_ts@GOTPCREL(%rip), %rax
	decl	(%rax)
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rdi
LBB0_7:
	callq	_eprintk
	movl	$1, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_12:
	movl	$0, (%rbx)
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_arch_needs_sstep_emulation,4,2 ## @arch_needs_sstep_emulation
	.comm	_sstep_state,4,2                ## @sstep_state
	.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	_BREAK_INSTR_SIZE,8,3           ## @BREAK_INSTR_SIZE
	.comm	_sstep_addr,8,3                 ## @sstep_addr
L_.str.1:                               ## @.str.1
	.asciz	"$OK"

L_.str.2:                               ## @.str.2
	.asciz	"kgdbts: failed sstep break set\n"

L_.str.3:                               ## @.str.3
	.asciz	"$T0"

L_.str.4:                               ## @.str.4
	.asciz	"kgdbts: failed continue sstep\n"

L_.str.5:                               ## @.str.5
	.asciz	"kgdbts: failed sstep break unset\n"

L_.str.6:                               ## @.str.6
	.asciz	"kgdbts: ERROR failed sstep put emulation\n"

	.comm	_ts,4,2                         ## @ts
	.no_dead_strip	_emul_sstep_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emul_sstep_put
_emul_sstep_put:                        ; @emul_sstep_put
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _arch_needs_sstep_emulation@GOTPAGE
Lloh1:
	ldr	x8, [x8, _arch_needs_sstep_emulation@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x19, _sstep_state@GOTPAGE
Lloh4:
	ldr	x19, [x19, _sstep_state@GOTPAGEOFF]
	ldr	w8, [x19]
	sub	w8, w8, #1
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.2:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	add	x0, x0, #1
Lloh7:
	adrp	x19, _kgdbts_gdb_regs@GOTPAGE
Lloh8:
	ldr	x19, [x19, _kgdbts_gdb_regs@GOTPAGEOFF]
	ldr	x1, [x19]
Lloh9:
	adrp	x8, _NUMREGBYTES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NUMREGBYTES@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_kgdb_hex2mem
	ldr	x0, [x19]
Lloh12:
	adrp	x19, _kgdbts_regs@GOTPAGE
Lloh13:
	ldr	x19, [x19, _kgdbts_regs@GOTPAGEOFF]
	mov	x1, x19
	bl	_gdb_regs_to_pt_regs
	mov	x0, x19
	bl	_instruction_pointer
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_v2printk
	mov	x0, x19
	bl	_instruction_pointer
Lloh16:
	adrp	x8, _BREAK_INSTR_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BREAK_INSTR_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x8, x8, x0
Lloh19:
	adrp	x9, _sstep_addr@GOTPAGE
Lloh20:
	ldr	x9, [x9, _sstep_addr@GOTPAGEOFF]
Lloh21:
	str	x8, [x9]
	b	LBB0_10
LBB0_4:
	add	x0, x0, #1
	mov	w2, #2
	bl	_strncmp
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_14
LBB0_5:
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_eprintk
	b	LBB0_10
LBB0_6:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_10
; %bb.7:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_8:
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_10
; %bb.9:
Lloh30:
	adrp	x0, l_.str.4@PAGE
Lloh31:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_10:
	mov	w0, #0
Lloh32:
	adrp	x8, _ts@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ts@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	b	LBB0_14
LBB0_11:
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_15
; %bb.12:
Lloh36:
	adrp	x0, l_.str.5@PAGE
Lloh37:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_13:
	bl	_eprintk
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	str	wzr, [x19]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
                                        ; -- End function
	.comm	_arch_needs_sstep_emulation,4,2 ; @arch_needs_sstep_emulation
	.comm	_sstep_state,4,2                ; @sstep_state
	.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	_BREAK_INSTR_SIZE,8,3           ; @BREAK_INSTR_SIZE
	.comm	_sstep_addr,8,3                 ; @sstep_addr
l_.str.1:                               ; @.str.1
	.asciz	"$OK"

l_.str.2:                               ; @.str.2
	.asciz	"kgdbts: failed sstep break set\n"

l_.str.3:                               ; @.str.3
	.asciz	"$T0"

l_.str.4:                               ; @.str.4
	.asciz	"kgdbts: failed continue sstep\n"

l_.str.5:                               ; @.str.5
	.asciz	"kgdbts: failed sstep break unset\n"

l_.str.6:                               ; @.str.6
	.asciz	"kgdbts: ERROR failed sstep put emulation\n"

	.comm	_ts,4,2                         ; @ts
	.no_dead_strip	_emul_sstep_put
.subsections_via_symbols
