	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_encoder_set_intf_mode     ## -- Begin function mdp5_encoder_set_intf_mode
	.p2align	4, 0x90
_mdp5_encoder_set_intf_mode:            ## @mdp5_encoder_set_intf_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_to_mdp5_encoder
	movq	(%rax), %r14
	movq	(%r14), %rax
	movq	_INTF_DSI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setne	%dil
	callq	_WARN_ON
	movq	_MDP5_INTF_DSI_MODE_COMMAND@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	cmpq	%rcx, %rax
	jne	LBB0_3
## %bb.4:
	movq	_MDP5_INTF_DSI_MODE_VIDEO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_MDP5_INTF_MODE_NONE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTF_DSI,8,3                   ## @INTF_DSI
	.comm	_MDP5_INTF_DSI_MODE_COMMAND,4,2 ## @MDP5_INTF_DSI_MODE_COMMAND
	.comm	_MDP5_INTF_DSI_MODE_VIDEO,4,2   ## @MDP5_INTF_DSI_MODE_VIDEO
	.comm	_MDP5_INTF_MODE_NONE,4,2        ## @MDP5_INTF_MODE_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_encoder_set_intf_mode     ; -- Begin function mdp5_encoder_set_intf_mode
	.p2align	2
_mdp5_encoder_set_intf_mode:            ; @mdp5_encoder_set_intf_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_to_mdp5_encoder
	ldr	x20, [x0]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _INTF_DSI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTF_DSI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cbz	w19, LBB0_2
; %bb.1:
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
Lloh3:
	adrp	x8, _MDP5_INTF_DSI_MODE_COMMAND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDP5_INTF_DSI_MODE_COMMAND@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x10, _MDP5_INTF_MODE_NONE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MDP5_INTF_MODE_NONE@GOTPAGEOFF]
Lloh7:
	adrp	x11, _MDP5_INTF_DSI_MODE_VIDEO@GOTPAGE
Lloh8:
	ldr	x11, [x11, _MDP5_INTF_DSI_MODE_VIDEO@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_INTF_DSI,8,3                   ; @INTF_DSI
	.comm	_MDP5_INTF_DSI_MODE_COMMAND,4,2 ; @MDP5_INTF_DSI_MODE_COMMAND
	.comm	_MDP5_INTF_DSI_MODE_VIDEO,4,2   ; @MDP5_INTF_DSI_MODE_VIDEO
	.comm	_MDP5_INTF_MODE_NONE,4,2        ; @MDP5_INTF_MODE_NONE
.subsections_via_symbols
