	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_bpmp_channel_get_thread_index
_tegra_bpmp_channel_get_thread_index:   ## @tegra_bpmp_channel_get_thread_index
	.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	(%rdi), %rcx
	subq	(%rcx), %rax
	shrq	$3, %rax
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	8(%rcx), %rcx
	cmpl	%eax, (%rcx)
	ja	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tegra_bpmp_channel_get_thread_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_bpmp_channel_get_thread_index
_tegra_bpmp_channel_get_thread_index:   ; @tegra_bpmp_channel_get_thread_index
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x9, [x8]
	sub	x9, x0, x9
	lsr	x0, x9, #3
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	cmp	w8, w0
	b.hi	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tegra_bpmp_channel_get_thread_index
.subsections_via_symbols
