	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_ctl_op
_set_ctl_op:                            ## @set_ctl_op
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %rbx
	movl	(%rbx), %edi
	callq	_mdp5_cfg_intf_is_virtual
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_INTF0@GOTPCREL(%rip), %rax
	movq	8(%rbx), %rdi
	addq	(%rax), %rdi
	callq	_MDP5_CTL_OP_INTF_NUM
	movl	%eax, %r12d
LBB0_2:
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.4:
	movl	4(%rbx), %eax
	movq	_MDP5_INTF_DSI_MODE_COMMAND@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.5:
	movq	_MDP5_CTL_OP_CMD_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	jmp	LBB0_8
LBB0_6:
	movl	4(%rbx), %eax
	movq	_MDP5_INTF_WB_MODE_LINE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.7:
	movq	_MODE_WB_2_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MDP5_CTL_OP_MODE
	orl	%eax, %r12d
LBB0_8:
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.9:
	movq	_MDP5_CTL_OP_PACK_3D_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	$1, %edi
	callq	_MDP5_CTL_OP_PACK_3D
	orl	%eax, %r12d
LBB0_10:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r14), %edi
	callq	_REG_MDP5_CTL_OP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_ctl_write
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTF0,8,3                      ## @INTF0
	.comm	_MDP5_INTF_DSI_MODE_COMMAND,4,2 ## @MDP5_INTF_DSI_MODE_COMMAND
	.comm	_MDP5_CTL_OP_CMD_MODE,4,2       ## @MDP5_CTL_OP_CMD_MODE
	.comm	_MDP5_INTF_WB_MODE_LINE,4,2     ## @MDP5_INTF_WB_MODE_LINE
	.comm	_MODE_WB_2_LINE,4,2             ## @MODE_WB_2_LINE
	.comm	_MDP5_CTL_OP_PACK_3D_ENABLE,4,2 ## @MDP5_CTL_OP_PACK_3D_ENABLE
	.no_dead_strip	_set_ctl_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_ctl_op
_set_ctl_op:                            ; @set_ctl_op
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x1, #8]
	ldr	w0, [x22]
	bl	_mdp5_cfg_intf_is_virtual
	cbz	w0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _INTF0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTF0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x22, #8]
	add	x0, x9, x8
	bl	_MDP5_CTL_OP_INTF_NUM
	mov	x20, x0
LBB0_3:
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.5:
	ldr	w8, [x22, #4]
Lloh3:
	adrp	x9, _MDP5_INTF_DSI_MODE_COMMAND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MDP5_INTF_DSI_MODE_COMMAND@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.6:
Lloh6:
	adrp	x8, _MDP5_CTL_OP_CMD_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDP5_CTL_OP_CMD_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_9
LBB0_7:
	ldr	w8, [x22, #4]
Lloh9:
	adrp	x9, _MDP5_INTF_WB_MODE_LINE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MDP5_INTF_WB_MODE_LINE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _MODE_WB_2_LINE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MODE_WB_2_LINE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_MDP5_CTL_OP_MODE
	orr	w20, w0, w20
LBB0_9:
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.10:
Lloh15:
	adrp	x8, _MDP5_CTL_OP_PACK_3D_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MDP5_CTL_OP_PACK_3D_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	mov	w0, #1
	bl	_MDP5_CTL_OP_PACK_3D
	orr	w8, w21, w20
	orr	w20, w8, w0
LBB0_11:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #4]
	bl	_REG_MDP5_CTL_OP
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_ctl_write
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_INTF0,8,3                      ; @INTF0
	.comm	_MDP5_INTF_DSI_MODE_COMMAND,4,2 ; @MDP5_INTF_DSI_MODE_COMMAND
	.comm	_MDP5_CTL_OP_CMD_MODE,4,2       ; @MDP5_CTL_OP_CMD_MODE
	.comm	_MDP5_INTF_WB_MODE_LINE,4,2     ; @MDP5_INTF_WB_MODE_LINE
	.comm	_MODE_WB_2_LINE,4,2             ; @MODE_WB_2_LINE
	.comm	_MDP5_CTL_OP_PACK_3D_ENABLE,4,2 ; @MDP5_CTL_OP_PACK_3D_ENABLE
	.no_dead_strip	_set_ctl_op
.subsections_via_symbols
