	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_helper_connector_dpms      ## -- Begin function drm_helper_connector_dpms
	.p2align	4, 0x90
_drm_helper_connector_dpms:             ## @drm_helper_connector_dpms
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	(%r13), %r12
	jmp	LBB0_3
LBB0_1:
	xorl	%r12d, %r12d
LBB0_3:
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %edi
	callq	_drm_drv_uses_atomic_modeset
	movl	%eax, %edi
	callq	_WARN_ON
	movl	(%rbx), %r14d
	cmpl	%r15d, %r14d
	jne	LBB0_4
LBB0_19:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rcx
	movl	%r15d, (%rbx)
	testq	%r13, %r13
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_drm_helper_choose_encoder_dpms
	movq	%r12, %rcx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_6:
	cmpl	%r15d, %r14d
	jle	LBB0_13
## %bb.7:
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.8:
	movq	(%rcx), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_drm_helper_choose_crtc_dpms
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	*%rbx
	movq	%r12, %rcx
LBB0_10:
	testq	%r13, %r13
	je	LBB0_11
## %bb.12:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_drm_helper_encoder_dpms
	cmpl	%r15d, %r14d
	jge	LBB0_19
	jmp	LBB0_15
LBB0_13:
	jge	LBB0_19
## %bb.14:
	testq	%r13, %r13
	je	LBB0_16
LBB0_15:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_drm_helper_encoder_dpms
	movq	%r12, %rcx
	jmp	LBB0_16
LBB0_11:
	cmpl	%r15d, %r14d
	jge	LBB0_19
LBB0_16:
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.17:
	movq	(%rcx), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.18:
	movq	%rcx, %r14
	movq	%rcx, %rdi
	callq	_drm_helper_choose_crtc_dpms
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	*%rbx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.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	_drm_helper_connector_dpms      ; -- Begin function drm_helper_connector_dpms
	.p2align	2
_drm_helper_connector_dpms:             ; @drm_helper_connector_dpms
	.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	x21, x1
	mov	x23, x0
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x19, [x20]
	b	LBB0_3
LBB0_2:
	mov	x19, #0
LBB0_3:
Lloh0:
	adrp	x8, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x23, #4]
	bl	_drm_drv_uses_atomic_modeset
	bl	_WARN_ON
	ldr	w24, [x23]
	cmp	w24, w21
	b.eq	LBB0_19
; %bb.4:
	str	w21, [x23]
	cbz	x20, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_drm_helper_choose_encoder_dpms
	mov	x22, x0
LBB0_6:
	cmp	w24, w21
	b.le	LBB0_12
; %bb.7:
	cbz	x19, LBB0_10
; %bb.8:
	ldr	x8, [x19]
	ldr	x23, [x8]
	cbz	x23, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_drm_helper_choose_crtc_dpms
	mov	x1, x0
	mov	x0, x19
	blr	x23
LBB0_10:
	cbz	x20, LBB0_15
; %bb.11:
	mov	x0, x20
	mov	x1, x22
	bl	_drm_helper_encoder_dpms
	cmp	w24, w21
	b.lt	LBB0_14
	b	LBB0_19
LBB0_12:
	b.ge	LBB0_19
; %bb.13:
	cbz	x20, LBB0_16
LBB0_14:
	mov	x0, x20
	mov	x1, x22
	bl	_drm_helper_encoder_dpms
	b	LBB0_16
LBB0_15:
	cmp	w24, w21
	b.ge	LBB0_19
LBB0_16:
	cbz	x19, LBB0_19
; %bb.17:
	ldr	x8, [x19]
	ldr	x20, [x8]
	cbz	x20, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_drm_helper_choose_crtc_dpms
	mov	x1, x0
	mov	x0, x19
	blr	x20
LBB0_19:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
.subsections_via_symbols
