	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_convert_to_umode      ## -- Begin function drm_mode_convert_to_umode
	.p2align	4, 0x90
_drm_mode_convert_to_umode:             ## @drm_mode_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
	xorl	%eax, %eax
	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)
	movl	92(%rbx), %eax
	movdqu	88(%rbx), %xmm0
	pshufd	$225, %xmm0, %xmm0              ## xmm0 = xmm0[1,0,2,3]
	movdqu	%xmm0, 88(%r14)
	movl	80(%rbx), %edx
	leal	-128(%rdx), %ecx
	cmpl	$4, %ecx
	ja	LBB0_13
## %bb.11:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_12:
	movq	_DRM_MODE_FLAG_PIC_AR_64_27@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_WARN
	movl	88(%r14), %eax
LBB0_14:
	movl	%eax, %ecx
	movq	_DRM_MODE_FLAG_PIC_AR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_15:
	movq	_DRM_MODE_FLAG_PIC_AR_4_3@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_16:
	movq	_DRM_MODE_FLAG_PIC_AR_256_135@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_17:
	movq	_DRM_MODE_FLAG_PIC_AR_16_9@GOTPCREL(%rip), %rcx
LBB0_18:
	movl	(%rcx), %ecx
LBB0_19:
	orl	%ecx, %eax
	movl	%eax, 88(%r14)
	movq	80(%r14), %rdi
	movl	84(%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
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
	.end_data_region
                                        ## -- 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_MODE_FLAG_PIC_AR_4_3,4,2   ## @DRM_MODE_FLAG_PIC_AR_4_3
	.comm	_DRM_MODE_FLAG_PIC_AR_16_9,4,2  ## @DRM_MODE_FLAG_PIC_AR_16_9
	.comm	_DRM_MODE_FLAG_PIC_AR_64_27,4,2 ## @DRM_MODE_FLAG_PIC_AR_64_27
	.comm	_DRM_MODE_FLAG_PIC_AR_256_135,4,2 ## @DRM_MODE_FLAG_PIC_AR_256_135
L_.str.1:                               ## @.str.1
	.asciz	"Invalid aspect ratio (0%x) on mode\n"

	.comm	_DRM_MODE_FLAG_PIC_AR_NONE,4,2  ## @DRM_MODE_FLAG_PIC_AR_NONE
	.comm	_DRM_DISPLAY_MODE_LEN,4,2       ## @DRM_DISPLAY_MODE_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_convert_to_umode      ; -- Begin function drm_mode_convert_to_umode
	.p2align	2
_drm_mode_convert_to_umode:             ; @drm_mode_convert_to_umode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	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_20
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, #96]
	stp	w9, w8, [x19, #96]
	ldp	w9, w8, [x20, #88]
	stp	w8, w9, [x19, #88]
	ldr	w9, [x20, #80]
	sub	w10, w9, #128
	cmp	w10, #4
	b.hi	LBB0_13
; %bb.11:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x11, LBB0_12
	ldrb	w12, [x9, x10]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_12:
Lloh7:
	adrp	x9, _DRM_MODE_FLAG_PIC_AR_64_27@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DRM_MODE_FLAG_PIC_AR_64_27@GOTPAGEOFF]
	b	LBB0_18
LBB0_13:
	str	x9, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_WARN
	ldr	w8, [x19, #88]
LBB0_14:
	mov	x9, x8
Lloh11:
	adrp	x8, _DRM_MODE_FLAG_PIC_AR_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DRM_MODE_FLAG_PIC_AR_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	b	LBB0_19
LBB0_15:
Lloh14:
	adrp	x9, _DRM_MODE_FLAG_PIC_AR_4_3@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRM_MODE_FLAG_PIC_AR_4_3@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
Lloh16:
	adrp	x9, _DRM_MODE_FLAG_PIC_AR_256_135@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DRM_MODE_FLAG_PIC_AR_256_135@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh18:
	adrp	x9, _DRM_MODE_FLAG_PIC_AR_16_9@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DRM_MODE_FLAG_PIC_AR_16_9@GOTPAGEOFF]
LBB0_18:
	ldr	w9, [x9]
LBB0_19:
	orr	w8, w9, w8
	str	w8, [x19, #88]
	ldr	x0, [x19, #80]
	ldr	w1, [x20, #84]
Lloh20:
	adrp	x20, _DRM_DISPLAY_MODE_LEN@GOTPAGE
Lloh21:
	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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_20:
	ldr	x9, [x20, #72]
	cmp	x9, x8
	cset	w0, gt
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_15-LBB0_12)>>2
	.byte	(LBB0_16-LBB0_12)>>2
	.byte	(LBB0_17-LBB0_12)>>2
                                        ; -- 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_MODE_FLAG_PIC_AR_4_3,4,2   ; @DRM_MODE_FLAG_PIC_AR_4_3
	.comm	_DRM_MODE_FLAG_PIC_AR_16_9,4,2  ; @DRM_MODE_FLAG_PIC_AR_16_9
	.comm	_DRM_MODE_FLAG_PIC_AR_64_27,4,2 ; @DRM_MODE_FLAG_PIC_AR_64_27
	.comm	_DRM_MODE_FLAG_PIC_AR_256_135,4,2 ; @DRM_MODE_FLAG_PIC_AR_256_135
l_.str.1:                               ; @.str.1
	.asciz	"Invalid aspect ratio (0%x) on mode\n"

	.comm	_DRM_MODE_FLAG_PIC_AR_NONE,4,2  ; @DRM_MODE_FLAG_PIC_AR_NONE
	.comm	_DRM_DISPLAY_MODE_LEN,4,2       ; @DRM_DISPLAY_MODE_LEN
.subsections_via_symbols
