	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lspcon_parade_fw_ready
_lspcon_parade_fw_ready:                ## @lspcon_parade_fw_ready
	.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
	movq	%rdi, %r15
	movq	_LSPCON_PARADE_AVI_IF_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movl	$1, %ebx
	movl	$1, %ecx
	callq	_drm_dp_dpcd_read
	leaq	L_.str(%rip), %r14
	testq	%rax, %rax
	js	LBB0_11
## %bb.1:
	movq	_LSPCON_PARADE_AVI_IF_KICKOFF@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_12
## %bb.2:
	movl	$200, %edi
	movl	$300, %esi                      ## imm = 0x12C
	callq	_usleep_range
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movl	$1, %ebx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_drm_dp_dpcd_read
	testq	%rax, %rax
	js	LBB0_11
## %bb.3:
	movl	(%r13), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_12
## %bb.4:
	movl	$200, %edi
	movl	$300, %esi                      ## imm = 0x12C
	callq	_usleep_range
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movl	$1, %ebx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_drm_dp_dpcd_read
	testq	%rax, %rax
	js	LBB0_11
## %bb.5:
	movl	(%r13), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_12
## %bb.6:
	movl	$200, %edi
	movl	$300, %esi                      ## imm = 0x12C
	callq	_usleep_range
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movl	$1, %ebx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_drm_dp_dpcd_read
	testq	%rax, %rax
	js	LBB0_11
## %bb.7:
	movl	(%r13), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_12
## %bb.8:
	movl	$200, %edi
	movl	$300, %esi                      ## imm = 0x12C
	callq	_usleep_range
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movl	$1, %ebx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_drm_dp_dpcd_read
	testq	%rax, %rax
	js	LBB0_11
## %bb.9:
	movl	(%r13), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_12
## %bb.10:
	leaq	L_.str.1(%rip), %r14
LBB0_11:
	movq	%r14, %rdi
	callq	_DRM_ERROR
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LSPCON_PARADE_AVI_IF_CTRL,4,2  ## @LSPCON_PARADE_AVI_IF_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read AVI IF control\n"

	.comm	_LSPCON_PARADE_AVI_IF_KICKOFF,4,2 ## @LSPCON_PARADE_AVI_IF_KICKOFF
L_.str.1:                               ## @.str.1
	.asciz	"Parade FW not ready to accept AVI IF\n"

	.no_dead_strip	_lspcon_parade_fw_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lspcon_parade_fw_ready
_lspcon_parade_fw_ready:                ; @lspcon_parade_fw_ready
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _LSPCON_PARADE_AVI_IF_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LSPCON_PARADE_AVI_IF_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	w3, #1
	bl	_drm_dp_dpcd_read
	tbnz	x0, #63, LBB0_11
; %bb.1:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x21, _LSPCON_PARADE_AVI_IF_KICKOFF@GOTPAGE
Lloh3:
	ldr	x21, [x21, _LSPCON_PARADE_AVI_IF_KICKOFF@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.2:
	mov	w0, #200
	mov	w1, #300
	bl	_usleep_range
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_drm_dp_dpcd_read
	tbnz	x0, #63, LBB0_11
; %bb.3:
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.4:
	mov	w0, #200
	mov	w1, #300
	bl	_usleep_range
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_drm_dp_dpcd_read
	tbnz	x0, #63, LBB0_11
; %bb.5:
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.6:
	mov	w0, #200
	mov	w1, #300
	bl	_usleep_range
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_drm_dp_dpcd_read
	tbnz	x0, #63, LBB0_11
; %bb.7:
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.8:
	mov	w0, #200
	mov	w1, #300
	bl	_usleep_range
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_drm_dp_dpcd_read
	tbnz	x0, #63, LBB0_11
; %bb.9:
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.10:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_12:
	bl	_DRM_ERROR
	mov	w0, #0
	b	LBB0_14
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LSPCON_PARADE_AVI_IF_CTRL,4,2  ; @LSPCON_PARADE_AVI_IF_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read AVI IF control\n"

	.comm	_LSPCON_PARADE_AVI_IF_KICKOFF,4,2 ; @LSPCON_PARADE_AVI_IF_KICKOFF
l_.str.1:                               ; @.str.1
	.asciz	"Parade FW not ready to accept AVI IF\n"

	.no_dead_strip	_lspcon_parade_fw_ready
.subsections_via_symbols
