	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v9_0_get_csb_size
_gfx_v9_0_get_csb_size:                 ## @gfx_v9_0_get_csb_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_gfx9_cs_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	_SECT_CONTEXT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$5, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rcx), %rsi
	addq	$16, %rcx
	testq	%rsi, %rsi
	je	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpq	$0, 8(%rsi)
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, (%rcx)
	jne	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rsi), %edi
	addl	%edi, %eax
	addl	$2, %eax
	cmpq	$0, 24(%rsi)
	leaq	16(%rsi), %rsi
	jne	LBB0_5
	jmp	LBB0_2
LBB0_6:
	movl	$5, %eax
LBB0_7:
	addl	$4, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gfx9_cs_data,8,3               ## @gfx9_cs_data
	.comm	_SECT_CONTEXT,8,3               ## @SECT_CONTEXT
	.no_dead_strip	_gfx_v9_0_get_csb_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v9_0_get_csb_size
_gfx_v9_0_get_csb_size:                 ; @gfx_v9_0_get_csb_size
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _gfx9_cs_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gfx9_cs_data@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x11, [x8, #8]
	cbz	x11, LBB0_6
; %bb.1:
Lloh3:
	adrp	x9, _SECT_CONTEXT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SECT_CONTEXT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x9]
	mov	w9, #5
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x8, #24]
	add	x8, x8, #16
	cbz	x11, LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x12, [x11, #8]
	cbz	x12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x8]
	cmp	x12, x10
	b.ne	LBB0_8
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x11]
	add	w9, w9, w12
	add	w9, w9, #2
	ldr	x12, [x11, #24]
	add	x11, x11, #16
	cbnz	x12, LBB0_5
	b	LBB0_2
LBB0_6:
	mov	w9, #5
LBB0_7:
	add	w0, w9, #4
	ret
LBB0_8:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_gfx9_cs_data,8,3               ; @gfx9_cs_data
	.comm	_SECT_CONTEXT,8,3               ; @SECT_CONTEXT
	.no_dead_strip	_gfx_v9_0_get_csb_size
.subsections_via_symbols
