	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp4_crtc_set_intf             ## -- Begin function mdp4_crtc_set_intf
	.p2align	4, 0x90
_mdp4_crtc_set_intf:                    ## @mdp4_crtc_set_intf
	.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	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_to_mdp4_crtc
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_get_kms
	movq	%rax, %r14
	movq	_REG_MDP4_DISP_INTF_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mdp4_read
	movl	%eax, %ebx
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.3:
	movq	_MDP4_DISP_INTF_SEL_PRIM__MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	%r15d, %edi
	callq	_MDP4_DISP_INTF_SEL_PRIM
	jmp	LBB0_6
LBB0_4:
	movq	_MDP4_DISP_INTF_SEL_SEC__MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	%r15d, %edi
	callq	_MDP4_DISP_INTF_SEL_SEC
	jmp	LBB0_6
LBB0_5:
	movq	_MDP4_DISP_INTF_SEL_EXT__MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	%r15d, %edi
	callq	_MDP4_DISP_INTF_SEL_EXT
LBB0_6:
	orl	%eax, %ebx
LBB0_7:
	movq	_INTF_DSI_VIDEO@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	_MDP4_DISP_INTF_SEL_DSI_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_MDP4_DISP_INTF_SEL_DSI_VIDEO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_INTF_DSI_CMD@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_12
## %bb.10:
	movq	_MDP4_DISP_INTF_SEL_DSI_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_MDP4_DISP_INTF_SEL_DSI_CMD@GOTPCREL(%rip), %rax
LBB0_11:
	orl	(%rax), %ebx
LBB0_12:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r13)
	movq	%r12, %rdi
	callq	_blend_setup
	movl	8(%r13), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	callq	_DBG
	movq	_REG_MDP4_DISP_INTF_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdp4_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MDP4_DISP_INTF_SEL,4,2     ## @REG_MDP4_DISP_INTF_SEL
	.comm	_MDP4_DISP_INTF_SEL_PRIM__MASK,4,2 ## @MDP4_DISP_INTF_SEL_PRIM__MASK
	.comm	_MDP4_DISP_INTF_SEL_SEC__MASK,4,2 ## @MDP4_DISP_INTF_SEL_SEC__MASK
	.comm	_MDP4_DISP_INTF_SEL_EXT__MASK,4,2 ## @MDP4_DISP_INTF_SEL_EXT__MASK
	.comm	_INTF_DSI_VIDEO,4,2             ## @INTF_DSI_VIDEO
	.comm	_MDP4_DISP_INTF_SEL_DSI_CMD,4,2 ## @MDP4_DISP_INTF_SEL_DSI_CMD
	.comm	_MDP4_DISP_INTF_SEL_DSI_VIDEO,4,2 ## @MDP4_DISP_INTF_SEL_DSI_VIDEO
	.comm	_INTF_DSI_CMD,4,2               ## @INTF_DSI_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: intf_sel=%08x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp4_crtc_set_intf             ; -- Begin function mdp4_crtc_set_intf
	.p2align	2
_mdp4_crtc_set_intf:                    ; @mdp4_crtc_set_intf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
	bl	_to_mdp4_crtc
	mov	x22, x0
	mov	x0, x20
	bl	_get_kms
	mov	x19, x0
Lloh0:
	adrp	x25, _REG_MDP4_DISP_INTF_SEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _REG_MDP4_DISP_INTF_SEL@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_mdp4_read
	mov	x24, x0
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.3:
Lloh2:
	adrp	x8, _MDP4_DISP_INTF_SEL_PRIM__MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDP4_DISP_INTF_SEL_PRIM__MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w24, w24, w8
	mov	x0, x23
	bl	_MDP4_DISP_INTF_SEL_PRIM
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _MDP4_DISP_INTF_SEL_SEC__MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDP4_DISP_INTF_SEL_SEC__MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w24, w24, w8
	mov	x0, x23
	bl	_MDP4_DISP_INTF_SEL_SEC
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _MDP4_DISP_INTF_SEL_EXT__MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MDP4_DISP_INTF_SEL_EXT__MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w24, w24, w8
	mov	x0, x23
	bl	_MDP4_DISP_INTF_SEL_EXT
LBB0_6:
	orr	w24, w24, w0
LBB0_7:
Lloh11:
	adrp	x8, _INTF_DSI_VIDEO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INTF_DSI_VIDEO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_9
; %bb.8:
Lloh14:
	adrp	x8, _MDP4_DISP_INTF_SEL_DSI_CMD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MDP4_DISP_INTF_SEL_DSI_CMD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	bic	w8, w24, w8
Lloh17:
	adrp	x9, _MDP4_DISP_INTF_SEL_DSI_VIDEO@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MDP4_DISP_INTF_SEL_DSI_VIDEO@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh19:
	adrp	x8, _INTF_DSI_CMD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _INTF_DSI_CMD@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_12
; %bb.10:
Lloh22:
	adrp	x8, _MDP4_DISP_INTF_SEL_DSI_VIDEO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MDP4_DISP_INTF_SEL_DSI_VIDEO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	bic	w8, w24, w8
Lloh25:
	adrp	x9, _MDP4_DISP_INTF_SEL_DSI_CMD@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MDP4_DISP_INTF_SEL_DSI_CMD@GOTPAGEOFF]
LBB0_11:
	ldr	w9, [x9]
	orr	w24, w8, w9
LBB0_12:
	str	w21, [x22, #4]
	mov	x0, x20
	bl	_blend_setup
	ldr	w1, [x22, #8]
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x24
	bl	_DBG
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mdp4_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MDP4_DISP_INTF_SEL,4,2     ; @REG_MDP4_DISP_INTF_SEL
	.comm	_MDP4_DISP_INTF_SEL_PRIM__MASK,4,2 ; @MDP4_DISP_INTF_SEL_PRIM__MASK
	.comm	_MDP4_DISP_INTF_SEL_SEC__MASK,4,2 ; @MDP4_DISP_INTF_SEL_SEC__MASK
	.comm	_MDP4_DISP_INTF_SEL_EXT__MASK,4,2 ; @MDP4_DISP_INTF_SEL_EXT__MASK
	.comm	_INTF_DSI_VIDEO,4,2             ; @INTF_DSI_VIDEO
	.comm	_MDP4_DISP_INTF_SEL_DSI_CMD,4,2 ; @MDP4_DISP_INTF_SEL_DSI_CMD
	.comm	_MDP4_DISP_INTF_SEL_DSI_VIDEO,4,2 ; @MDP4_DISP_INTF_SEL_DSI_VIDEO
	.comm	_INTF_DSI_CMD,4,2               ; @INTF_DSI_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: intf_sel=%08x"

.subsections_via_symbols
