	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_connector_hotplug       ## -- Begin function radeon_connector_hotplug
	.p2align	4, 0x90
_radeon_connector_hotplug:              ## @radeon_connector_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	callq	_to_radeon_connector
	movq	%rax, %r14
	movq	(%rax), %rsi
	movq	_RADEON_HPD_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_11
## %bb.1:
	movq	%r15, %rdi
	callq	_radeon_hpd_set_polarity
	movl	(%rbx), %eax
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_11
## %bb.2:
	movq	8(%rbx), %rax
	movq	_DRM_MODE_CONNECTOR_DisplayPort@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.3:
	movq	8(%r14), %r13
	movq	(%r13), %rax
	movq	_CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.4:
	movq	%r14, %rdi
	callq	_radeon_dp_getsinktype
	movq	%rax, (%r13)
	movq	_CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.5:
	movl	(%rbx), %r13d
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_radeon_hpd_sense
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_radeon_dp_needs_link_train
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_9
LBB0_6:
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %r12
LBB0_9:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_drm_helper_connector_dpms
LBB0_10:
	movl	%r13d, (%rbx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_HPD_NONE,8,3            ## @RADEON_HPD_NONE
	.comm	_DRM_MODE_DPMS_ON,4,2           ## @DRM_MODE_DPMS_ON
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,8,3 ## @DRM_MODE_CONNECTOR_DisplayPort
	.comm	_CONNECTOR_OBJECT_ID_DISPLAYPORT,8,3 ## @CONNECTOR_OBJECT_ID_DISPLAYPORT
	.comm	_DRM_MODE_DPMS_OFF,4,2          ## @DRM_MODE_DPMS_OFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_connector_hotplug       ; -- Begin function radeon_connector_hotplug
	.p2align	2
_radeon_connector_hotplug:              ; @radeon_connector_hotplug
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8]
	bl	_to_radeon_connector
	ldr	x1, [x0]
Lloh0:
	adrp	x8, _RADEON_HPD_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_HPD_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_10
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	bl	_radeon_hpd_set_polarity
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _DRM_MODE_DPMS_ON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_MODE_DPMS_ON@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.2:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.3:
	ldr	x22, [x20, #8]
	ldr	x8, [x22]
Lloh9:
	adrp	x23, _CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPAGE
Lloh10:
	ldr	x23, [x23, _CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x20
	bl	_radeon_dp_getsinktype
	str	x0, [x22]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.5:
	ldr	w22, [x19]
	ldr	x1, [x20]
	mov	x0, x21
	bl	_radeon_hpd_sense
Lloh11:
	adrp	x21, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh12:
	ldr	x21, [x21, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
	cbz	w0, LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_radeon_dp_needs_link_train
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w8, [x21]
	str	w8, [x19]
Lloh13:
	adrp	x21, _DRM_MODE_DPMS_ON@GOTPAGE
Lloh14:
	ldr	x21, [x21, _DRM_MODE_DPMS_ON@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_drm_helper_connector_dpms
LBB0_9:
	str	w22, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_HPD_NONE,8,3            ; @RADEON_HPD_NONE
	.comm	_DRM_MODE_DPMS_ON,4,2           ; @DRM_MODE_DPMS_ON
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,8,3 ; @DRM_MODE_CONNECTOR_DisplayPort
	.comm	_CONNECTOR_OBJECT_ID_DISPLAYPORT,8,3 ; @CONNECTOR_OBJECT_ID_DISPLAYPORT
	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
.subsections_via_symbols
