	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_hotplug
_intel_dp_hotplug:                      ## @intel_dp_hotplug
	.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
	movl	%edx, %r13d
	movq	%rdi, %r12
	callq	_intel_encoder_hotplug
	movl	%eax, %r15d
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_drm_modeset_acquire_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_intel_dp_retrain_link
	movl	%eax, %ebx
	movq	_EDEADLK@GOTPCREL(%rip), %r14
	addl	(%r14), %eax
	jne	LBB0_4
## %bb.1:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_drm_modeset_backoff
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_intel_dp_retrain_link
	movl	%eax, %ebx
	movl	(%r14), %eax
	addl	%ebx, %eax
	je	LBB0_2
## %bb.3:
	movl	-52(%rbp), %r13d                ## 4-byte Reload
LBB0_4:
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_drm_modeset_drop_locks
	movq	%r12, %rdi
	callq	_drm_modeset_acquire_fini
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%ebx, %edx
	callq	_WARN
	movq	_INTEL_HOTPLUG_UNCHANGED@GOTPCREL(%rip), %rax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	movl	%ecx, %eax
	jne	LBB0_6
## %bb.5:
	movq	_INTEL_HOTPLUG_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	testl	%r13d, %r13d
	cmovnel	%eax, %r15d
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Acquiring modeset locks failed with %i\n"

	.comm	_INTEL_HOTPLUG_UNCHANGED,4,2    ## @INTEL_HOTPLUG_UNCHANGED
	.comm	_INTEL_HOTPLUG_RETRY,4,2        ## @INTEL_HOTPLUG_RETRY
	.no_dead_strip	_intel_dp_hotplug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_hotplug
_intel_dp_hotplug:                      ; @intel_dp_hotplug
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x0
	bl	_intel_encoder_hotplug
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	bl	_drm_modeset_acquire_init
	add	x1, sp, #8
	mov	x0, x21
	bl	_intel_dp_retrain_link
	mov	x22, x0
Lloh0:
	adrp	x23, _EDEADLK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EDEADLK@GOTPAGEOFF]
	ldr	w8, [x23]
	cmn	w0, w8
	b.ne	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_drm_modeset_backoff
	add	x1, sp, #8
	mov	x0, x21
	bl	_intel_dp_retrain_link
	ldr	w8, [x23]
	cmn	w0, w8
	b.eq	LBB0_1
; %bb.2:
	mov	x22, x0
LBB0_3:
	add	x0, sp, #8
	bl	_drm_modeset_drop_locks
	add	x0, sp, #8
	bl	_drm_modeset_acquire_fini
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x22
	bl	_WARN
Lloh4:
	adrp	x8, _INTEL_HOTPLUG_UNCHANGED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INTEL_HOTPLUG_UNCHANGED@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w20, w8
	ccmp	w19, #0, #4, eq
Lloh7:
	adrp	x8, _INTEL_HOTPLUG_RETRY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INTEL_HOTPLUG_RETRY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	csel	w0, w8, w20, ne
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Acquiring modeset locks failed with %i\n"

	.comm	_INTEL_HOTPLUG_UNCHANGED,4,2    ; @INTEL_HOTPLUG_UNCHANGED
	.comm	_INTEL_HOTPLUG_RETRY,4,2        ; @INTEL_HOTPLUG_RETRY
	.no_dead_strip	_intel_dp_hotplug
.subsections_via_symbols
