	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _lspcon_parade_write_infoframe_blocks
__lspcon_parade_write_infoframe_blocks: ## @_lspcon_parade_write_infoframe_blocks
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_lspcon_parade_fw_ready
	xorl	%r14d, %r14d
	movl	$0, %r12d
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	movq	_LSPCON_PARADE_AVI_IF_WRITE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movl	$8, %ecx
	callq	_drm_dp_dpcd_write
	movl	$0, %esi
	testq	%rax, %rax
	js	LBB0_14
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_LSPCON_PARADE_AVI_IF_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_LSPCON_PARADE_AVI_IF_KICKOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movl	$1, %r12d
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_drm_dp_dpcd_write
	movl	$0, %r15d
	testq	%rax, %rax
	js	LBB0_22
## %bb.3:
	movq	%r13, %rdi
	callq	_lspcon_parade_fw_ready
	testl	%eax, %eax
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_16
## %bb.4:
	movq	_LSPCON_PARADE_AVI_IF_WRITE_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	32(%rax), %rdx
	movq	%r13, %rdi
	movl	$8, %ecx
	callq	_drm_dp_dpcd_write
	testq	%rax, %rax
	js	LBB0_13
## %bb.5:
	movq	_LSPCON_PARADE_AVI_IF_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_LSPCON_PARADE_AVI_IF_KICKOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	$1, %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movl	$1, %r15d
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_drm_dp_dpcd_write
	testq	%rax, %rax
	js	LBB0_22
## %bb.6:
	movq	%r13, %rdi
	callq	_lspcon_parade_fw_ready
	testl	%eax, %eax
	je	LBB0_15
## %bb.7:
	movq	_LSPCON_PARADE_AVI_IF_WRITE_OFFSET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	leaq	64(%r15), %rdx
	movq	%r13, %rdi
	movl	$8, %ecx
	callq	_drm_dp_dpcd_write
	testq	%rax, %rax
	js	LBB0_17
## %bb.8:
	movq	_LSPCON_PARADE_AVI_IF_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_LSPCON_PARADE_AVI_IF_KICKOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	$2, %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_drm_dp_dpcd_write
	testq	%rax, %rax
	js	LBB0_18
## %bb.9:
	movq	%r13, %rdi
	callq	_lspcon_parade_fw_ready
	testl	%eax, %eax
	je	LBB0_19
## %bb.10:
	movl	(%r12), %esi
	addq	$96, %r15
	movq	%r13, %rdi
	movq	%r15, %rdx
	movl	$8, %ecx
	callq	_drm_dp_dpcd_write
	testq	%rax, %rax
	js	LBB0_20
## %bb.11:
	movq	_LSPCON_PARADE_AVI_IF_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_LSPCON_PARADE_AVI_IF_KICKOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	$3, %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movl	$1, %r14d
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_drm_dp_dpcd_write
	testq	%rax, %rax
	js	LBB0_21
## %bb.12:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_24
LBB0_13:
	movl	$1, %esi
LBB0_14:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_23
LBB0_15:
	movl	$2, %r12d
LBB0_16:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_24
LBB0_17:
	movl	$2, %esi
	jmp	LBB0_14
LBB0_18:
	movl	$2, %r15d
	jmp	LBB0_22
LBB0_19:
	movl	$3, %r12d
	jmp	LBB0_16
LBB0_20:
	movl	$3, %esi
	jmp	LBB0_14
LBB0_21:
	movl	$3, %r15d
LBB0_22:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_23:
	xorl	%r14d, %r14d
LBB0_24:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LSPCON FW not ready, block %d\n"

	.comm	_LSPCON_PARADE_AVI_IF_WRITE_OFFSET,4,2 ## @LSPCON_PARADE_AVI_IF_WRITE_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"Failed to write AVI IF block %d\n"

	.comm	_LSPCON_PARADE_AVI_IF_CTRL,4,2  ## @LSPCON_PARADE_AVI_IF_CTRL
	.comm	_LSPCON_PARADE_AVI_IF_KICKOFF,4,2 ## @LSPCON_PARADE_AVI_IF_KICKOFF
L_.str.2:                               ## @.str.2
	.asciz	"Failed to update (0x%x), block %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Wrote AVI IF blocks successfully\n"

	.no_dead_strip	__lspcon_parade_write_infoframe_blocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _lspcon_parade_write_infoframe_blocks
