	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispc_ovl_set_channel_out
_dispc_ovl_set_channel_out:             ## @dispc_ovl_set_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	leal	-128(%r13), %eax
	cmpl	$4, %eax
	jae	LBB0_6
## %bb.1:
	movl	%edx, %ebx
	movq	%rdi, %r14
	cltq
	leaq	L_switch.table.dispc_ovl_set_channel_out(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	movl	%r13d, %edi
	callq	_DISPC_OVL_ATTRIBUTES
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dispc_read_reg
	movl	%eax, %r12d
	movq	_FEAT_MGR_LCD2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dispc_has_feature
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	addl	$-132, %ebx
	cmpl	$4, %ebx
	ja	LBB0_6
## %bb.3:
	xorl	%edx, %edx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	xorl	%esi, %esi
	jmpq	*%rcx
LBB0_7:
	movl	$3, %edx
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_10:
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r15d, %ecx
	jmp	LBB0_11
LBB0_5:
	movq	_FEAT_MGR_LCD3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dispc_has_feature
	movl	$2, %edx
	movl	$0, %esi
	testq	%rax, %rax
	jne	LBB0_9
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG                            ## TAILCALL
LBB0_4:
	movl	$1, %edx
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_8:
	movl	$1, %esi
LBB0_9:
	movl	%r12d, %edi
	movl	%edx, %ebx
	movl	%r15d, %edx
	movl	%r15d, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	movl	%ebx, %esi
	movl	$31, %edx
	movl	$30, %ecx
LBB0_11:
	callq	_FLD_MOD
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_DISPC_OVL_ATTRIBUTES
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dispc_write_reg                ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_FEAT_MGR_LCD2,4,2              ## @FEAT_MGR_LCD2
	.comm	_FEAT_MGR_LCD3,4,2              ## @FEAT_MGR_LCD3
	.no_dead_strip	_dispc_ovl_set_channel_out
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.dispc_ovl_set_channel_out
L_switch.table.dispc_ovl_set_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_set_channel_out
_dispc_ovl_set_channel_out:             ; @dispc_ovl_set_channel_out
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	w8, w1, #128
	cmp	w8, #4
	b.hs	LBB0_8
; %bb.1:
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x9, l_switch.table.dispc_ovl_set_channel_out@PAGE
Lloh1:
	add	x9, x9, l_switch.table.dispc_ovl_set_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	x22, x0
Lloh2:
	adrp	x8, _FEAT_MGR_LCD2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FEAT_MGR_LCD2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dispc_has_feature
	cbz	x0, LBB0_5
; %bb.2:
	sub	w8, w23, #132
	cmp	w8, #4
	b.hi	LBB0_8
; %bb.3:
	mov	w1, #0
	mov	w23, #0
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	w1, #0
	mov	w23, #3
	b	LBB0_11
LBB0_5:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	mov	x3, x21
	b	LBB0_12
LBB0_6:
Lloh7:
	adrp	x8, _FEAT_MGR_LCD3@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FEAT_MGR_LCD3@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dispc_has_feature
	cbz	x0, LBB0_8
; %bb.7:
	mov	w1, #0
	mov	w23, #2
	b	LBB0_11
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_BUG
LBB0_9:
	mov	w1, #0
	mov	w23, #1
	b	LBB0_11
LBB0_10:
	mov	w23, #0
	mov	w1, #1
LBB0_11:
	mov	x0, x22
	mov	x2, x21
	mov	x3, x21
	bl	_FLD_MOD
	mov	x1, x23
	mov	w2, #31
	mov	w3, #30
LBB0_12:
	bl	_FLD_MOD
	mov	x21, x0
	mov	x0, x20
	bl	_DISPC_OVL_ATTRIBUTES
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dispc_write_reg
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
                                        ; -- End function
	.comm	_FEAT_MGR_LCD2,4,2              ; @FEAT_MGR_LCD2
	.comm	_FEAT_MGR_LCD3,4,2              ; @FEAT_MGR_LCD3
	.no_dead_strip	_dispc_ovl_set_channel_out
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.dispc_ovl_set_channel_out
l_switch.table.dispc_ovl_set_channel_out:
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	8                               ; 0x8

.subsections_via_symbols
