	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_rss              ## -- Begin function cudbg_collect_rss
	.p2align	4, 0x90
_cudbg_collect_rss:                     ## @cudbg_collect_rss
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	%r12, %rdi
	callq	_t4_chip_rss_size
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %edx
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_cudbg_get_buff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_t4_read_rss
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	movl	%eax, (%r15)
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_cudbg_put_buff
	jmp	LBB0_4
LBB0_3:
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_cudbg_write_and_release_buff
	movl	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cudbg_collect_rss              ; -- Begin function cudbg_collect_rss
	.p2align	2
_cudbg_collect_rss:                     ; @cudbg_collect_rss
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
	stp	xzr, xzr, [sp]
	mov	x0, x22
	bl	_t4_chip_rss_size
	lsl	w2, w0, #2
	mov	x3, sp
	mov	x0, x19
	mov	x1, x20
	bl	_cudbg_get_buff
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x1, [sp]
	mov	x0, x22
	bl	_t4_read_rss
	cbz	w0, LBB0_3
; %bb.2:
	mov	x23, x0
	str	w0, [x21]
	mov	x1, sp
	mov	x0, x19
	bl	_cudbg_put_buff
	b	LBB0_4
LBB0_3:
	mov	x1, sp
	mov	x0, x19
	mov	x2, x20
	bl	_cudbg_write_and_release_buff
	mov	x23, x0
LBB0_4:
	mov	x0, x23
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
