	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv770_program_dcodt_before_state_switch
_rv770_program_dcodt_before_state_switch: ## @rv770_program_dcodt_before_state_switch
	.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
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_rv770_get_pi
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_rv770_get_ps
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_rv770_get_ps
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	cmpq	%rdx, (%rax)
	setg	%cl
	xorl	%esi, %esi
	cmpq	%rdx, (%r15)
	setg	%dl
	setle	%al
	testb	%al, %cl
	jne	LBB0_5
## %bb.2:
	xorb	%dl, %cl
	je	LBB0_5
## %bb.3:
	movq	(%r14), %rcx
	movq	_CHIP_RV730@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.4:
	movq	_CHIP_RV710@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movb	%al, %sil
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rv730_program_dcodt            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_RV730,8,3                 ## @CHIP_RV730
	.comm	_CHIP_RV710,8,3                 ## @CHIP_RV710
	.no_dead_strip	_rv770_program_dcodt_before_state_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv770_program_dcodt_before_state_switch
_rv770_program_dcodt_before_state_switch: ; @rv770_program_dcodt_before_state_switch
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_rv770_get_pi
	mov	x22, x0
	mov	x0, x20
	bl	_rv770_get_ps
	mov	x20, x0
	mov	x0, x21
	bl	_rv770_get_ps
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x9, [x0]
	cmp	x9, x8
	cset	w9, gt
	ldr	x10, [x20]
	cmp	x10, x8
	cset	w1, le
	cset	w8, gt
	and	w10, w9, w1
	tbnz	w10, #0, LBB0_5
; %bb.2:
	eor	w8, w9, w8
	cbz	w8, LBB0_5
; %bb.3:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _CHIP_RV730@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_RV730@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _CHIP_RV710@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CHIP_RV710@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rv730_program_dcodt
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_RV730,8,3                 ; @CHIP_RV730
	.comm	_CHIP_RV710,8,3                 ; @CHIP_RV710
	.no_dead_strip	_rv770_program_dcodt_before_state_switch
.subsections_via_symbols
