	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_odn_update_power_state
_vega10_odn_update_power_state:         ## @vega10_odn_update_power_state
	.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	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	24(%r14), %rbx
	callq	_cast_phw_vega10_power_state
	movslq	(%rax), %rcx
	decq	%rcx
	movq	8(%rax), %rax
	leaq	(%rcx,%rcx,2), %rcx
	movq	40(%rbx), %rdx
	movslq	32(%rbx), %rsi
	movq	-8(%rdx,%rsi,8), %rdx
	cmpq	%rdx, (%rax,%rcx,8)
	je	LBB0_3
## %bb.2:
	leaq	(%rax,%rcx,8), %rsi
	movq	%rdx, (%rsi)
LBB0_3:
	movq	24(%rbx), %rdx
	movslq	16(%rbx), %rsi
	movq	-8(%rdx,%rsi,8), %rdx
	cmpq	%rdx, 8(%rax,%rcx,8)
	je	LBB0_5
## %bb.4:
	leaq	(%rax,%rcx,8), %rsi
	addq	$8, %rsi
	movq	%rdx, (%rsi)
LBB0_5:
	movq	8(%rbx), %rdx
	movslq	(%rbx), %rsi
	movq	-8(%rdx,%rsi,8), %rdx
	cmpq	%rdx, 16(%rax,%rcx,8)
	je	LBB0_7
## %bb.6:
	leaq	(%rax,%rcx,8), %rax
	addq	$16, %rax
	movq	%rdx, (%rax)
LBB0_7:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.8:
	movslq	(%r14), %rax
	movslq	4(%r14), %rcx
	decq	%rcx
	imulq	%rax, %rcx
	addq	%rcx, %rdi
	callq	_cast_phw_vega10_power_state
	movslq	(%rax), %rcx
	decq	%rcx
	movq	8(%rax), %rax
	leaq	(%rcx,%rcx,2), %rcx
	movq	40(%rbx), %rdx
	movslq	32(%rbx), %rsi
	movq	-8(%rdx,%rsi,8), %rdx
	cmpq	%rdx, (%rax,%rcx,8)
	je	LBB0_10
## %bb.9:
	leaq	(%rax,%rcx,8), %rsi
	movq	%rdx, (%rsi)
LBB0_10:
	movq	24(%rbx), %rdx
	movslq	16(%rbx), %rsi
	movq	-8(%rdx,%rsi,8), %rdx
	cmpq	%rdx, 8(%rax,%rcx,8)
	je	LBB0_12
## %bb.11:
	leaq	(%rax,%rcx,8), %rsi
	addq	$8, %rsi
	movq	%rdx, (%rsi)
LBB0_12:
	movq	8(%rbx), %rdx
	movslq	(%rbx), %rsi
	movq	-8(%rdx,%rsi,8), %rdx
	cmpq	%rdx, 16(%rax,%rcx,8)
	je	LBB0_14
## %bb.13:
	leaq	(%rax,%rcx,8), %rax
	addq	$16, %rax
	movq	%rdx, (%rax)
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vega10_odn_update_power_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_odn_update_power_state
_vega10_odn_update_power_state:         ; @vega10_odn_update_power_state
	.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	x0, [x0, #16]
	cbz	x0, LBB0_14
; %bb.1:
	ldr	x20, [x19, #24]
	bl	_cast_phw_vega10_power_state
	ldrsw	x8, [x0]
	sub	x8, x8, #1
	ldr	x9, [x0, #8]
	mov	w10, #24
	madd	x10, x8, x10, x9
	ldr	x12, [x10]
	ldr	x11, [x20, #40]
	ldrsw	x13, [x20, #32]
	add	x11, x11, x13, lsl #3
	ldur	x11, [x11, #-8]
	cmp	x12, x11
	b.eq	LBB0_3
; %bb.2:
	str	x11, [x10]
LBB0_3:
	mov	w10, #24
	madd	x10, x8, x10, x9
	ldr	x12, [x10, #8]!
	ldr	x11, [x20, #24]
	ldrsw	x13, [x20, #16]
	add	x11, x11, x13, lsl #3
	ldur	x11, [x11, #-8]
	cmp	x12, x11
	b.eq	LBB0_5
; %bb.4:
	str	x11, [x10]
LBB0_5:
	mov	w10, #24
	madd	x8, x8, x10, x9
	ldr	x10, [x8, #16]!
	ldr	x9, [x20, #8]
	ldrsw	x11, [x20]
	add	x9, x9, x11, lsl #3
	ldur	x9, [x9, #-8]
	cmp	x10, x9
	b.eq	LBB0_7
; %bb.6:
	str	x9, [x8]
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.8:
	ldpsw	x9, x10, [x19]
	sub	x10, x10, #1
	madd	x0, x10, x9, x8
	bl	_cast_phw_vega10_power_state
	ldrsw	x8, [x0]
	sub	x8, x8, #1
	ldr	x9, [x0, #8]
	mov	w10, #24
	madd	x10, x8, x10, x9
	ldr	x12, [x10]
	ldr	x11, [x20, #40]
	ldrsw	x13, [x20, #32]
	add	x11, x11, x13, lsl #3
	ldur	x11, [x11, #-8]
	cmp	x12, x11
	b.eq	LBB0_10
; %bb.9:
	str	x11, [x10]
LBB0_10:
	mov	w10, #24
	madd	x10, x8, x10, x9
	ldr	x12, [x10, #8]!
	ldr	x11, [x20, #24]
	ldrsw	x13, [x20, #16]
	add	x11, x11, x13, lsl #3
	ldur	x11, [x11, #-8]
	cmp	x12, x11
	b.eq	LBB0_12
; %bb.11:
	str	x11, [x10]
LBB0_12:
	mov	w10, #24
	madd	x8, x8, x10, x9
	ldr	x10, [x8, #16]!
	ldr	x9, [x20, #8]
	ldrsw	x11, [x20]
	add	x9, x9, x11, lsl #3
	ldur	x9, [x9, #-8]
	cmp	x10, x9
	b.eq	LBB0_14
; %bb.13:
	str	x9, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vega10_odn_update_power_state
.subsections_via_symbols
