	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_pm_get_type_index       ## -- Begin function radeon_pm_get_type_index
	.p2align	4, 0x90
_radeon_pm_get_type_index:              ## @radeon_pm_get_type_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.1:
	movq	8(%rdi), %r9
	movl	$-1, %ecx
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %r8
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, (%r9,%rax,4)
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ecx
	cmpl	%edx, %ecx
	jne	LBB0_2
## %bb.5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_6:
	movl	4(%rdi), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_pm_get_type_index       ; -- Begin function radeon_pm_get_type_index
	.p2align	2
_radeon_pm_get_type_index:              ; @radeon_pm_get_type_index
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x0, #0
	ldr	x10, [x8, #8]
	mov	w11, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, #1
	cmp	x9, x0
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x0, lsl #2]
	cmp	w12, w1
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w11, w11, #1
	cmp	w11, w2
	b.ne	LBB0_2
; %bb.5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_6:
	ldr	w0, [x8, #4]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
