	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_get_channel
_dsi_get_channel:                       ## @dsi_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
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movq	_OMAP_DSS_CHANNEL_LCD@GOTPCREL(%rip), %rbx
	cmpl	$128, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_12
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_10
## %bb.3:
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.5:
	movq	_OMAP_DSS_CHANNEL_LCD2@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_6:
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.8:
	movq	_OMAP_DSS_CHANNEL_LCD3@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str(%rip), %rdi
LBB0_11:
	callq	_DSSWARN
LBB0_12:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_DSS_CHANNEL_LCD,4,2       ## @OMAP_DSS_CHANNEL_LCD
	.comm	_OMAP_DSS_CHANNEL_LCD2,4,2      ## @OMAP_DSS_CHANNEL_LCD2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported module id\n"

	.comm	_OMAP_DSS_CHANNEL_LCD3,4,2      ## @OMAP_DSS_CHANNEL_LCD3
L_.str.1:                               ## @.str.1
	.asciz	"unsupported DSS version\n"

	.no_dead_strip	_dsi_get_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_get_channel
_dsi_get_channel:                       ; @dsi_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	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_12
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.3:
	ldr	w8, [x0]
	cbz	w8, LBB0_12
; %bb.4:
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.5:
Lloh0:
	adrp	x8, _OMAP_DSS_CHANNEL_LCD2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP_DSS_CHANNEL_LCD2@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
	ldr	w8, [x0]
	cbz	w8, LBB0_12
; %bb.7:
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.8:
Lloh2:
	adrp	x8, _OMAP_DSS_CHANNEL_LCD3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OMAP_DSS_CHANNEL_LCD3@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	bl	_DSSWARN
LBB0_12:
Lloh8:
	adrp	x8, _OMAP_DSS_CHANNEL_LCD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OMAP_DSS_CHANNEL_LCD@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_DSS_CHANNEL_LCD,4,2       ; @OMAP_DSS_CHANNEL_LCD
	.comm	_OMAP_DSS_CHANNEL_LCD2,4,2      ; @OMAP_DSS_CHANNEL_LCD2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported module id\n"

	.comm	_OMAP_DSS_CHANNEL_LCD3,4,2      ; @OMAP_DSS_CHANNEL_LCD3
l_.str.1:                               ; @.str.1
	.asciz	"unsupported DSS version\n"

	.no_dead_strip	_dsi_get_channel
.subsections_via_symbols
