	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_get_encoder_enum        ## -- Begin function radeon_get_encoder_enum
	.p2align	4, 0x90
_radeon_get_encoder_enum:               ## @radeon_get_encoder_enum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%eax, %eax
	addl	$-128, %esi
	cmpl	$9, %esi
	ja	LBB0_31
## %bb.1:
	movq	(%rdi), %rdi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rsi
	addq	%rcx, %rsi
	jmpq	*%rsi
LBB0_2:
	cmpl	$3, %edx
	je	LBB0_14
## %bb.3:
	cmpl	$2, %edx
	je	LBB0_12
## %bb.4:
	cmpl	$1, %edx
	jne	LBB0_31
## %bb.5:
	movl	(%rdi), %eax
	movq	_CHIP_RS300@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.6:
	movq	_CHIP_RS400@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.7:
	movq	_CHIP_RS480@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.9:
	callq	_ASIC_IS_AVIVO
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	_ENCODER_INTERNAL_KLDSCP_DAC1_ENUM_ID1@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_24:
	movl	(%rdi), %eax
	movq	_CHIP_RS600@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_27
## %bb.25:
	movq	_CHIP_RS690@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_27
## %bb.26:
	movq	_CHIP_RS740@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_27
LBB0_14:
	callq	_ASIC_IS_AVIVO
	testl	%eax, %eax
	je	LBB0_28
## %bb.15:
	movq	_ENCODER_INTERNAL_KLDSCP_DVO1_ENUM_ID1@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_12:
	callq	_ASIC_IS_AVIVO
	testl	%eax, %eax
	je	LBB0_8
## %bb.13:
	movq	_ENCODER_INTERNAL_KLDSCP_DAC2_ENUM_ID1@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_8:
	movq	_ENCODER_INTERNAL_DAC2_ENUM_ID1@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_16:
	callq	_ASIC_IS_AVIVO
	testl	%eax, %eax
	je	LBB0_17
LBB0_29:
	movq	_ENCODER_INTERNAL_LVTM1_ENUM_ID1@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_18:
	movl	(%rdi), %eax
	movq	_CHIP_RS300@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_28
## %bb.19:
	movq	_CHIP_RS400@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_28
## %bb.20:
	movq	_CHIP_RS480@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_28
## %bb.21:
	callq	_ASIC_IS_AVIVO
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movq	_ENCODER_INTERNAL_KLDSCP_TMDS1_ENUM_ID1@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_28:
	movq	_ENCODER_INTERNAL_DVO1_ENUM_ID1@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_27:
	movq	_ENCODER_INTERNAL_DDI_ENUM_ID1@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_17:
	movq	_ENCODER_INTERNAL_LVDS_ENUM_ID1@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_11:
	movq	_ENCODER_INTERNAL_DAC1_ENUM_ID1@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_23:
	movq	_ENCODER_INTERNAL_TMDS1_ENUM_ID1@GOTPCREL(%rip), %rax
LBB0_30:
	movl	(%rax), %eax
LBB0_31:
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_24
	.long	L0_0_set_16
	.long	L0_0_set_29
	.long	L0_0_set_24
	.long	L0_0_set_18
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_CHIP_RS300,4,2                 ## @CHIP_RS300
	.comm	_CHIP_RS400,4,2                 ## @CHIP_RS400
	.comm	_CHIP_RS480,4,2                 ## @CHIP_RS480
	.comm	_ENCODER_INTERNAL_DAC2_ENUM_ID1,4,2 ## @ENCODER_INTERNAL_DAC2_ENUM_ID1
	.comm	_ENCODER_INTERNAL_KLDSCP_DAC1_ENUM_ID1,4,2 ## @ENCODER_INTERNAL_KLDSCP_DAC1_ENUM_ID1
	.comm	_ENCODER_INTERNAL_DAC1_ENUM_ID1,4,2 ## @ENCODER_INTERNAL_DAC1_ENUM_ID1
	.comm	_ENCODER_INTERNAL_KLDSCP_DAC2_ENUM_ID1,4,2 ## @ENCODER_INTERNAL_KLDSCP_DAC2_ENUM_ID1
	.comm	_ENCODER_INTERNAL_KLDSCP_DVO1_ENUM_ID1,4,2 ## @ENCODER_INTERNAL_KLDSCP_DVO1_ENUM_ID1
	.comm	_ENCODER_INTERNAL_DVO1_ENUM_ID1,4,2 ## @ENCODER_INTERNAL_DVO1_ENUM_ID1
	.comm	_ENCODER_INTERNAL_LVTM1_ENUM_ID1,4,2 ## @ENCODER_INTERNAL_LVTM1_ENUM_ID1
	.comm	_ENCODER_INTERNAL_LVDS_ENUM_ID1,4,2 ## @ENCODER_INTERNAL_LVDS_ENUM_ID1
	.comm	_ENCODER_INTERNAL_KLDSCP_TMDS1_ENUM_ID1,4,2 ## @ENCODER_INTERNAL_KLDSCP_TMDS1_ENUM_ID1
	.comm	_ENCODER_INTERNAL_TMDS1_ENUM_ID1,4,2 ## @ENCODER_INTERNAL_TMDS1_ENUM_ID1
	.comm	_CHIP_RS600,4,2                 ## @CHIP_RS600
	.comm	_CHIP_RS690,4,2                 ## @CHIP_RS690
	.comm	_CHIP_RS740,4,2                 ## @CHIP_RS740
	.comm	_ENCODER_INTERNAL_DDI_ENUM_ID1,4,2 ## @ENCODER_INTERNAL_DDI_ENUM_ID1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_get_encoder_enum        ; -- Begin function radeon_get_encoder_enum
	.p2align	2
