	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_sci_get_resource_type
_ti_sci_get_resource_type:              ## @ti_sci_get_resource_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_6
## %bb.1:
	movq	(%r8), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	leaq	16(%r8), %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	movq	(%rdi), %rax
	addq	$16, %rdi
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_6:
	movq	%rsi, (%rdx)
	jmp	LBB0_7
LBB0_8:
	movl	%ecx, %eax
	shlq	$4, %rax
	movq	8(%r8,%rax), %rax
	movq	%rax, (%rdx)
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ti_sci_get_resource_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_sci_get_resource_type
_ti_sci_get_resource_type:              ; @ti_sci_get_resource_type
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x11, [x8]
	cbz	x11, LBB0_5
; %bb.2:
	mov	x9, #0
	add	x10, x8, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x11, x1
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	ldr	x11, [x10], #16
	cbnz	x11, LBB0_3
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_6:
	mov	w0, #0
	str	x1, [x2]
	ret
LBB0_7:
	mov	w0, #0
	add	x8, x8, w9, uxtw #4
	ldr	x8, [x8, #8]
	str	x8, [x2]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ti_sci_get_resource_type
.subsections_via_symbols
