	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_set_crtcinfo          ## -- Begin function drm_mode_set_crtcinfo
	.p2align	4, 0x90
_drm_mode_set_crtcinfo:                 ## @drm_mode_set_crtcinfo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movq	_DRM_MODE_TYPE_CRTC_C@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rdi), %ecx
	movq	_DRM_MODE_TYPE_BUILTIN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_10
## %bb.2:
	movl	%esi, %eax
	movl	8(%rbx), %ecx
	movl	16(%rbx), %edx
	movl	%ecx, 4(%rbx)
	movl	%edx, 12(%rbx)
	movl	24(%rbx), %ecx
	movl	%ecx, 20(%rbx)
	movl	32(%rbx), %ecx
	movl	%ecx, 28(%rbx)
	movl	112(%rbx), %ecx
	movl	%ecx, 116(%rbx)
	movl	40(%rbx), %esi
	movl	%esi, 36(%rbx)
	movl	48(%rbx), %edi
	movl	%edi, 44(%rbx)
	movl	56(%rbx), %edx
	movl	%edx, 52(%rbx)
	movl	64(%rbx), %r9d
	movl	%r9d, 60(%rbx)
	movl	68(%rbx), %r8d
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rcx
	testl	%r8d, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_CRTC_INTERLACE_HALVE_V@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	movl	%eax, 36(%rbx)
	movl	%edi, %ecx
	shrl	$31, %ecx
	addl	%edi, %ecx
	sarl	%ecx
	movl	%ecx, 44(%rbx)
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	sarl	%esi
	movl	%esi, 52(%rbx)
	movl	%r9d, %edx
	shrl	$31, %edx
	addl	%r9d, %edx
	sarl	%edx
	movl	%edx, 60(%rbx)
	movl	%edx, %r9d
	movl	%esi, %edx
	movl	%ecx, %edi
	movl	%eax, %esi
LBB0_5:
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_7
## %bb.6:
	addl	%esi, %esi
	movl	%esi, 36(%rbx)
	addl	%edi, %edi
	movl	%edi, 44(%rbx)
	addl	%edx, %edx
	movl	%edx, 52(%rbx)
	addl	%r9d, %r9d
	movl	%r9d, 60(%rbx)
LBB0_7:
	movl	72(%rbx), %eax
	cmpl	$2, %eax
	jl	LBB0_9
## %bb.8:
	imull	%eax, %esi
	movl	%esi, 36(%rbx)
	imull	%eax, %edi
	movl	%edi, 44(%rbx)
	imull	%eax, %edx
	movl	%edx, 52(%rbx)
	imull	%eax, %r9d
	movl	%r9d, 60(%rbx)
LBB0_9:
	callq	_min
	movq	%rax, 104(%rbx)
	movl	52(%rbx), %edi
	movl	60(%rbx), %esi
	callq	_max
	movq	%rax, 96(%rbx)
	movl	4(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_min
	movq	%rax, 88(%rbx)
	movl	20(%rbx), %edi
	movl	28(%rbx), %esi
	callq	_max
	movq	%rax, 80(%rbx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_TYPE_CRTC_C,4,2       ## @DRM_MODE_TYPE_CRTC_C
	.comm	_DRM_MODE_TYPE_BUILTIN,4,2      ## @DRM_MODE_TYPE_BUILTIN
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_CRTC_INTERLACE_HALVE_V,4,2     ## @CRTC_INTERLACE_HALVE_V
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_set_crtcinfo          ; -- Begin function drm_mode_set_crtcinfo
	.p2align	2
_drm_mode_set_crtcinfo:                 ; @drm_mode_set_crtcinfo
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _DRM_MODE_TYPE_CRTC_C@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DRM_MODE_TYPE_CRTC_C@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh3:
	adrp	x10, _DRM_MODE_TYPE_BUILTIN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DRM_MODE_TYPE_BUILTIN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_10
; %bb.2:
	mov	x8, x1
	ldr	w9, [x19, #8]
	str	w9, [x19, #4]
	ldr	w9, [x19, #16]
	str	w9, [x19, #12]
	ldr	w9, [x19, #24]
	str	w9, [x19, #20]
	ldr	w9, [x19, #32]
	str	w9, [x19, #28]
	ldr	w9, [x19, #112]
	str	w9, [x19, #116]
	ldr	w1, [x19, #40]
	str	w1, [x19, #36]
	ldr	w0, [x19, #48]
	str	w0, [x19, #44]
	ldr	w9, [x19, #56]
	str	w9, [x19, #52]
	ldp	w10, w11, [x19, #64]
	str	w10, [x19, #60]
Lloh6:
	adrp	x12, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh7:
	ldr	x12, [x12, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	tst	w12, w11
	b.eq	LBB0_5
; %bb.3:
Lloh9:
	adrp	x12, _CRTC_INTERLACE_HALVE_V@GOTPAGE
Lloh10:
	ldr	x12, [x12, _CRTC_INTERLACE_HALVE_V@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	tst	w12, w8
	b.eq	LBB0_5
; %bb.4:
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w1, w8, #1
	str	w1, [x19, #36]
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w0, w8, #1
	str	w0, [x19, #44]
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w9, w8, #1
	str	w9, [x19, #52]
	cmp	w10, #0
	cinc	w8, w10, lt
	asr	w10, w8, #1
	str	w10, [x19, #60]
LBB0_5:
Lloh12:
	adrp	x8, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w11
	b.eq	LBB0_7
; %bb.6:
	lsl	w1, w1, #1
	str	w1, [x19, #36]
	lsl	w0, w0, #1
	str	w0, [x19, #44]
	lsl	w9, w9, #1
	str	w9, [x19, #52]
	lsl	w10, w10, #1
	str	w10, [x19, #60]
LBB0_7:
	ldr	w8, [x19, #72]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.8:
	mul	w1, w1, w8
	str	w1, [x19, #36]
	mul	w0, w0, w8
	str	w0, [x19, #44]
	mul	w9, w9, w8
	str	w9, [x19, #52]
	mul	w8, w10, w8
	str	w8, [x19, #60]
LBB0_9:
	bl	_min
	str	x0, [x19, #104]
	ldr	w0, [x19, #52]
	ldr	w1, [x19, #60]
	bl	_max
	str	x0, [x19, #96]
	ldr	w0, [x19, #12]
	ldr	w1, [x19, #4]
	bl	_min
	str	x0, [x19, #88]
	ldr	w0, [x19, #20]
	ldr	w1, [x19, #28]
	bl	_max
	str	x0, [x19, #80]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_TYPE_CRTC_C,4,2       ; @DRM_MODE_TYPE_CRTC_C
	.comm	_DRM_MODE_TYPE_BUILTIN,4,2      ; @DRM_MODE_TYPE_BUILTIN
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_CRTC_INTERLACE_HALVE_V,4,2     ; @CRTC_INTERLACE_HALVE_V
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
.subsections_via_symbols
