	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kgdb_set_proc_cmd
_kgdb_set_proc_cmd:                     ## @kgdb_set_proc_cmd
	.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	%rdi, %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_error_no_arg
LBB0_2:
	movq	_kvm@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_4:
	movq	%rbx, %rdi
	callq	_parse_and_eval_address
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PINKERNEL
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movq	%rbx, %rdi
	callq	_kgdb_thr_lookup_paddr
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	callq	_kgdb_set_proc_cmd.cold.2
	jmp	LBB0_7
LBB0_5:
	movl	%ebx, %edi
	callq	_kgdb_thr_lookup_pid
	testq	%rax, %rax
	je	LBB0_6
LBB0_10:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kgdb_switch_to_thread          ## TAILCALL
LBB0_6:
	callq	_kgdb_set_proc_cmd.cold.1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function kgdb_set_proc_cmd.cold.1
_kgdb_set_proc_cmd.cold.1:              ## @kgdb_set_proc_cmd.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.2(%rip), %rdi
	callq	_error
	ud2
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function kgdb_set_proc_cmd.cold.2
_kgdb_set_proc_cmd.cold.2:              ## @kgdb_set_proc_cmd.cold.2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.3(%rip), %rdi
	callq	_error
	ud2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"proc address for the new context"

	.comm	_kvm,8,3                        ## @kvm
L_.str.1:                               ## @.str.1
	.asciz	"only supported for core file target"

L_.str.2:                               ## @.str.2
	.asciz	"invalid pid"

L_.str.3:                               ## @.str.3
	.asciz	"invalid proc address"

	.no_dead_strip	_kgdb_set_proc_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kgdb_set_proc_cmd
_kgdb_set_proc_cmd:                     ; @kgdb_set_proc_cmd
	.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	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error_no_arg
LBB0_2:
Lloh2:
	adrp	x8, _kvm@GOTPAGE
Lloh3:
	ldr	x8, [x8, _kvm@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_4:
	mov	x0, x19
	bl	_parse_and_eval_address
	mov	x19, x0
	bl	_PINKERNEL
	cbz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_kgdb_thr_lookup_paddr
	cbnz	x0, LBB0_8
; %bb.6:
	bl	_kgdb_set_proc_cmd.cold.2
LBB0_7:
	mov	x0, x19
	bl	_kgdb_thr_lookup_pid
	cbz	x0, LBB0_9
LBB0_8:
	ldr	w0, [x0]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kgdb_switch_to_thread
LBB0_9:
	bl	_kgdb_set_proc_cmd.cold.1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function kgdb_set_proc_cmd.cold.1
_kgdb_set_proc_cmd.cold.1:              ; @kgdb_set_proc_cmd.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
	brk	#0x1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function kgdb_set_proc_cmd.cold.2
_kgdb_set_proc_cmd.cold.2:              ; @kgdb_set_proc_cmd.cold.2
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
	brk	#0x1
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"proc address for the new context"

	.comm	_kvm,8,3                        ; @kvm
l_.str.1:                               ; @.str.1
	.asciz	"only supported for core file target"

l_.str.2:                               ; @.str.2
	.asciz	"invalid pid"

l_.str.3:                               ; @.str.3
	.asciz	"invalid proc address"

	.no_dead_strip	_kgdb_set_proc_cmd
.subsections_via_symbols
