	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispc_ovl_get_channel_out
_dispc_ovl_get_channel_out:             ## @dispc_ovl_get_channel_out
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	leal	-128(%rsi), %eax
	cmpl	$4, %eax
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	cltq
	leaq	L_switch.table.dispc_ovl_get_channel_out(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
	movl	%esi, %edi
	callq	_DISPC_OVL_ATTRIBUTES
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dispc_read_reg
	movl	%eax, %r14d
	movl	%eax, %edi
	movl	%ebx, %esi
	movl	%ebx, %edx
	callq	_FLD_GET
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movq	_OMAP_DSS_CHANNEL_DIGIT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_13
LBB0_4:
	movq	_FEAT_MGR_LCD2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dispc_has_feature
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%r14d, %edi
	movl	$31, %esi
	movl	$30, %edx
	callq	_FLD_GET
	cmpl	$1, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$2, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$3, %eax
	jne	LBB0_5
## %bb.9:
	movq	_OMAP_DSS_CHANNEL_WB@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movq	_OMAP_DSS_CHANNEL_LCD@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_OMAP_DSS_CHANNEL_LCD2@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_OMAP_DSS_CHANNEL_LCD3@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_DSS_CHANNEL_DIGIT,4,2     ## @OMAP_DSS_CHANNEL_DIGIT
	.comm	_FEAT_MGR_LCD2,4,2              ## @FEAT_MGR_LCD2
	.comm	_OMAP_DSS_CHANNEL_LCD,4,2       ## @OMAP_DSS_CHANNEL_LCD
	.comm	_OMAP_DSS_CHANNEL_LCD2,4,2      ## @OMAP_DSS_CHANNEL_LCD2
	.comm	_OMAP_DSS_CHANNEL_LCD3,4,2      ## @OMAP_DSS_CHANNEL_LCD3
	.comm	_OMAP_DSS_CHANNEL_WB,4,2        ## @OMAP_DSS_CHANNEL_WB
	.no_dead_strip	_dispc_ovl_get_channel_out
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.dispc_ovl_get_channel_out
L_switch.table.dispc_ovl_get_channel_out:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	8                               ## 0x8

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dispc_ovl_get_channel_out
_dispc_ovl_get_channel_out:             ; @dispc_ovl_get_channel_out
	.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
	sub	w8, w1, #128
	cmp	w8, #4
	b.hs	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, l_switch.table.dispc_ovl_get_channel_out@PAGE
Lloh1:
	add	x9, x9, l_switch.table.dispc_ovl_get_channel_out@PAGEOFF
	ldr	w21, [x9, w8, sxtw #2]
	mov	x0, x1
	bl	_DISPC_OVL_ATTRIBUTES
	mov	x1, x0
	mov	x0, x19
	bl	_dispc_read_reg
	mov	x20, x0
	mov	x1, x21
	mov	x2, x21
	bl	_FLD_GET
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _OMAP_DSS_CHANNEL_DIGIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OMAP_DSS_CHANNEL_DIGIT@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
	bl	_BUG
	mov	w0, #0
	b	LBB0_13
LBB0_4:
Lloh4:
	adrp	x8, _FEAT_MGR_LCD2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FEAT_MGR_LCD2@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dispc_has_feature
	cbz	w0, LBB0_9
; %bb.5:
	mov	x0, x20
	mov	w1, #31
	mov	w2, #30
	bl	_FLD_GET
	cmp	w0, #1
	b.eq	LBB0_10
; %bb.6:
	cmp	w0, #2
	b.eq	LBB0_11
; %bb.7:
	cmp	w0, #3
	b.ne	LBB0_9
; %bb.8:
Lloh7:
	adrp	x8, _OMAP_DSS_CHANNEL_WB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OMAP_DSS_CHANNEL_WB@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh9:
	adrp	x8, _OMAP_DSS_CHANNEL_LCD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMAP_DSS_CHANNEL_LCD@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh11:
	adrp	x8, _OMAP_DSS_CHANNEL_LCD2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OMAP_DSS_CHANNEL_LCD2@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh13:
	adrp	x8, _OMAP_DSS_CHANNEL_LCD3@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OMAP_DSS_CHANNEL_LCD3@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_DSS_CHANNEL_DIGIT,4,2     ; @OMAP_DSS_CHANNEL_DIGIT
	.comm	_FEAT_MGR_LCD2,4,2              ; @FEAT_MGR_LCD2
	.comm	_OMAP_DSS_CHANNEL_LCD,4,2       ; @OMAP_DSS_CHANNEL_LCD
	.comm	_OMAP_DSS_CHANNEL_LCD2,4,2      ; @OMAP_DSS_CHANNEL_LCD2
	.comm	_OMAP_DSS_CHANNEL_LCD3,4,2      ; @OMAP_DSS_CHANNEL_LCD3
	.comm	_OMAP_DSS_CHANNEL_WB,4,2        ; @OMAP_DSS_CHANNEL_WB
	.no_dead_strip	_dispc_ovl_get_channel_out
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.dispc_ovl_get_channel_out
l_switch.table.dispc_ovl_get_channel_out:
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	8                               ; 0x8

.subsections_via_symbols