__lspcon_parade_write_infoframe_blocks: ; @_lspcon_parade_write_infoframe_blocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_lspcon_parade_fw_ready
	cbz	w0, LBB0_13
; %bb.1:
Lloh0:
	adrp	x22, _LSPCON_PARADE_AVI_IF_WRITE_OFFSET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LSPCON_PARADE_AVI_IF_WRITE_OFFSET@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #8
	bl	_drm_dp_dpcd_write
	tbnz	x0, #63, LBB0_15
; %bb.2:
Lloh2:
	adrp	x23, _LSPCON_PARADE_AVI_IF_CTRL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _LSPCON_PARADE_AVI_IF_CTRL@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh4:
	adrp	x24, _LSPCON_PARADE_AVI_IF_KICKOFF@GOTPAGE
Lloh5:
	ldr	x24, [x24, _LSPCON_PARADE_AVI_IF_KICKOFF@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_drm_dp_dpcd_write
	tbnz	x0, #63, LBB0_17
; %bb.3:
	mov	x0, x19
	bl	_lspcon_parade_fw_ready
	cbz	w0, LBB0_22
; %bb.4:
	ldr	w1, [x22]
	add	x2, x20, #32
	mov	x0, x19
	mov	w3, #8
	bl	_drm_dp_dpcd_write
	tbnz	x0, #63, LBB0_23
; %bb.5:
	ldr	w21, [x23]
	ldr	w8, [x24]
	orr	w8, w8, #0x1
	str	w8, [sp, #12]
	mov	w25, #1
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_drm_dp_dpcd_write
	tbnz	x0, #63, LBB0_18
; %bb.6:
	mov	x0, x19
	bl	_lspcon_parade_fw_ready
	cbz	w0, LBB0_24
; %bb.7:
	ldr	w1, [x22]
	add	x2, x20, #64
	mov	x0, x19
	mov	w3, #8
	bl	_drm_dp_dpcd_write
	tbnz	x0, #63, LBB0_25
; %bb.8:
	ldr	w21, [x23]
	ldr	w8, [x24]
	orr	w8, w8, #0x2
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_drm_dp_dpcd_write
	tbnz	x0, #63, LBB0_26
; %bb.9:
	mov	x0, x19
	bl	_lspcon_parade_fw_ready
	cbz	w0, LBB0_27
; %bb.10:
	ldr	w1, [x22]
	add	x2, x20, #96
	mov	x0, x19
	mov	w3, #8
	bl	_drm_dp_dpcd_write
	tbnz	x0, #63, LBB0_28
; %bb.11:
	ldr	w21, [x23]
	ldr	w8, [x24]
	orr	w8, w8, #0x3
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_drm_dp_dpcd_write
	tbnz	x0, #63, LBB0_29
; %bb.12:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #1
	b	LBB0_21
LBB0_13:
	mov	w8, #0
LBB0_14:
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_20
LBB0_15:
	mov	w1, #0
LBB0_16:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_17:
	mov	w25, #0
LBB0_18:
	str	x25, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
LBB0_19:
	bl	_DRM_ERROR
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_22:
	mov	w8, #1
	b	LBB0_14
LBB0_23:
	mov	w1, #1
	b	LBB0_16
LBB0_24:
	mov	w8, #2
	b	LBB0_14
LBB0_25:
	mov	w1, #2
	b	LBB0_16
LBB0_26:
	mov	w25, #2
	b	LBB0_18
LBB0_27:
	mov	w8, #3
	b	LBB0_14
LBB0_28:
	mov	w1, #3
	b	LBB0_16
LBB0_29:
	mov	w25, #3
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LSPCON FW not ready, block %d\n"

	.comm	_LSPCON_PARADE_AVI_IF_WRITE_OFFSET,4,2 ; @LSPCON_PARADE_AVI_IF_WRITE_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"Failed to write AVI IF block %d\n"

	.comm	_LSPCON_PARADE_AVI_IF_CTRL,4,2  ; @LSPCON_PARADE_AVI_IF_CTRL
	.comm	_LSPCON_PARADE_AVI_IF_KICKOFF,4,2 ; @LSPCON_PARADE_AVI_IF_KICKOFF
l_.str.2:                               ; @.str.2
	.asciz	"Failed to update (0x%x), block %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Wrote AVI IF blocks successfully\n"

	.no_dead_strip	__lspcon_parade_write_infoframe_blocks
.subsections_via_symbols
