	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qxl_check_device
_qxl_check_device:                      ## @qxl_check_device
	.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	8(%rdi), %rbx
	movl	(%rbx), %esi
	cmpl	$1330796625, %esi               ## imm = 0x4F525851
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movl	32(%rbx), %edx
	movl	36(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_INFO
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_INFO
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_INFO
	movl	8(%rbx), %esi
	movl	12(%rbx), %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_INFO
	movl	8(%rbx), %eax
	movl	%eax, (%r14)
	movl	4(%rbx), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_INFO
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad rom signature %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Device Version %d.%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Compression level %d log level %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"%d io pages at offset 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"%d byte draw area at offset 0x%x\n"

L_.str.5:                               ## @.str.5
	.asciz	"RAM header offset: 0x%x\n"

	.no_dead_strip	_qxl_check_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qxl_check_device
_qxl_check_device:                      ; @qxl_check_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x20, [x0, #8]
	ldr	w1, [x20]
	mov	w8, #22609
	movk	w8, #20306, lsl #16
	cmp	w1, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	ldp	w8, w1, [x20, #32]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_INFO
	ldp	w8, w1, [x20, #24]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_INFO
	ldp	w8, w1, [x20, #16]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_INFO
	ldp	w1, w8, [x20, #8]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_INFO
	ldp	w1, w8, [x20, #4]
	str	w8, [x19]
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_INFO
	mov	w0, #1
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad rom signature %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Device Version %d.%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Compression level %d log level %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"%d io pages at offset 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"%d byte draw area at offset 0x%x\n"

l_.str.5:                               ; @.str.5
	.asciz	"RAM header offset: 0x%x\n"

	.no_dead_strip	_qxl_check_device
.subsections_via_symbols
