	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_gdp_get_current_nodes
_sti_gdp_get_current_nodes:             ## @sti_gdp_get_current_nodes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_GAM_GDP_NVN_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	callq	_readl
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_GDP_NODE_NB_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.2:
	movq	8(%r14), %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rax), %ebx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	4(%rax), %ebx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %rax
	decq	%rcx
	jne	LBB0_3
LBB0_6:
	movq	%r14, %rdi
	callq	_sti_plane_to_str
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_DRM_DEBUG_DRIVER
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GAM_GDP_NVN_OFFSET,8,3         ## @GAM_GDP_NVN_OFFSET
	.comm	_GDP_NODE_NB_BANK,4,2           ## @GDP_NODE_NB_BANK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning, NVN 0x%08X for %s does not match any node\n"

	.no_dead_strip	_sti_gdp_get_current_nodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_gdp_get_current_nodes
_sti_gdp_get_current_nodes:             ; @sti_gdp_get_current_nodes
	.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
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _GAM_GDP_NVN_OFFSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GAM_GDP_NVN_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _GDP_NODE_NB_BANK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GDP_NODE_NB_BANK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	x0, [x19, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x0]
	cmp	w20, w9
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x0, #4]
	cmp	w20, w9
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, #8
	subs	x8, x8, #1
	b.ne	LBB0_3
LBB0_6:
	mov	x0, x19
	bl	_sti_plane_to_str
	mov	x2, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_DRIVER
	mov	x0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GAM_GDP_NVN_OFFSET,8,3         ; @GAM_GDP_NVN_OFFSET
	.comm	_GDP_NODE_NB_BANK,4,2           ; @GDP_NODE_NB_BANK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning, NVN 0x%08X for %s does not match any node\n"

	.no_dead_strip	_sti_gdp_get_current_nodes
.subsections_via_symbols
