	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_restore_drm_connector_state ## -- Begin function dm_restore_drm_connector_state
	.p2align	4, 0x90
_dm_restore_drm_connector_state:        ## @dm_restore_drm_connector_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_to_amdgpu_dm_connector
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	cmpl	$0, 8(%rbx)
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	(%rax), %edi
	callq	_to_amdgpu_crtc
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%rax), %edi
	callq	_to_dm_crtc_state
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	jne	LBB0_7
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	addq	$8, %r14
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dm_force_atomic_commit         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_restore_drm_connector_state ; -- Begin function dm_restore_drm_connector_state
	.p2align	2
_dm_restore_drm_connector_state:        ; @dm_restore_drm_connector_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x0, x1
	bl	_to_amdgpu_dm_connector
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x19, x0
	ldr	w0, [x8]
	bl	_to_amdgpu_crtc
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x0]
	bl	_to_dm_crtc_state
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	add	x0, x19, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dm_force_atomic_commit
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
