	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_virtio_gpu_modeset_init        ## -- Begin function virtio_gpu_modeset_init
	.p2align	4, 0x90
_virtio_gpu_modeset_init:               ## @virtio_gpu_modeset_init
	.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	%rdi, %r14
	movq	8(%rdi), %rdi
	callq	_drm_mode_config_init
	movq	8(%r14), %rdi
	movl	$1, (%rdi)
	movq	_virtio_gpu_mode_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rdi)
	movq	_virtio_mode_config_helpers@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rdi)
	movq	_XRES_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	_YRES_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	movq	_XRES_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movq	_YRES_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	cmpl	$0, (%r14)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_vgdev_output_init
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_2
## %bb.3:
	movq	8(%r14), %rdi
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_drm_mode_config_reset          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_virtio_gpu_mode_funcs,4,2      ## @virtio_gpu_mode_funcs
	.comm	_virtio_mode_config_helpers,4,2 ## @virtio_mode_config_helpers
	.comm	_XRES_MIN,4,2                   ## @XRES_MIN
	.comm	_YRES_MIN,4,2                   ## @YRES_MIN
	.comm	_XRES_MAX,4,2                   ## @XRES_MAX
	.comm	_YRES_MAX,4,2                   ## @YRES_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_virtio_gpu_modeset_init        ; -- Begin function virtio_gpu_modeset_init
	.p2align	2
_virtio_gpu_modeset_init:               ; @virtio_gpu_modeset_init
	.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
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_drm_mode_config_init
	ldr	x0, [x19, #8]
	mov	w8, #1
	str	w8, [x0]
Lloh0:
	adrp	x8, _virtio_gpu_mode_funcs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _virtio_gpu_mode_funcs@GOTPAGEOFF]
Lloh2:
	adrp	x9, _virtio_mode_config_helpers@GOTPAGE
Lloh3:
	ldr	x9, [x9, _virtio_mode_config_helpers@GOTPAGEOFF]
	stp	x9, x8, [x0, #24]
Lloh4:
	adrp	x8, _XRES_MIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XRES_MIN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _YRES_MIN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _YRES_MIN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #12]
Lloh10:
	adrp	x8, _XRES_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XRES_MAX@GOTPAGEOFF]
Lloh12:
	adrp	x9, _YRES_MAX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _YRES_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #4]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_vgdev_output_init
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_2
; %bb.3:
	ldr	x0, [x19, #8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_drm_mode_config_reset
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_virtio_gpu_mode_funcs,4,2      ; @virtio_gpu_mode_funcs
	.comm	_virtio_mode_config_helpers,4,2 ; @virtio_mode_config_helpers
	.comm	_XRES_MIN,4,2                   ; @XRES_MIN
	.comm	_YRES_MIN,4,2                   ; @YRES_MIN
	.comm	_XRES_MAX,4,2                   ; @XRES_MAX
	.comm	_YRES_MAX,4,2                   ; @YRES_MAX
.subsections_via_symbols
