	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_connector_scaler_modes_add
_nouveau_connector_scaler_modes_add:    ## @nouveau_connector_scaler_modes_add
	.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	%rdi, %rbx
	callq	_nouveau_connector
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_1
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r12
	movq	_scaler_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_drm_mode_vrefresh
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_drm_cvt_mode
	testq	%rax, %rax
	jne	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	cmpq	%rax, %rbx
	jg	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %r14
	movq	8(%r13), %rcx
	cmpq	%rcx, %r14
	jg	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rax, %rbx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rcx, %r14
	jne	LBB0_10
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_drm_mode_probed_add
	incl	-44(%rbp)                       ## 4-byte Folded Spill
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %r15
	jmp	LBB0_4
LBB0_5:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_2
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scaler_modes,8,3               ## @scaler_modes
	.no_dead_strip	_nouveau_connector_scaler_modes_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_connector_scaler_modes_add
_nouveau_connector_scaler_modes_add:    ; @nouveau_connector_scaler_modes_add
	.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	x19, x0
	bl	_nouveau_connector
	ldr	x21, [x0]
	cbz	x21, LBB0_9
; %bb.1:
	mov	w20, #0
	ldr	x22, [x19]
Lloh0:
	adrp	x8, _scaler_modes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scaler_modes@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_drm_mode_probed_add
	add	w20, w20, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x25]
	cbz	x23, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	cmp	x23, x8
	b.gt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [x25, #8]
	ldr	x9, [x21, #8]
	cmp	x24, x9
	b.gt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x23, x8
	ccmp	x24, x9, #0, eq
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_drm_mode_vrefresh
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_drm_cvt_mode
	cbz	x0, LBB0_4
	b	LBB0_2
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_scaler_modes,8,3               ; @scaler_modes
	.no_dead_strip	_nouveau_connector_scaler_modes_add
.subsections_via_symbols
