	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edp_msg_fifo_tx
_edp_msg_fifo_tx:                       ## @edp_msg_fifo_tx
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DP_AUX_NATIVE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DP_AUX_NATIVE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%r14), %esi
	movq	_DP_AUX_I2C_READ@GOTPCREL(%rip), %rax
	movq	8(%r14), %r15
	testl	%esi, (%rax)
	je	LBB0_1
## %bb.3:
	movq	_AUX_CMD_FIFO_LEN@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jle	LBB0_4
## %bb.5:
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movzwl	22(%r14), %ebx
	andl	$15, %ebx
	movl	$4, %r12d
	movl	$4, %edi
	callq	_BIT
	orl	%ebx, %eax
	movl	%eax, -64(%rbp)
	movl	16(%r14), %eax
	movl	20(%r14), %ecx
	jmp	LBB0_6
LBB0_1:
	movl	16(%r14), %eax
	leal	4(%rax), %r12d
	movq	_AUX_CMD_FIFO_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jle	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_2:
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movl	20(%r14), %ecx
	movl	%ecx, %edx
	shrl	$16, %edx
	andl	$15, %edx
	movl	%edx, -64(%rbp)
LBB0_6:
	movzbl	%ch, %edx
	movl	%edx, -60(%rbp)
	movzbl	%cl, %ecx
	movl	%ecx, -56(%rbp)
	decl	%eax
	movzbl	%al, %eax
	movl	%eax, -52(%rbp)
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.7:
	movl	%r12d, %r14d
	leaq	-64(%rbp), %rbx
	xorl	%r12d, %r12d
	movq	_REG_EDP_AUX_DATA@GOTPCREL(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	orl	%eax, %esi
	movq	(%r13), %rdi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	callq	_edp_write
	incq	%r12
	addq	$4, %rbx
	cmpq	%r12, %r14
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	-4(%r12), %eax
	cmpq	$4, %r12
	leaq	(%r15,%rax,4), %rax
	cmovbq	%rbx, %rax
	movl	(%rax), %edi
	callq	_EDP_AUX_DATA_DATA
	movl	$0, %esi
	testq	%r12, %r12
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_EDP_AUX_DATA_INDEX_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	jmp	LBB0_10
LBB0_11:
	xorl	%r14d, %r14d
	movl	$0, %esi
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -72(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_13
## %bb.12:
	movq	_EDP_AUX_TRANS_CTRL_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_13:
	movq	_EDP_AUX_TRANS_CTRL_GO@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_REG_EDP_AUX_TRANS_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	callq	_edp_write
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_AUX_NATIVE_WRITE,4,2        ## @DP_AUX_NATIVE_WRITE
	.comm	_DP_AUX_NATIVE_READ,4,2         ## @DP_AUX_NATIVE_READ
	.comm	_DP_AUX_I2C_READ,4,2            ## @DP_AUX_I2C_READ
	.comm	_AUX_CMD_FIFO_LEN,4,2           ## @AUX_CMD_FIFO_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EDP_AUX_DATA_INDEX_WRITE,4,2   ## @EDP_AUX_DATA_INDEX_WRITE
	.comm	_REG_EDP_AUX_DATA,8,3           ## @REG_EDP_AUX_DATA
	.comm	_EDP_AUX_TRANS_CTRL_I2C,4,2     ## @EDP_AUX_TRANS_CTRL_I2C
	.comm	_EDP_AUX_TRANS_CTRL_GO,4,2      ## @EDP_AUX_TRANS_CTRL_GO
	.comm	_REG_EDP_AUX_TRANS_CTRL,8,3     ## @REG_EDP_AUX_TRANS_CTRL
	.no_dead_strip	_edp_msg_fifo_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edp_msg_fifo_tx
_edp_msg_fifo_tx:                       ; @edp_msg_fifo_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _DP_AUX_NATIVE_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DP_AUX_NATIVE_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x9]
Lloh6:
	adrp	x9, _DP_AUX_NATIVE_READ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DP_AUX_NATIVE_READ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w24, w9, w8
Lloh9:
	adrp	x8, _DP_AUX_I2C_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DP_AUX_I2C_READ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x21, [x1, #8]
	tst	w24, w8
	b.eq	LBB0_3
; %bb.1:
Lloh12:
	adrp	x8, _AUX_CMD_FIFO_LEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AUX_CMD_FIFO_LEN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, #3
	b.le	LBB0_4
; %bb.2:
	ldrh	w8, [x20, #22]
	and	w25, w8, #0xf
	mov	w23, #4
	mov	w0, #4
	bl	_BIT
	orr	w8, w25, w0
	str	w8, [sp, #8]
	ldp	w8, w9, [x20, #16]
	b	LBB0_6
LBB0_3:
	ldr	w8, [x20, #16]
	add	w23, w8, #4
Lloh15:
	adrp	x9, _AUX_CMD_FIFO_LEN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AUX_CMD_FIFO_LEN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w23, w9
	b.le	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_5:
	ldr	w9, [x20, #20]
	ubfx	w10, w9, #16, #4
	str	w10, [sp, #8]
LBB0_6:
	and	w20, w24, w22
	ubfx	w10, w9, #8, #8
	and	w9, w9, #0xff
	stp	w10, w9, [sp, #12]
	sub	w8, w8, #1
	and	w8, w8, #0xff
	str	w8, [sp, #20]
	cmp	w23, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x22, #0
	add	x24, sp, #8
Lloh21:
	adrp	x25, _EDP_AUX_DATA_INDEX_WRITE@GOTPAGE
Lloh22:
	ldr	x25, [x25, _EDP_AUX_DATA_INDEX_WRITE@GOTPAGEOFF]
Lloh23:
	adrp	x26, _REG_EDP_AUX_DATA@GOTPAGE
Lloh24:
	ldr	x26, [x26, _REG_EDP_AUX_DATA@GOTPAGEOFF]
	mov	w23, w23
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w22, #4
	add	x8, x21, w8, uxtw #2
	cmp	x22, #4
	csel	x8, x24, x8, lo
	ldr	w0, [x8]
	bl	_EDP_AUX_DATA_DATA
	ldr	w8, [x25]
	cmp	x22, #0
	csel	w8, w8, wzr, eq
	orr	w1, w8, w0
	ldr	x8, [x19]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_edp_write
	add	x22, x22, #1
	add	x24, x24, #4
	cmp	x23, x22
	b.ne	LBB0_8
LBB0_9:
Lloh25:
	adrp	x8, _EDP_AUX_TRANS_CTRL_I2C@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EDP_AUX_TRANS_CTRL_I2C@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w8, w8, wzr, eq
Lloh28:
	adrp	x9, _EDP_AUX_TRANS_CTRL_GO@GOTPAGE
Lloh29:
	ldr	x9, [x9, _EDP_AUX_TRANS_CTRL_GO@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	x8, [x19]
Lloh31:
	adrp	x9, _REG_EDP_AUX_TRANS_CTRL@GOTPAGE
Lloh32:
	ldr	x9, [x9, _REG_EDP_AUX_TRANS_CTRL@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_edp_write
	mov	w0, #0
LBB0_10:
	ldr	x8, [sp, #24]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_AUX_NATIVE_WRITE,4,2        ; @DP_AUX_NATIVE_WRITE
	.comm	_DP_AUX_NATIVE_READ,4,2         ; @DP_AUX_NATIVE_READ
	.comm	_DP_AUX_I2C_READ,4,2            ; @DP_AUX_I2C_READ
	.comm	_AUX_CMD_FIFO_LEN,4,2           ; @AUX_CMD_FIFO_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EDP_AUX_DATA_INDEX_WRITE,4,2   ; @EDP_AUX_DATA_INDEX_WRITE
	.comm	_REG_EDP_AUX_DATA,8,3           ; @REG_EDP_AUX_DATA
	.comm	_EDP_AUX_TRANS_CTRL_I2C,4,2     ; @EDP_AUX_TRANS_CTRL_I2C
	.comm	_EDP_AUX_TRANS_CTRL_GO,4,2      ; @EDP_AUX_TRANS_CTRL_GO
	.comm	_REG_EDP_AUX_TRANS_CTRL,8,3     ; @REG_EDP_AUX_TRANS_CTRL
	.no_dead_strip	_edp_msg_fifo_tx
.subsections_via_symbols
