	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_release_load_detect_pipe ## -- Begin function intel_release_load_detect_pipe
	.p2align	4, 0x90
_intel_release_load_detect_pipe:        ## @intel_release_load_detect_pipe
	.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
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_intel_attached_encoder
	movq	%rax, %rbx
	leaq	8(%rax), %r13
	movq	16(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_drm_get_connector_name
	movl	%eax, %r15d
	movl	8(%rbx), %r14d
	movq	%r13, %rdi
	callq	_drm_get_encoder_name
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %r8d
	callq	_DRM_DEBUG_KMS
	cmpq	$0, 16(%r14)
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_to_intel_connector
	movq	$0, (%rax)
	movq	$0, (%rbx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_intel_set_mode
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	callq	_drm_framebuffer_unregister_private
	movq	8(%r14), %rdi
	callq	_drm_framebuffer_unreference
	jmp	LBB0_5
LBB0_3:
	movq	(%r14), %rsi
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_5
## %bb.4:
	movq	(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
LBB0_5:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[CONNECTOR:%d:%s], [ENCODER:%d:%s]\n"

	.comm	_DRM_MODE_DPMS_ON,8,3           ## @DRM_MODE_DPMS_ON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_release_load_detect_pipe ; -- Begin function intel_release_load_detect_pipe
	.p2align	2
_intel_release_load_detect_pipe:        ; @intel_release_load_detect_pipe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x21, x0
	bl	_intel_attached_encoder
	mov	x22, x0
	ldr	x19, [x0, #16]
	ldr	w23, [x21, #8]
	mov	x0, x21
	bl	_drm_get_connector_name
	mov	x24, x0
	mov	x0, x22
	ldr	w25, [x0, #8]!
	bl	_drm_get_encoder_name
	mov	x4, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	bl	_DRM_DEBUG_KMS
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_to_intel_connector
	str	xzr, [x0]
	str	xzr, [x22]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_intel_set_mode
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_5
; %bb.2:
	bl	_drm_framebuffer_unregister_private
	ldr	x0, [x20, #8]
	bl	_drm_framebuffer_unreference
	b	LBB0_5
LBB0_3:
	ldr	x1, [x20]
Lloh2:
	adrp	x8, _DRM_MODE_DPMS_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_MODE_DPMS_ON@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
LBB0_5:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[CONNECTOR:%d:%s], [ENCODER:%d:%s]\n"

	.comm	_DRM_MODE_DPMS_ON,8,3           ; @DRM_MODE_DPMS_ON
.subsections_via_symbols
