	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qxl_pci_probe
_qxl_pci_probe:                         ## @qxl_pci_probe
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$3, (%rdi)
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_pci_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.6:
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_drm_fb_helper_remove_conflicting_pci_framebuffers
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_18:
	movq	%r15, %rdi
	callq	_pci_disable_device
LBB0_19:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_20
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	callq	_is_vga
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_VGA_RSRC_LEGACY_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vga_get_interruptible
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_18
LBB0_10:
	movq	_qxl_driver@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_qxl_device_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	%r14, %rdi
	callq	_qxl_modeset_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	%r14, %rdi
	callq	_drm_kms_helper_poll_init
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_drm_dev_register
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_qxl_modeset_fini
LBB0_15:
	movq	%r14, %rdi
	callq	_qxl_device_fini
LBB0_16:
	movq	%r15, %rdi
	callq	_is_vga
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_VGA_RSRC_LEGACY_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vga_put
	jmp	LBB0_18
LBB0_13:
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_drm_fbdev_generic_setup
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qxl too old, doesn't support client_monitors_config, use xf86-video-qxl in user mode"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"qxl"

	.comm	_VGA_RSRC_LEGACY_IO,4,2         ## @VGA_RSRC_LEGACY_IO
L_.str.2:                               ## @.str.2
	.asciz	"can't get legacy vga ioports\n"

	.comm	_qxl_driver,4,2                 ## @qxl_driver
	.no_dead_strip	_qxl_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qxl_pci_probe
_qxl_pci_probe:                         ; @qxl_pci_probe
	.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
	ldr	w8, [x0]
	cmp	w8, #3
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x22, x1
	mov	x19, x0
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	bl	_pci_enable_device
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_drm_fb_helper_remove_conflicting_pci_framebuffers
	mov	x21, x0
	cbz	w0, LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_6:
	mov	x0, x20
	bl	_kfree
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	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
LBB0_10:
	mov	x0, x19
	bl	_is_vga
	cbz	x0, LBB0_13
; %bb.11:
Lloh11:
	adrp	x8, _VGA_RSRC_LEGACY_IO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VGA_RSRC_LEGACY_IO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vga_get_interruptible
	cbz	w0, LBB0_13
; %bb.12:
	mov	x21, x0
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_5
LBB0_13:
Lloh16:
	adrp	x1, _qxl_driver@GOTPAGE
Lloh17:
	ldr	x1, [x1, _qxl_driver@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x19
	bl	_qxl_device_init
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.14:
	mov	x0, x20
	bl	_qxl_modeset_init
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_drm_kms_helper_poll_init
	ldr	w1, [x22]
	mov	x0, x20
	bl	_drm_dev_register
	mov	x21, x0
	cbz	w0, LBB0_20
; %bb.16:
	mov	x0, x20
	bl	_qxl_modeset_fini
LBB0_17:
	mov	x0, x20
	bl	_qxl_device_fini
LBB0_18:
	mov	x0, x19
	bl	_is_vga
	cbz	x0, LBB0_5
; %bb.19:
Lloh18:
	adrp	x8, _VGA_RSRC_LEGACY_IO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VGA_RSRC_LEGACY_IO@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vga_put
	b	LBB0_5
LBB0_20:
	mov	x0, x20
	mov	w1, #32
	bl	_drm_fbdev_generic_setup
	b	LBB0_9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qxl too old, doesn't support client_monitors_config, use xf86-video-qxl in user mode"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"qxl"

	.comm	_VGA_RSRC_LEGACY_IO,4,2         ; @VGA_RSRC_LEGACY_IO
l_.str.2:                               ; @.str.2
	.asciz	"can't get legacy vga ioports\n"

	.comm	_qxl_driver,4,2                 ; @qxl_driver
	.no_dead_strip	_qxl_pci_probe
.subsections_via_symbols
