	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_crtc_convert_umode
_drm_crtc_convert_umode:                ## @drm_crtc_convert_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), %rax
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jg	LBB0_2
## %bb.1:
	movq	8(%rsi), %rcx
	cmpq	%rdx, %rcx
	jle	LBB0_3
LBB0_2:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movq	%rdi, %rbx
	movq	%rax, (%rdi)
	movups	52(%rsi), %xmm0
	movups	%xmm0, 56(%rdi)
	movups	36(%rsi), %xmm0
	movups	%xmm0, 40(%rdi)
	movq	%rcx, 8(%rdi)
	movups	20(%rsi), %xmm0
	movups	%xmm0, 24(%rdi)
	movq	16(%rdi), %rdi
	movl	16(%rsi), %esi
	movq	_DRM_DISPLAY_MODE_LEN@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_strncpy
	movq	16(%rbx), %rax
	movslq	(%r14), %rcx
	movq	$0, -8(%rax,%rcx,8)
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_DRM_DISPLAY_MODE_LEN,4,2       ## @DRM_DISPLAY_MODE_LEN
	.no_dead_strip	_drm_crtc_convert_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_umode
_drm_crtc_convert_umode:                ; @drm_crtc_convert_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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
	cmp	x8, x10
	b.gt	LBB0_2
; %bb.1:
	ldr	x9, [x1, #8]
	cmp	x9, x10
	b.le	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ERANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	x19, x0
	ldur	q0, [x1, #52]
	stur	q0, [x0, #56]
	ldur	q0, [x1, #36]
	stur	q0, [x0, #40]
	stp	x8, x9, [x0]
	ldur	q0, [x1, #20]
	stur	q0, [x0, #24]
	ldr	x0, [x0, #16]
	ldr	w1, [x1, #16]
Lloh6:
	adrp	x20, _DRM_DISPLAY_MODE_LEN@GOTPAGE
Lloh7:
	ldr	x20, [x20, _DRM_DISPLAY_MODE_LEN@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_strncpy
	mov	w0, #0
	ldr	x8, [x19, #16]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #3
	stur	xzr, [x8, #-8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_DRM_DISPLAY_MODE_LEN,4,2       ; @DRM_DISPLAY_MODE_LEN
	.no_dead_strip	_drm_crtc_convert_umode
.subsections_via_symbols