_radeon_get_encoder_enum:               ; @radeon_get_encoder_enum
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w1, #128
	cmp	w8, #9
	b.hi	LBB0_8
; %bb.1:
	ldr	x0, [x0]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cmp	w2, #3
	b.eq	LBB0_11
; %bb.3:
	cmp	w2, #2
	b.eq	LBB0_13
; %bb.4:
	cmp	w2, #1
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _CHIP_RS300@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CHIP_RS300@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _CHIP_RS400@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CHIP_RS400@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _CHIP_RS480@GOTPAGE
Lloh9:
	ldr	x11, [x11, _CHIP_RS480@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	b.eq	LBB0_15
; %bb.6:
	bl	_ASIC_IS_AVIVO
	cbz	w0, LBB0_23
; %bb.7:
Lloh11:
	adrp	x8, _ENCODER_INTERNAL_KLDSCP_DAC1_ENUM_ID1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENCODER_INTERNAL_KLDSCP_DAC1_ENUM_ID1@GOTPAGEOFF]
	b	LBB0_25
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w8, [x0]
Lloh13:
	adrp	x9, _CHIP_RS600@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CHIP_RS600@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _CHIP_RS690@GOTPAGE
Lloh17:
	ldr	x10, [x10, _CHIP_RS690@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	adrp	x11, _CHIP_RS740@GOTPAGE
Lloh20:
	ldr	x11, [x11, _CHIP_RS740@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	b.ne	LBB0_11
; %bb.10:
Lloh22:
	adrp	x8, _ENCODER_INTERNAL_DDI_ENUM_ID1@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENCODER_INTERNAL_DDI_ENUM_ID1@GOTPAGEOFF]
	b	LBB0_25
LBB0_11:
	bl	_ASIC_IS_AVIVO
	cbz	w0, LBB0_19
; %bb.12:
Lloh24:
	adrp	x8, _ENCODER_INTERNAL_KLDSCP_DVO1_ENUM_ID1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENCODER_INTERNAL_KLDSCP_DVO1_ENUM_ID1@GOTPAGEOFF]
	b	LBB0_25
LBB0_13:
	bl	_ASIC_IS_AVIVO
	cbz	w0, LBB0_15
; %bb.14:
Lloh26:
	adrp	x8, _ENCODER_INTERNAL_KLDSCP_DAC2_ENUM_ID1@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENCODER_INTERNAL_KLDSCP_DAC2_ENUM_ID1@GOTPAGEOFF]
	b	LBB0_25
LBB0_15:
Lloh28:
	adrp	x8, _ENCODER_INTERNAL_DAC2_ENUM_ID1@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENCODER_INTERNAL_DAC2_ENUM_ID1@GOTPAGEOFF]
	b	LBB0_25
LBB0_16:
	bl	_ASIC_IS_AVIVO
	cbz	w0, LBB0_22
LBB0_17:
Lloh30:
	adrp	x8, _ENCODER_INTERNAL_LVTM1_ENUM_ID1@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENCODER_INTERNAL_LVTM1_ENUM_ID1@GOTPAGEOFF]
	b	LBB0_25
