	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpi_get_channel
_dpi_get_channel:                       ## @dpi_get_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %eax
	movq	_OMAP_DSS_CHANNEL_LCD@GOTPCREL(%rip), %rbx
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_5
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_OMAP_DSS_CHANNEL_LCD2@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
LBB0_3:
	movl	4(%rdi), %eax
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.4:
	movq	_OMAP_DSS_CHANNEL_LCD2@GOTPCREL(%rip), %rbx
	cmpl	$2, %eax
	je	LBB0_8
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_DSSWARN
	jmp	LBB0_9
LBB0_7:
	movq	_OMAP_DSS_CHANNEL_LCD@GOTPCREL(%rip), %rbx
	cmpl	$2, %eax
	jne	LBB0_9
LBB0_8:
	movq	_OMAP_DSS_CHANNEL_LCD3@GOTPCREL(%rip), %rbx
LBB0_9:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_OMAP_DSS_CHANNEL_LCD,4,2       ## @OMAP_DSS_CHANNEL_LCD
	.comm	_OMAP_DSS_CHANNEL_LCD3,4,2      ## @OMAP_DSS_CHANNEL_LCD3
	.comm	_OMAP_DSS_CHANNEL_LCD2,4,2      ## @OMAP_DSS_CHANNEL_LCD2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported DSS version\n"

	.no_dead_strip	_dpi_get_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpi_get_channel
_dpi_get_channel:                       ; @dpi_get_channel
	.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
	ldr	w8, [x0]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _OMAP_DSS_CHANNEL_LCD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP_DSS_CHANNEL_LCD@GOTPAGEOFF]
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh4:
	adrp	x8, _OMAP_DSS_CHANNEL_LCD3@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OMAP_DSS_CHANNEL_LCD3@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DSSWARN
Lloh8:
	adrp	x8, _OMAP_DSS_CHANNEL_LCD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OMAP_DSS_CHANNEL_LCD@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _OMAP_DSS_CHANNEL_LCD2@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OMAP_DSS_CHANNEL_LCD2@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	ldr	w9, [x0, #4]
Lloh12:
	adrp	x10, _OMAP_DSS_CHANNEL_LCD2@GOTPAGE
Lloh13:
	ldr	x10, [x10, _OMAP_DSS_CHANNEL_LCD2@GOTPAGEOFF]
	cmp	w9, #1
	csel	x8, x10, x8, eq
Lloh14:
	adrp	x10, _OMAP_DSS_CHANNEL_LCD3@GOTPAGE
Lloh15:
	ldr	x10, [x10, _OMAP_DSS_CHANNEL_LCD3@GOTPAGEOFF]
	cmp	w9, #2
	csel	x8, x10, x8, eq
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_OMAP_DSS_CHANNEL_LCD,4,2       ; @OMAP_DSS_CHANNEL_LCD
	.comm	_OMAP_DSS_CHANNEL_LCD3,4,2      ; @OMAP_DSS_CHANNEL_LCD3
	.comm	_OMAP_DSS_CHANNEL_LCD2,4,2      ; @OMAP_DSS_CHANNEL_LCD2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported DSS version\n"

	.no_dead_strip	_dpi_get_channel
.subsections_via_symbols
