	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_ddi_hotplug
_intel_ddi_hotplug:                     ## @intel_ddi_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, %r14d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_enc_to_dig_port
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %edx
	callq	_intel_encoder_hotplug
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_modeset_acquire_init
	movq	_EDEADLK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_intel_hdmi_reset_link
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_intel_dp_retrain_link
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r15d
	movl	(%r12), %eax
	addl	%r15d, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_drm_modeset_backoff
	jmp	LBB0_1
LBB0_6:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_drm_modeset_drop_locks
	movq	%rbx, %rdi
	callq	_drm_modeset_acquire_fini
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%r15d, %edx
	callq	_WARN
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.8:
	movq	_INTEL_HOTPLUG_UNCHANGED@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	movl	%ecx, %eax
	jne	LBB0_11
## %bb.9:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%rcx)
	jne	LBB0_11
## %bb.10:
	movq	_INTEL_HOTPLUG_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_CONNECTOR_HDMIA,8,3   ## @DRM_MODE_CONNECTOR_HDMIA
	.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_ddi_hotplug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_ddi_hotplug
_intel_ddi_hotplug:                     ; @intel_ddi_hotplug
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_enc_to_dig_port
	mov	x20, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_intel_encoder_hotplug
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	bl	_drm_modeset_acquire_init
Lloh0:
	adrp	x25, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGEOFF]
Lloh2:
	adrp	x26, _EDEADLK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _EDEADLK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x25]
	add	x1, sp, #8
	mov	x0, x23
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_intel_hdmi_reset_link
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	bl	_intel_dp_retrain_link
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x24, x0
	ldr	w8, [x26]
	add	x0, sp, #8
	cmn	w24, w8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_drm_modeset_backoff
	b	LBB0_1
LBB0_6:
	bl	_drm_modeset_drop_locks
	add	x0, sp, #8
	bl	_drm_modeset_acquire_fini
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x24
	bl	_WARN
	cbz	w21, LBB0_9
; %bb.7:
Lloh6:
	adrp	x8, _INTEL_HOTPLUG_UNCHANGED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTEL_HOTPLUG_UNCHANGED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ne	LBB0_9
; %bb.8:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _INTEL_HOTPLUG_RETRY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INTEL_HOTPLUG_RETRY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w19, w9, w19, eq
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_CONNECTOR_HDMIA,8,3   ; @DRM_MODE_CONNECTOR_HDMIA
	.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_ddi_hotplug
.subsections_via_symbols
