	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_reg_dump         ## -- Begin function cudbg_collect_reg_dump
	.p2align	4, 0x90
_cudbg_collect_reg_dump:                ## @cudbg_collect_reg_dump
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	movl	(%r15), %edi
	callq	_is_t4
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_T4_REGMAP_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movl	(%r15), %edi
	callq	_is_t5
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movl	(%r15), %edi
	callq	_is_t6
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	_T5_REGMAP_SIZE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edx
LBB0_7:
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cudbg_get_buff
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	-40(%rbp), %rsi
	movl	-48(%rbp), %edx
	movq	%r15, %rdi
	callq	_t4_get_regs
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_cudbg_write_and_release_buff
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%edx, %edx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_T4_REGMAP_SIZE,4,2             ## @T4_REGMAP_SIZE
	.comm	_T5_REGMAP_SIZE,4,2             ## @T5_REGMAP_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_reg_dump         ; -- Begin function cudbg_collect_reg_dump
	.p2align	2
_cudbg_collect_reg_dump:                ; @cudbg_collect_reg_dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	ldr	w0, [x21]
	bl	_is_t4
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _T4_REGMAP_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _T4_REGMAP_SIZE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	w0, [x21]
	bl	_is_t5
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x21]
	bl	_is_t6
	cbz	x0, LBB0_9
LBB0_4:
Lloh2:
	adrp	x8, _T5_REGMAP_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _T5_REGMAP_SIZE@GOTPAGEOFF]
LBB0_5:
	ldr	w2, [x8]
LBB0_6:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_cudbg_get_buff
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x1, [sp, #16]
	ldr	w2, [sp, #8]
	mov	x0, x21
	bl	_t4_get_regs
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_cudbg_write_and_release_buff
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	mov	w2, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_T4_REGMAP_SIZE,4,2             ; @T4_REGMAP_SIZE
	.comm	_T5_REGMAP_SIZE,4,2             ; @T5_REGMAP_SIZE
.subsections_via_symbols
