	.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	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %r14
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	movl	(%rdi), %r12d
	cmpl	%r15d, %r12d
	je	LBB0_18
## %bb.4:
	movl	%r15d, (%rdi)
	jle	LBB0_11
## %bb.5:
	testq	%r14, %r14
	je	LBB0_8
## %bb.6:
	movq	(%r14), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_drm_helper_choose_crtc_dpms
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	*%r13
LBB0_8:
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.9:
	movq	(%rbx), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_drm_helper_choose_encoder_dpms
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	*%r13
LBB0_11:
	cmpl	%r15d, %r12d
	jge	LBB0_18
## %bb.12:
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.13:
	movq	(%rbx), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_16
## %bb.14:
	movq	%rbx, %rdi
	callq	_drm_helper_choose_encoder_dpms
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	*%r15
	jmp	LBB0_16
LBB0_15:
	cmpl	%r15d, %r12d
	jge	LBB0_18
LBB0_16:
	testq	%r14, %r14
	je	LBB0_18
## %bb.17:
	movq	(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	%r14, %rdi
	movq	%rax, %rbx
	callq	_drm_helper_choose_crtc_dpms
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.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:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x19, [x20, #8]
	b	LBB0_3
LBB0_2:
	mov	x19, #0
LBB0_3:
	ldr	w22, [x0]
	cmp	w22, w21
	b.eq	LBB0_19
; %bb.4:
	str	w21, [x0]
	b.le	LBB0_11
; %bb.5:
	cbz	x19, LBB0_8
; %bb.6:
	ldr	x8, [x19]
	ldr	x23, [x8]
	cbz	x23, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_drm_helper_choose_crtc_dpms
	mov	x1, x0
	mov	x0, x19
	blr	x23
LBB0_8:
	cbz	x20, LBB0_15
; %bb.9:
	ldr	x8, [x20]
	ldr	x23, [x8]
	cbz	x23, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_drm_helper_choose_encoder_dpms
	mov	x1, x0
	mov	x0, x20
	blr	x23
LBB0_11:
	cmp	w22, w21
	b.ge	LBB0_19
; %bb.12:
	cbz	x20, LBB0_16
; %bb.13:
	ldr	x8, [x20]
	ldr	x21, [x8]
	cbz	x21, LBB0_16
; %bb.14:
	mov	x0, x20
	bl	_drm_helper_choose_encoder_dpms
	mov	x1, x0
	mov	x0, x20
	blr	x21
	b	LBB0_16
LBB0_15:
	cmp	w22, w21
	b.ge	LBB0_19
LBB0_16:
	cbz	x19, LBB0_19
; %bb.17:
	ldr	x8, [x19]
	ldr	x0, [x8]
	cbz	x0, LBB0_19
; %bb.18:
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x19
	bl	_drm_helper_choose_crtc_dpms
	mov	x1, x0
	mov	x0, x19
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	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
	add	sp, sp, #80
	br	x2
LBB0_19:
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
