	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connector_get_modes
_connector_get_modes:                   ## @connector_get_modes
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_xen_drm_pipeline
	movq	%rax, %r12
	movl	(%r14), %edi
	callq	_drm_mode_create
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$36, %edx
	callq	_memset
	movl	(%r12), %eax
	movl	%eax, -72(%rbp)
	movl	4(%r12), %ecx
	movl	%ecx, -68(%rbp)
	addl	-64(%rbp), %eax
	addl	-60(%rbp), %eax
	addl	-56(%rbp), %eax
	addl	-52(%rbp), %ecx
	addl	-48(%rbp), %ecx
	addl	-44(%rbp), %ecx
	imull	%eax, %ecx
	movq	_XEN_DRM_CRTC_VREFRESH_HZ@GOTPCREL(%rip), %rax
	imull	(%rax), %ecx
	movl	%ecx, -40(%rbp)
	movq	_DRM_MODE_TYPE_PREFERRED@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_TYPE_DRIVER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_drm_display_mode_from_videomode
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_probed_add
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XEN_DRM_CRTC_VREFRESH_HZ,4,2   ## @XEN_DRM_CRTC_VREFRESH_HZ
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ## @DRM_MODE_TYPE_PREFERRED
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ## @DRM_MODE_TYPE_DRIVER
	.no_dead_strip	_connector_get_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connector_get_modes
_connector_get_modes:                   ; @connector_get_modes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	bl	_to_xen_drm_pipeline
	mov	x21, x0
	ldr	w0, [x19]
	bl	_drm_mode_create
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #36
	bl	_memset
	ldp	w8, w9, [x21]
	stp	w8, w9, [sp, #8]
	ldp	w10, w11, [sp, #16]
	add	w8, w10, w8
	add	w8, w8, w11
	ldp	w10, w11, [sp, #24]
	add	w8, w8, w10
	ldp	w10, w12, [sp, #32]
	add	w9, w11, w9
	add	w9, w9, w10
	add	w9, w9, w12
Lloh0:
	adrp	x10, _XEN_DRM_CRTC_VREFRESH_HZ@GOTPAGE
Lloh1:
	ldr	x10, [x10, _XEN_DRM_CRTC_VREFRESH_HZ@GOTPAGEOFF]
	mul	w8, w9, w8
Lloh2:
	ldr	w9, [x10]
	mul	w8, w8, w9
	str	w8, [sp, #40]
Lloh3:
	adrp	x8, _DRM_MODE_TYPE_PREFERRED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_TYPE_PREFERRED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DRM_MODE_TYPE_DRIVER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_MODE_TYPE_DRIVER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
	add	x0, sp, #8
	mov	x1, x20
	bl	_drm_display_mode_from_videomode
	mov	x0, x19
	mov	x1, x20
	bl	_drm_mode_probed_add
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XEN_DRM_CRTC_VREFRESH_HZ,4,2   ; @XEN_DRM_CRTC_VREFRESH_HZ
	.comm	_DRM_MODE_TYPE_PREFERRED,4,2    ; @DRM_MODE_TYPE_PREFERRED
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ; @DRM_MODE_TYPE_DRIVER
	.no_dead_strip	_connector_get_modes
.subsections_via_symbols
