	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sparc_software_single_step     ## -- Begin function sparc_software_single_step
	.p2align	4, 0x90
_sparc_software_single_step:            ## @sparc_software_single_step
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	_current_gdbarch@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gdbarch_tdep
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_sparc_address_from_register
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_sparc_address_from_register
	movq	%rax, _sparc_software_single_step.npc(%rip)
	leaq	_sparc_software_single_step.npc(%rip), %rsi
	movq	%r14, %rdi
	callq	_sparc_analyze_control_transfer
	movq	%rax, _sparc_software_single_step.nnpc(%rip)
	movq	_sparc_software_single_step.npc(%rip), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	leaq	_sparc_software_single_step.npc_save(%rip), %rsi
	callq	_target_insert_breakpoint
	movq	_sparc_software_single_step.nnpc(%rip), %rax
LBB0_3:
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	_sparc_software_single_step.nnpc_save(%rip), %rsi
	movq	%rax, %rdi
	callq	_target_insert_breakpoint
	cmpq	$0, _sparc_software_single_step.nnpc(%rip)
	setne	%al
	jmp	LBB0_6
LBB0_7:
	movq	_sparc_software_single_step.npc(%rip), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	leaq	_sparc_software_single_step.npc_save(%rip), %rsi
	callq	_target_remove_breakpoint
LBB0_9:
	movq	_sparc_software_single_step.nnpc(%rip), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.11:
	leaq	_sparc_software_single_step.nnpc_save(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_target_remove_breakpoint       ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	cmpq	$0, _sparc_software_single_step.npc(%rip)
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_gdb_assert
	movq	_sparc_software_single_step.nnpc(%rip), %rax
	xorl	%edi, %edi
	cmpq	_sparc_software_single_step.npc(%rip), %rax
	setne	%dil
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gdb_assert                     ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current_gdbarch,4,2            ## @current_gdbarch
.zerofill __DATA,__bss,_sparc_software_single_step.npc,8,3 ## @sparc_software_single_step.npc
.zerofill __DATA,__bss,_sparc_software_single_step.nnpc,8,3 ## @sparc_software_single_step.nnpc
.zerofill __DATA,__bss,_sparc_software_single_step.npc_save,4,0 ## @sparc_software_single_step.npc_save
.zerofill __DATA,__bss,_sparc_software_single_step.nnpc_save,4,0 ## @sparc_software_single_step.nnpc_save
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sparc_software_single_step     ; -- Begin function sparc_software_single_step
	.p2align	2
_sparc_software_single_step:            ; @sparc_software_single_step
	.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
	mov	x20, x1
Lloh0:
	adrp	x8, _current_gdbarch@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current_gdbarch@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_gdbarch_tdep
	cbz	w20, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_sparc_address_from_register
	mov	x20, x0
	ldr	w0, [x19]
	bl	_sparc_address_from_register
Lloh3:
	adrp	x19, _sparc_software_single_step.npc@PAGE
Lloh4:
	add	x19, x19, _sparc_software_single_step.npc@PAGEOFF
	str	x0, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_sparc_analyze_control_transfer
	adrp	x20, _sparc_software_single_step.nnpc@PAGE
	str	x0, [x20, _sparc_software_single_step.nnpc@PAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, _sparc_software_single_step.npc_save@PAGE
Lloh6:
	add	x1, x1, _sparc_software_single_step.npc_save@PAGEOFF
	mov	x0, x8
	bl	_target_insert_breakpoint
	ldr	x0, [x20, _sparc_software_single_step.nnpc@PAGEOFF]
LBB0_3:
	cbz	x0, LBB0_9
; %bb.4:
Lloh7:
	adrp	x1, _sparc_software_single_step.nnpc_save@PAGE
Lloh8:
	add	x1, x1, _sparc_software_single_step.nnpc_save@PAGEOFF
	bl	_target_insert_breakpoint
	ldr	x8, [x20, _sparc_software_single_step.nnpc@PAGEOFF]
	cmp	x8, #0
	cset	w8, ne
	b	LBB0_10
LBB0_5:
Lloh9:
	adrp	x8, _sparc_software_single_step.npc@PAGE
Lloh10:
	ldr	x0, [x8, _sparc_software_single_step.npc@PAGEOFF]
	cbz	x0, LBB0_7
; %bb.6:
Lloh11:
	adrp	x1, _sparc_software_single_step.npc_save@PAGE
Lloh12:
	add	x1, x1, _sparc_software_single_step.npc_save@PAGEOFF
	bl	_target_remove_breakpoint
LBB0_7:
Lloh13:
	adrp	x8, _sparc_software_single_step.nnpc@PAGE
Lloh14:
	ldr	x0, [x8, _sparc_software_single_step.nnpc@PAGEOFF]
	cbz	x0, LBB0_11
; %bb.8:
Lloh15:
	adrp	x1, _sparc_software_single_step.nnpc_save@PAGE
Lloh16:
	add	x1, x1, _sparc_software_single_step.nnpc_save@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_target_remove_breakpoint
LBB0_9:
	mov	w8, #0
LBB0_10:
	adrp	x19, _sparc_software_single_step.npc@PAGE
	ldr	x9, [x19, _sparc_software_single_step.npc@PAGEOFF]
	cmp	x9, #0
	cset	w9, ne
	orr	w0, w9, w8
	bl	_gdb_assert
	ldr	x8, [x20, _sparc_software_single_step.nnpc@PAGEOFF]
	ldr	x9, [x19, _sparc_software_single_step.npc@PAGEOFF]
	cmp	x8, x9
	cset	w0, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gdb_assert
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_current_gdbarch,4,2            ; @current_gdbarch
.zerofill __DATA,__bss,_sparc_software_single_step.npc,8,3 ; @sparc_software_single_step.npc
.zerofill __DATA,__bss,_sparc_software_single_step.nnpc,8,3 ; @sparc_software_single_step.nnpc
.zerofill __DATA,__bss,_sparc_software_single_step.npc_save,4,0 ; @sparc_software_single_step.npc_save
.zerofill __DATA,__bss,_sparc_software_single_step.nnpc_save,4,0 ; @sparc_software_single_step.nnpc_save
.subsections_via_symbols
