	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cudbg_mem_region_size
_cudbg_mem_region_size:                 ## @cudbg_mem_region_size
	.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, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_cudbg_fill_meminfo
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_cudbg_t4_fwcache
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_cudbg_meminfo_get_mem_index
	testl	%eax, %eax
	je	LBB0_4
LBB0_1:
	cltq
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-48(%rbp), %rcx
	movq	-56(%rbp), %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rax
	subq	8(%rcx,%rdx), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cudbg_mem_region_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cudbg_mem_region_size
_cudbg_mem_region_size:                 ; @cudbg_mem_region_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x20, [x0]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x1, sp, #8
	mov	x0, x20
	bl	_cudbg_fill_meminfo
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	bl	_cudbg_t4_fwcache
	add	x1, sp, #8
	mov	x3, sp
	mov	x0, x20
	mov	x2, x19
	bl	_cudbg_meminfo_get_mem_index
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_4
LBB0_2:
	sxtw	x0, w0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	ldp	x9, x8, [sp]
	add	x8, x8, x9, lsl #4
	ldp	x9, x8, [x8]
	sub	x0, x9, x8
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cudbg_mem_region_size
.subsections_via_symbols
