	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_arch_needs_sstep_emulation@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.4:
	movq	_sstep_state@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	decl	%eax
	cmpl	$3, %eax
	ja	LBB0_16
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	incq	%rbx
	movq	_kgdbts_gdb_regs@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	_NUMREGBYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_kgdb_hex2mem
	movq	(%r14), %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
	movq	_cont_addr@GOTPCREL(%rip), %rax
	movq	_BREAK_INSTR_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	_sstep_addr@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	jmp	LBB0_17
LBB0_1:
	leaq	11(%rbx), %rax
	movq	%rax, -24(%rbp)
	movl	$1, %eax
	cmpb	$84, 1(%rbx)
	jne	LBB0_19
## %bb.2:
	cmpb	$48, 2(%rbx)
	jne	LBB0_19
## %bb.3:
	movq	_sstep_thread_id@GOTPCREL(%rip), %rsi
	leaq	-24(%rbp), %rdi
	callq	_kgdb_hex2long
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.6(%rip), %rdi
	callq	_eprintk
	jmp	LBB0_17
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_17
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_9
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.5(%rip), %rdi
LBB0_9:
	callq	_eprintk
	movl	$1, %eax
	jmp	LBB0_19
LBB0_12:
	addq	$11, %rbx
	movq	%rbx, -24(%rbp)
	movq	_sstep_thread_id@GOTPCREL(%rip), %rsi
	leaq	-24(%rbp), %rdi
	callq	_kgdb_hex2long
LBB0_17:
	movq	_ts@GOTPCREL(%rip), %rax
	decl	(%rax)
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	movl	$0, (%r14)
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_arch_needs_sstep_emulation,4,2 ## @arch_needs_sstep_emulation
	.comm	_sstep_thread_id,4,2            ## @sstep_thread_id
	.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	_cont_addr,8,3                  ## @cont_addr
	.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:
	sub	sp, sp, #48
	.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
	mov	x19, x0
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	x20, _sstep_state@GOTPAGE
Lloh4:
	ldr	x20, [x20, _sstep_state@GOTPAGEOFF]
	ldr	w8, [x20]
	sub	w8, w8, #1
	cmp	w8, #3
	b.hi	LBB0_7
; %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, x19, #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
Lloh16:
	adrp	x8, _cont_addr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _cont_addr@GOTPAGEOFF]
Lloh18:
	adrp	x9, _BREAK_INSTR_SIZE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BREAK_INSTR_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	ldr	x9, [x9]
	add	x8, x9, x8
Lloh22:
	adrp	x9, _sstep_addr@GOTPAGE
Lloh23:
	ldr	x9, [x9, _sstep_addr@GOTPAGEOFF]
Lloh24:
	str	x8, [x9]
	b	LBB0_17
LBB0_4:
	add	x8, x19, #11
	str	x8, [sp, #8]
	ldrb	w8, [x19, #1]
	cmp	w8, #84
	b.ne	LBB0_15
; %bb.5:
	ldrb	w8, [x19, #2]
	cmp	w8, #48
	b.ne	LBB0_15
; %bb.6:
Lloh25:
	adrp	x1, _sstep_thread_id@GOTPAGE
Lloh26:
	ldr	x1, [x1, _sstep_thread_id@GOTPAGEOFF]
	add	x0, sp, #8
	bl	_kgdb_hex2long
	mov	w0, #0
	b	LBB0_18
LBB0_7:
Lloh27:
	adrp	x0, l_.str.6@PAGE
Lloh28:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_eprintk
	b	LBB0_17
LBB0_8:
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #3
	bl	_strncmp
	cbz	w0, LBB0_17
; %bb.9:
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_10:
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w2, #3
	bl	_strncmp
	cbz	w0, LBB0_16
; %bb.11:
Lloh35:
	adrp	x0, l_.str.4@PAGE
Lloh36:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #3
	bl	_strncmp
	cbz	w0, LBB0_19
; %bb.13:
Lloh39:
	adrp	x0, l_.str.5@PAGE
Lloh40:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_14:
	bl	_eprintk
LBB0_15:
	mov	w0, #1
	b	LBB0_18
LBB0_16:
	add	x8, x19, #11
	str	x8, [sp, #8]
Lloh41:
	adrp	x1, _sstep_thread_id@GOTPAGE
Lloh42:
	ldr	x1, [x1, _sstep_thread_id@GOTPAGEOFF]
	add	x0, sp, #8
	bl	_kgdb_hex2long
LBB0_17:
	mov	w0, #0
Lloh43:
	adrp	x8, _ts@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ts@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_19:
	str	wzr, [x20]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.comm	_arch_needs_sstep_emulation,4,2 ; @arch_needs_sstep_emulation
	.comm	_sstep_thread_id,4,2            ; @sstep_thread_id
	.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	_cont_addr,8,3                  ; @cont_addr
	.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
