	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bochs_kms_init
LCPI0_0:
	.long	8192                            ## 0x2000
	.long	8192                            ## 0x2000
	.long	24                              ## 0x18
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_bochs_kms_init
	.p2align	4, 0x90
_bochs_kms_init:                        ## @bochs_kms_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_drm_mode_config_init
	movq	(%rbx), %rdi
	movl	16(%rbx), %eax
	movl	%eax, 40(%rdi)
	movq	$0, 32(%rdi)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [8192,8192,24,1]
	movups	%xmm0, (%rdi)
	movl	$1, 16(%rdi)
	movq	_bochs_mode_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rdi)
	callq	_bochs_connector_init
	movq	(%rbx), %r14
	leaq	12(%rbx), %r15
	movq	_bochs_formats@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	leaq	8(%rbx), %rcx
	movq	%rcx, (%rsp)
	movq	_bochs_pipe_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_drm_simple_display_pipe_init
	movq	(%rbx), %rdi
	callq	_drm_mode_config_reset
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bochs_mode_funcs,4,2           ## @bochs_mode_funcs
	.comm	_bochs_pipe_funcs,4,2           ## @bochs_pipe_funcs
	.comm	_bochs_formats,4,2              ## @bochs_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bochs_kms_init                 ; -- Begin function bochs_kms_init
	.p2align	2
_bochs_kms_init:                        ; @bochs_kms_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x0, [x0]
	bl	_drm_mode_config_init
	ldr	x0, [x19]
	movi.2s	v0, #32, lsl #8
	str	d0, [x0]
	ldr	w8, [x19, #16]
	str	w8, [x0, #40]
	mov	w8, #24
	str	w8, [x0, #8]
	movi.2s	v0, #1
	stur	d0, [x0, #12]
Lloh0:
	adrp	x8, _bochs_mode_funcs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bochs_mode_funcs@GOTPAGEOFF]
	stp	x8, xzr, [x0, #24]
	bl	_bochs_connector_init
	ldr	x20, [x19]
	add	x21, x19, #12
Lloh2:
	adrp	x8, _bochs_formats@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bochs_formats@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x4, x0
	add	x6, x19, #8
Lloh5:
	adrp	x2, _bochs_pipe_funcs@GOTPAGE
Lloh6:
	ldr	x2, [x2, _bochs_pipe_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	mov	x5, #0
	bl	_drm_simple_display_pipe_init
	ldr	x0, [x19]
	bl	_drm_mode_config_reset
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_bochs_mode_funcs,4,2           ; @bochs_mode_funcs
	.comm	_bochs_pipe_funcs,4,2           ; @bochs_pipe_funcs
	.comm	_bochs_formats,4,2              ; @bochs_formats
.subsections_via_symbols