LBB0_18:
	ldr	w8, [x0]
Lloh32:
	adrp	x9, _CHIP_RS300@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CHIP_RS300@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _CHIP_RS400@GOTPAGE
Lloh36:
	ldr	x10, [x10, _CHIP_RS400@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
Lloh38:
	adrp	x11, _CHIP_RS480@GOTPAGE
Lloh39:
	ldr	x11, [x11, _CHIP_RS480@GOTPAGEOFF]
Lloh40:
	ldr	w11, [x11]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	b.ne	LBB0_20
LBB0_19:
Lloh41:
	adrp	x8, _ENCODER_INTERNAL_DVO1_ENUM_ID1@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENCODER_INTERNAL_DVO1_ENUM_ID1@GOTPAGEOFF]
	b	LBB0_25
LBB0_20:
	bl	_ASIC_IS_AVIVO
	cbz	w0, LBB0_24
; %bb.21:
Lloh43:
	adrp	x8, _ENCODER_INTERNAL_KLDSCP_TMDS1_ENUM_ID1@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENCODER_INTERNAL_KLDSCP_TMDS1_ENUM_ID1@GOTPAGEOFF]
	b	LBB0_25
LBB0_22:
Lloh45:
	adrp	x8, _ENCODER_INTERNAL_LVDS_ENUM_ID1@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENCODER_INTERNAL_LVDS_ENUM_ID1@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:
Lloh47:
	adrp	x8, _ENCODER_INTERNAL_DAC1_ENUM_ID1@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENCODER_INTERNAL_DAC1_ENUM_ID1@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
Lloh49:
	adrp	x8, _ENCODER_INTERNAL_TMDS1_ENUM_ID1@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENCODER_INTERNAL_TMDS1_ENUM_ID1@GOTPAGEOFF]
LBB0_25:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_CHIP_RS300,4,2                 ; @CHIP_RS300
	.comm	_CHIP_RS400,4,2                 ; @CHIP_RS400
	.comm	_CHIP_RS480,4,2                 ; @CHIP_RS480
	.comm	_ENCODER_INTERNAL_DAC2_ENUM_ID1,4,2 ; @ENCODER_INTERNAL_DAC2_ENUM_ID1
	.comm	_ENCODER_INTERNAL_KLDSCP_DAC1_ENUM_ID1,4,2 ; @ENCODER_INTERNAL_KLDSCP_DAC1_ENUM_ID1
	.comm	_ENCODER_INTERNAL_DAC1_ENUM_ID1,4,2 ; @ENCODER_INTERNAL_DAC1_ENUM_ID1
	.comm	_ENCODER_INTERNAL_KLDSCP_DAC2_ENUM_ID1,4,2 ; @ENCODER_INTERNAL_KLDSCP_DAC2_ENUM_ID1
	.comm	_ENCODER_INTERNAL_KLDSCP_DVO1_ENUM_ID1,4,2 ; @ENCODER_INTERNAL_KLDSCP_DVO1_ENUM_ID1
	.comm	_ENCODER_INTERNAL_DVO1_ENUM_ID1,4,2 ; @ENCODER_INTERNAL_DVO1_ENUM_ID1
	.comm	_ENCODER_INTERNAL_LVTM1_ENUM_ID1,4,2 ; @ENCODER_INTERNAL_LVTM1_ENUM_ID1
	.comm	_ENCODER_INTERNAL_LVDS_ENUM_ID1,4,2 ; @ENCODER_INTERNAL_LVDS_ENUM_ID1
	.comm	_ENCODER_INTERNAL_KLDSCP_TMDS1_ENUM_ID1,4,2 ; @ENCODER_INTERNAL_KLDSCP_TMDS1_ENUM_ID1
	.comm	_ENCODER_INTERNAL_TMDS1_ENUM_ID1,4,2 ; @ENCODER_INTERNAL_TMDS1_ENUM_ID1
	.comm	_CHIP_RS600,4,2                 ; @CHIP_RS600
	.comm	_CHIP_RS690,4,2                 ; @CHIP_RS690
	.comm	_CHIP_RS740,4,2                 ; @CHIP_RS740
	.comm	_ENCODER_INTERNAL_DDI_ENUM_ID1,4,2 ; @ENCODER_INTERNAL_DDI_ENUM_ID1
.subsections_via_symbols
