	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcde_display_send_one_frame
_mcde_display_send_one_frame:           ## @mcde_display_send_one_frame
	.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
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movl	24(%rbx), %edi
	callq	_mcde_dsi_te_request
LBB0_2:
	movq	_MCDE_FIFO_A@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_mcde_enable_fifo
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_4:
	movq	_MCDE_CHNLXSYNCHSW_SW_TRIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MCDE_CHNL0SYNCHSW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_mcde_disable_fifo
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCDE_FIFO_A,4,2                ## @MCDE_FIFO_A
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sent TE0 framebuffer update\n"

	.comm	_MCDE_CHNLXSYNCHSW_SW_TRIG,4,2  ## @MCDE_CHNLXSYNCHSW_SW_TRIG
	.comm	_MCDE_CHNL0SYNCHSW,8,3          ## @MCDE_CHNL0SYNCHSW
L_.str.1:                               ## @.str.1
	.asciz	"sent SW framebuffer update\n"

	.no_dead_strip	_mcde_display_send_one_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcde_display_send_one_frame
_mcde_display_send_one_frame:           ; @mcde_display_send_one_frame
	.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, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
	bl	_mcde_dsi_te_request
LBB0_2:
Lloh0:
	adrp	x20, _MCDE_FIFO_A@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MCDE_FIFO_A@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mcde_enable_fifo
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _MCDE_CHNLXSYNCHSW_SW_TRIG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MCDE_CHNLXSYNCHSW_SW_TRIG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x9, _MCDE_CHNL0SYNCHSW@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MCDE_CHNL0SYNCHSW@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_mcde_disable_fifo
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MCDE_FIFO_A,4,2                ; @MCDE_FIFO_A
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sent TE0 framebuffer update\n"

	.comm	_MCDE_CHNLXSYNCHSW_SW_TRIG,4,2  ; @MCDE_CHNLXSYNCHSW_SW_TRIG
	.comm	_MCDE_CHNL0SYNCHSW,8,3          ; @MCDE_CHNL0SYNCHSW
l_.str.1:                               ; @.str.1
	.asciz	"sent SW framebuffer update\n"

	.no_dead_strip	_mcde_display_send_one_frame
.subsections_via_symbols
