	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_crtc_convert_to_umode
_drm_crtc_convert_to_umode:             ## @drm_crtc_convert_to_umode
	.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	%rdi, %r14
	movq	_USHRT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, %edi
	cmpq	%rax, (%rsi)
	jg	LBB0_10
## %bb.1:
	cmpq	%rax, 8(%rbx)
	jg	LBB0_10
## %bb.2:
	cmpq	%rax, 16(%rbx)
	jg	LBB0_10
## %bb.3:
	cmpq	%rax, 24(%rbx)
	jg	LBB0_10
## %bb.4:
	cmpq	%rax, 32(%rbx)
	jg	LBB0_10
## %bb.5:
	cmpq	%rax, 40(%rbx)
	jg	LBB0_10
## %bb.6:
	cmpq	%rax, 48(%rbx)
	jg	LBB0_10
## %bb.7:
	cmpq	%rax, 56(%rbx)
	jg	LBB0_10
## %bb.8:
	cmpq	%rax, 64(%rbx)
	jg	LBB0_10
## %bb.9:
	xorl	%edi, %edi
	cmpq	%rax, 72(%rbx)
	setg	%dil
LBB0_10:
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	movups	(%rbx), %xmm0
	movups	%xmm0, (%r14)
	movups	16(%rbx), %xmm0
	movups	%xmm0, 16(%r14)
	movups	32(%rbx), %xmm0
	movups	%xmm0, 32(%r14)
	movups	48(%rbx), %xmm0
	movups	%xmm0, 48(%r14)
	movups	64(%rbx), %xmm0
	movups	%xmm0, 64(%r14)
	movups	84(%rbx), %xmm0
	movups	%xmm0, 88(%r14)
	movq	80(%r14), %rdi
	movl	80(%rbx), %esi
	movq	_DRM_DISPLAY_MODE_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_strncpy
	movq	80(%r14), %rax
	movslq	(%rbx), %rcx
	movq	$0, -8(%rax,%rcx,8)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USHRT_MAX,8,3                  ## @USHRT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timing values too large for mode info\n"

	.comm	_DRM_DISPLAY_MODE_LEN,4,2       ## @DRM_DISPLAY_MODE_LEN
	.no_dead_strip	_drm_crtc_convert_to_umode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_crtc_convert_to_umode
_drm_crtc_convert_to_umode:             ; @drm_crtc_convert_to_umode
	.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	x19, x0
	ldr	x9, [x1]
Lloh0:
	adrp	x8, _USHRT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USHRT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.gt	LBB0_9
; %bb.1:
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.gt	LBB0_9
; %bb.2:
	ldr	x9, [x20, #16]
	cmp	x9, x8
	b.gt	LBB0_9
; %bb.3:
	ldr	x9, [x20, #24]
	cmp	x9, x8
	b.gt	LBB0_9
; %bb.4:
	ldr	x9, [x20, #32]
	cmp	x9, x8
	b.gt	LBB0_9
; %bb.5:
	ldr	x9, [x20, #40]
	cmp	x9, x8
	b.gt	LBB0_9
; %bb.6:
	ldr	x9, [x20, #48]
	cmp	x9, x8
	b.gt	LBB0_9
; %bb.7:
	ldr	x9, [x20, #56]
	cmp	x9, x8
	b.gt	LBB0_9
; %bb.8:
	ldr	x9, [x20, #64]
	cmp	x9, x8
	b.le	LBB0_11
LBB0_9:
	mov	w0, #1
LBB0_10:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	ldr	q0, [x20]
	str	q0, [x19]
	ldr	q0, [x20, #16]
	str	q0, [x19, #16]
	ldr	q0, [x20, #32]
	str	q0, [x19, #32]
	ldr	q0, [x20, #48]
	str	q0, [x19, #48]
	ldr	q0, [x20, #64]
	str	q0, [x19, #64]
	ldp	w9, w8, [x20, #92]
	stp	w9, w8, [x19, #96]
	ldur	d0, [x20, #84]
	str	d0, [x19, #88]
	ldr	x0, [x19, #80]
	ldr	w1, [x20, #80]
Lloh5:
	adrp	x20, _DRM_DISPLAY_MODE_LEN@GOTPAGE
Lloh6:
	ldr	x20, [x20, _DRM_DISPLAY_MODE_LEN@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_strncpy
	ldr	x8, [x19, #80]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #3
	stur	xzr, [x8, #-8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x9, [x20, #72]
	cmp	x9, x8
	cset	w0, gt
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_USHRT_MAX,8,3                  ; @USHRT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timing values too large for mode info\n"

	.comm	_DRM_DISPLAY_MODE_LEN,4,2       ; @DRM_DISPLAY_MODE_LEN
	.no_dead_strip	_drm_crtc_convert_to_umode
.subsections_via_symbols
