	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function analogix_dp_detect
_analogix_dp_detect:                    ## @analogix_dp_detect
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_dp
	movq	%rax, %rbx
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_8
LBB0_2:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_analogix_dp_prepare_panel
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	movl	(%r15), %r14d
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %rdi
	callq	_analogix_dp_detect_hpd
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_analogix_dp_prepare_panel
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to prepare panel (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to unprepare panel (%d)\n"

	.no_dead_strip	_analogix_dp_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function analogix_dp_detect
_analogix_dp_detect:                    ; @analogix_dp_detect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_to_dp
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh1:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_6
LBB0_2:
	mov	x19, x0
Lloh3:
	adrp	x20, _connector_status_disconnected@GOTPAGE
Lloh4:
	ldr	x20, [x20, _connector_status_disconnected@GOTPAGEOFF]
	ldr	w21, [x20]
	mov	w1, #1
	mov	w2, #0
	bl	_analogix_dp_prepare_panel
	cbz	w0, LBB0_4
; %bb.3:
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	ldr	w20, [x20]
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_analogix_dp_detect_hpd
Lloh7:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh8:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w20, w8, w21, eq
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_analogix_dp_prepare_panel
	cbz	w0, LBB0_6
; %bb.5:
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to prepare panel (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to unprepare panel (%d)\n"

	.no_dead_strip	_analogix_dp_detect
.subsections_via_symbols
