	.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	(%rbx), %rax
	movq	_DRM_MODE_CONNECTOR_DisplayPort@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 16(%r14)
	jne	LBB0_11
## %bb.2:
	movq	8(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_dp_handle_hpd           ## TAILCALL
LBB0_3:
	movq	(%r14), %rsi
	movq	_RADEON_HPD_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_11
## %bb.4:
	movq	%r15, %rdi
	callq	_radeon_hpd_set_polarity
	movq	8(%rbx), %rax
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.5:
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_11
## %bb.6:
	movq	8(%r14), %r13
	movq	(%r13), %rax
	movq	_CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.7:
	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.8:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_radeon_hpd_sense
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	callq	_radeon_dp_needs_link_train
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_radeon_dp_getdpcd
	testl	%eax, %eax
	je	LBB0_11
## %bb.13:
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_drm_helper_connector_dpms
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_helper_connector_dpms      ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,8,3 ## @DRM_MODE_CONNECTOR_DisplayPort
	.comm	_RADEON_HPD_NONE,8,3            ## @RADEON_HPD_NONE
	.comm	_DRM_MODE_DPMS_ON,8,3           ## @DRM_MODE_DPMS_ON
	.comm	_CONNECTOR_OBJECT_ID_DISPLAYPORT,8,3 ## @CONNECTOR_OBJECT_ID_DISPLAYPORT
	.comm	_DRM_MODE_DPMS_OFF,8,3          ## @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
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x23, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DRM_MODE_CONNECTOR_DisplayPort@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_13
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	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
	b	_radeon_dp_handle_hpd
LBB0_4:
	ldr	x1, [x20]
Lloh2:
	adrp	x8, _RADEON_HPD_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RADEON_HPD_NONE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_13
; %bb.5:
	mov	x0, x21
	bl	_radeon_hpd_set_polarity
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x22, _DRM_MODE_DPMS_ON@GOTPAGE
Lloh6:
	ldr	x22, [x22, _DRM_MODE_DPMS_ON@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.6:
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.7:
	ldr	x23, [x20, #8]
	ldr	x8, [x23]
Lloh7:
	adrp	x24, _CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPAGE
Lloh8:
	ldr	x24, [x24, _CONNECTOR_OBJECT_ID_DISPLAYPORT@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.8:
	mov	x0, x20
	bl	_radeon_dp_getsinktype
	str	x0, [x23]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.9:
	ldr	x1, [x20]
	mov	x0, x21
	bl	_radeon_hpd_sense
	cbz	x0, LBB0_13
; %bb.10:
	mov	x0, x20
	bl	_radeon_dp_needs_link_train
	cbz	x0, LBB0_13
; %bb.11:
	mov	x0, x20
	bl	_radeon_dp_getdpcd
	cbz	w0, LBB0_13
; %bb.12:
Lloh9:
	adrp	x8, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_drm_helper_connector_dpms
	ldr	x1, [x22]
	mov	x0, x19
	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
	b	_drm_helper_connector_dpms
LBB0_13:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_CONNECTOR_DisplayPort,8,3 ; @DRM_MODE_CONNECTOR_DisplayPort
	.comm	_RADEON_HPD_NONE,8,3            ; @RADEON_HPD_NONE
	.comm	_DRM_MODE_DPMS_ON,8,3           ; @DRM_MODE_DPMS_ON
	.comm	_CONNECTOR_OBJECT_ID_DISPLAYPORT,8,3 ; @CONNECTOR_OBJECT_ID_DISPLAYPORT
	.comm	_DRM_MODE_DPMS_OFF,8,3          ; @DRM_MODE_DPMS_OFF
.subsections_via_symbols
