	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv04_dfp_mode_fixup
_nv04_dfp_mode_fixup:                   ## @nv04_dfp_mode_fixup
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_nouveau_encoder
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_nouveau_encoder_connector_get
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movq	(%rax), %rdx
	movq	_DRM_MODE_SCALE_NONE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_4
## %bb.2:
	movq	(%r15), %rdx
	cmpq	(%rcx), %rdx
	jg	LBB0_4
## %bb.3:
	movq	8(%r15), %rdx
	cmpq	8(%rcx), %rdx
	jle	LBB0_5
LBB0_4:
	movq	16(%r14), %rax
	movq	%rax, 16(%rbx)
	movups	(%r14), %xmm0
	movups	%xmm0, (%rbx)
LBB0_6:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	16(%rcx), %rdx
	movq	%rdx, 16(%rbx)
	movups	(%rcx), %xmm0
	movups	%xmm0, (%rbx)
	movq	8(%rax), %rax
	movl	16(%rax), %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_SCALE_NONE,8,3        ## @DRM_MODE_SCALE_NONE
	.no_dead_strip	_nv04_dfp_mode_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv04_dfp_mode_fixup
_nv04_dfp_mode_fixup:                   ; @nv04_dfp_mode_fixup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_nouveau_encoder
	mov	x20, x0
	bl	_nouveau_encoder_connector_get
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _DRM_MODE_SCALE_NONE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DRM_MODE_SCALE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.2:
	ldr	x9, [x21]
	ldr	x10, [x8]
	cmp	x9, x10
	b.gt	LBB0_4
; %bb.3:
	ldr	x9, [x21, #8]
	ldr	x10, [x8, #8]
	cmp	x9, x10
	b.le	LBB0_6
LBB0_4:
	ldr	q0, [x19]
	ldr	x8, [x19, #16]
	str	x8, [x20, #16]
	str	q0, [x20]
LBB0_5:
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	q0, [x8]
	ldr	x8, [x8, #16]
	str	x8, [x20, #16]
	str	q0, [x20]
	ldr	x8, [x0, #8]
	ldr	w8, [x8, #16]
	str	w8, [x19, #16]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_SCALE_NONE,8,3        ; @DRM_MODE_SCALE_NONE
	.no_dead_strip	_nv04_dfp_mode_fixup
.subsections_via_symbols
