	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_is_slave_video_stream_clock_on ## -- Begin function analogix_dp_is_slave_video_stream_clock_on
	.p2align	4, 0x90
_analogix_dp_is_slave_video_stream_clock_on: ## @analogix_dp_is_slave_video_stream_clock_on
	.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
	movq	_ANALOGIX_DP_SYS_CTL_1@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_DET_STA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_ANALOGIX_DP_SYS_CTL_2@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r14d
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	_CHA_STA@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movl	(%rbx), %edi
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANALOGIX_DP_SYS_CTL_1,8,3      ## @ANALOGIX_DP_SYS_CTL_1
	.comm	_DET_STA,4,2                    ## @DET_STA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input stream clock not detected.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ANALOGIX_DP_SYS_CTL_2,8,3      ## @ANALOGIX_DP_SYS_CTL_2
L_.str.1:                               ## @.str.1
	.asciz	"wait SYS_CTL_2.\n"

	.comm	_CHA_STA,4,2                    ## @CHA_STA
L_.str.2:                               ## @.str.2
	.asciz	"Input stream clk is changing\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_analogix_dp_is_slave_video_stream_clock_on ; -- Begin function analogix_dp_is_slave_video_stream_clock_on
	.p2align	2
_analogix_dp_is_slave_video_stream_clock_on: ; @analogix_dp_is_slave_video_stream_clock_on
	.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, #8]
Lloh0:
	adrp	x20, _ANALOGIX_DP_SYS_CTL_1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ANALOGIX_DP_SYS_CTL_1@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _DET_STA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DET_STA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x20, _ANALOGIX_DP_SYS_CTL_2@GOTPAGE
Lloh6:
	ldr	x20, [x20, _ANALOGIX_DP_SYS_CTL_2@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
Lloh9:
	adrp	x8, _CHA_STA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CHA_STA@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.2:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	ldr	w0, [x19]
	bl	_dev_dbg
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ANALOGIX_DP_SYS_CTL_1,8,3      ; @ANALOGIX_DP_SYS_CTL_1
	.comm	_DET_STA,4,2                    ; @DET_STA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input stream clock not detected.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ANALOGIX_DP_SYS_CTL_2,8,3      ; @ANALOGIX_DP_SYS_CTL_2
l_.str.1:                               ; @.str.1
	.asciz	"wait SYS_CTL_2.\n"

	.comm	_CHA_STA,4,2                    ; @CHA_STA
l_.str.2:                               ; @.str.2
	.asciz	"Input stream clk is changing\n"

.subsections_via_symbols
