	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_check_states_equal
_vega10_check_states_equal:             ## @vega10_check_states_equal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	movq	%rcx, %r14
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	%rsi, %rdi
	callq	_cast_const_phw_vega10_power_state
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_cast_const_phw_vega10_power_state
	movq	%rax, %r15
	movl	(%r12), %eax
	cmpl	(%r15), %eax
	jne	LBB0_9
## %bb.5:
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r12), %rdi
	addq	%rbx, %rdi
	movq	48(%r15), %rsi
	addq	%rbx, %rsi
	callq	_vega10_are_power_levels_equal
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_8
LBB0_10:
	movq	32(%r12), %rdx
	xorl	%eax, %eax
	movl	$0, %ecx
	cmpq	32(%r15), %rdx
	jne	LBB0_12
## %bb.11:
	movq	40(%r12), %rdx
	xorl	%ecx, %ecx
	cmpq	40(%r15), %rdx
	sete	%cl
LBB0_12:
	movq	16(%r12), %rdx
	cmpq	16(%r15), %rdx
	jne	LBB0_14
## %bb.13:
	movq	24(%r12), %rdx
	xorl	%eax, %eax
	cmpq	24(%r15), %rdx
	sete	%al
LBB0_14:
	andl	%ecx, %eax
	movq	8(%r12), %rcx
	xorl	%edx, %edx
	cmpq	8(%r15), %rcx
	sete	%dl
	andl	%eax, %edx
	movl	%edx, (%r14)
	jmp	LBB0_15
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_9:
	movl	$0, (%r14)
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vega10_check_states_equal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_check_states_equal
_vega10_check_states_equal:             ; @vega10_check_states_equal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x1, LBB0_10
; %bb.1:
	mov	x21, x2
	cbz	x2, LBB0_10
; %bb.2:
	mov	x19, x3
	cbz	x3, LBB0_10
; %bb.3:
	mov	x0, x1
	bl	_cast_const_phw_vega10_power_state
	mov	x20, x0
	mov	x0, x21
	bl	_cast_const_phw_vega10_power_state
	ldr	w8, [x20]
	ldr	w9, [x0]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.4:
	mov	x21, x0
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x22, #0
	mov	x23, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #48]
	add	x0, x8, x22
	ldr	x8, [x21, #48]
	add	x1, x8, x22
	bl	_vega10_are_power_levels_equal
	cbz	w0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_6
LBB0_8:
	ldr	x8, [x20, #32]
	ldr	x9, [x21, #32]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.9:
	ldr	x8, [x20, #40]
	ldr	x9, [x21, #40]
	cmp	x8, x9
	cset	w8, eq
	b	LBB0_14
LBB0_10:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_11:
	mov	w0, #0
LBB0_12:
	str	wzr, [x19]
	b	LBB0_18
LBB0_13:
	mov	w8, #0
LBB0_14:
	ldr	x9, [x20, #16]
	ldr	x10, [x21, #16]
	cmp	x9, x10
	b.ne	LBB0_16
; %bb.15:
	ldr	x9, [x20, #24]
	ldr	x10, [x21, #24]
	cmp	x9, x10
	cset	w9, eq
	b	LBB0_17
LBB0_16:
	mov	w9, #0
LBB0_17:
	mov	w0, #0
	and	w8, w9, w8
	ldr	x9, [x20, #8]
	ldr	x10, [x21, #8]
	cmp	x9, x10
	cset	w9, eq
	and	w8, w8, w9
	str	w8, [x19]
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vega10_check_states_equal
.subsections_via_symbols
