	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_crtc_mode_get            ## -- Begin function intel_crtc_mode_get
	.p2align	4, 0x90
_intel_crtc_mode_get:                   ## @intel_crtc_mode_get
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_to_intel_crtc
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_HTOTAL
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_HSYNC
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_VTOTAL
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_VSYNC
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$36, %edi
	callq	_kzalloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_intel_crtc_clock_get
	movl	%eax, 32(%r15)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movzwl	%cx, %eax
	incl	%eax
	movl	%eax, (%r15)
	shrl	$16, %ecx
	incl	%ecx
	movl	%ecx, 4(%r15)
	movzwl	%r12w, %eax
	incl	%eax
	movl	%eax, 8(%r15)
	shrl	$16, %r12d
	incl	%r12d
	movl	%r12d, 12(%r15)
	movzwl	%r13w, %eax
	incl	%eax
	movl	%eax, 16(%r15)
	shrl	$16, %r13d
	incl	%r13d
	movl	%r13d, 20(%r15)
	movzwl	%r14w, %eax
	incl	%eax
	movl	%eax, 24(%r15)
	shrl	$16, %r14d
	incl	%r14d
	movl	%r14d, 28(%r15)
	movq	%r15, %rdi
	callq	_drm_mode_set_name
LBB0_2:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_crtc_mode_get            ; -- Begin function intel_crtc_mode_get
	.p2align	2
_intel_crtc_mode_get:                   ; @intel_crtc_mode_get
	.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, x1
	mov	x20, x0
	mov	x0, x1
	bl	_to_intel_crtc
	ldr	w24, [x0]
	mov	x0, x24
	bl	_HTOTAL
	bl	_I915_READ
	mov	x21, x0
	mov	x0, x24
	bl	_HSYNC
	bl	_I915_READ
	mov	x22, x0
	mov	x0, x24
	bl	_VTOTAL
	bl	_I915_READ
	mov	x23, x0
	mov	x0, x24
	bl	_VSYNC
	bl	_I915_READ
	mov	x24, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #36
	bl	_kzalloc
	mov	x25, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_intel_crtc_clock_get
	str	w0, [x25, #32]
	and	w8, w21, #0xffff
	add	w8, w8, #1
	lsr	w9, w21, #16
	add	w9, w9, #1
	stp	w8, w9, [x25]
	and	w8, w22, #0xffff
	add	w8, w8, #1
	lsr	w9, w22, #16
	add	w9, w9, #1
	stp	w8, w9, [x25, #8]
	and	w8, w23, #0xffff
	add	w8, w8, #1
	lsr	w9, w23, #16
	add	w9, w9, #1
	stp	w8, w9, [x25, #16]
	and	w8, w24, #0xffff
	add	w8, w8, #1
	lsr	w9, w24, #16
	add	w9, w9, #1
	stp	w8, w9, [x25, #24]
	mov	x0, x25
	bl	_drm_mode_set_name
LBB0_2:
	mov	x0, x25
	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	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
