	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function analogix_dp_commit
_analogix_dp_commit:                    ## @analogix_dp_commit
	.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, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_drm_panel_disable
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_3:
	movq	%r14, %rdi
	callq	_analogix_dp_train_link
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_17
LBB0_5:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_analogix_dp_enable_scramble
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movq	%r14, %rdi
	callq	_analogix_dp_init_video
	movq	%r14, %rdi
	callq	_analogix_dp_config_video
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.11:
	callq	_drm_panel_enable
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_17
LBB0_13:
	movq	%r14, %rdi
	callq	_analogix_dp_fast_link_train_detection
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	movq	%r14, %rdi
	callq	_analogix_dp_detect_sink_psr
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_analogix_dp_enable_sink_psr
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to disable the panel\n"

L_.str.1:                               ## @.str.1
	.asciz	"unable to do link train, ret=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"can not enable scramble\n"

L_.str.3:                               ## @.str.3
	.asciz	"unable to config video\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to enable the panel\n"

	.no_dead_strip	_analogix_dp_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function analogix_dp_commit
_analogix_dp_commit:                    ; @analogix_dp_commit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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]
	ldr	x0, [x8]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_drm_panel_disable
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_3:
	mov	x0, x19
	bl	_analogix_dp_train_link
	cbz	w0, LBB0_7
; %bb.4:
	mov	x20, x0
	ldr	w0, [x19, #8]
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_dev_err
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	mov	x0, x19
	mov	w1, #1
	bl	_analogix_dp_enable_scramble
	tbnz	w0, #31, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_analogix_dp_init_video
	mov	x0, x19
	bl	_analogix_dp_config_video
	cbz	w0, LBB0_11
; %bb.9:
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_10:
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_11:
	ldr	x8, [x19]
	ldr	x0, [x8]
	cbz	x0, LBB0_14
; %bb.12:
	bl	_drm_panel_enable
	cbz	w0, LBB0_14
; %bb.13:
	mov	x20, x0
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_6
LBB0_14:
	mov	x0, x19
	bl	_analogix_dp_fast_link_train_detection
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.15:
	mov	x0, x19
	bl	_analogix_dp_detect_sink_psr
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_analogix_dp_enable_sink_psr
	mov	x20, x0
	cbnz	w0, LBB0_6
LBB0_17:
	mov	w20, #0
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to disable the panel\n"

l_.str.1:                               ; @.str.1
	.asciz	"unable to do link train, ret=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"can not enable scramble\n"

l_.str.3:                               ; @.str.3
	.asciz	"unable to config video\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to enable the panel\n"

	.no_dead_strip	_analogix_dp_commit
.subsections_via_symbols
