	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_select_td                 ## -- Begin function r600_select_td
	.p2align	4, 0x90
_r600_select_td:                        ## @r600_select_td
	.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
	movl	%esi, %ebx
	movq	_R600_TD_AUTO@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	%ebx, (%rax)
	movq	_SCLK_PWRMGT_CNTL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_FIR_FORCE_TREND_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmovnel	%edx, %esi
	notl	%edx
	callq	_WREG32_P
	movq	_R600_TD_UP@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movq	_FIR_TREND_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	xorl	%esi, %esi
	callq	_WREG32_P
LBB0_2:
	movq	_R600_TD_DOWN@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	movq	_FIR_TREND_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	notl	%edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WREG32_P                       ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R600_TD_AUTO,4,2               ## @R600_TD_AUTO
	.comm	_SCLK_PWRMGT_CNTL,4,2           ## @SCLK_PWRMGT_CNTL
	.comm	_FIR_FORCE_TREND_SEL,4,2        ## @FIR_FORCE_TREND_SEL
	.comm	_R600_TD_UP,4,2                 ## @R600_TD_UP
	.comm	_FIR_TREND_MODE,4,2             ## @FIR_TREND_MODE
	.comm	_R600_TD_DOWN,4,2               ## @R600_TD_DOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_select_td                 ; -- Begin function r600_select_td
	.p2align	2
_r600_select_td:                        ; @r600_select_td
	.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	x19, x1
Lloh0:
	adrp	x8, _R600_TD_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R600_TD_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _SCLK_PWRMGT_CNTL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SCLK_PWRMGT_CNTL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh5:
	adrp	x9, _FIR_FORCE_TREND_SEL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FIR_FORCE_TREND_SEL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mvn	w2, w9
	cmp	w8, w1
	csel	w1, wzr, w9, eq
	bl	_WREG32_P
Lloh8:
	adrp	x8, _R600_TD_UP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R600_TD_UP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x21, _FIR_TREND_MODE@GOTPAGE
Lloh12:
	ldr	x21, [x21, _FIR_TREND_MODE@GOTPAGEOFF]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x20]
	ldr	w8, [x21]
	mvn	w2, w8
	mov	w1, #0
	bl	_WREG32_P
LBB0_2:
Lloh13:
	adrp	x8, _R600_TD_DOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _R600_TD_DOWN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x20]
	ldr	w1, [x21]
	mvn	w2, w1
	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	_WREG32_P
LBB0_4:
	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 AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_R600_TD_AUTO,4,2               ; @R600_TD_AUTO
	.comm	_SCLK_PWRMGT_CNTL,4,2           ; @SCLK_PWRMGT_CNTL
	.comm	_FIR_FORCE_TREND_SEL,4,2        ; @FIR_FORCE_TREND_SEL
	.comm	_R600_TD_UP,4,2                 ; @R600_TD_UP
	.comm	_FIR_TREND_MODE,4,2             ; @FIR_TREND_MODE
	.comm	_R600_TD_DOWN,4,2               ; @R600_TD_DOWN
.subsections_via_symbols
