	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtio_gpu_pci_quirk
_virtio_gpu_pci_quirk:                  ## @virtio_gpu_pci_quirk
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %edi
	callq	_to_pci_dev
	movq	%rax, %r12
	leaq	4(%rax), %rdi
	callq	_dev_name
	movq	%rax, %r15
	movl	(%r12), %ebx
	sarl	$8, %ebx
	movq	_PCI_CLASS_DISPLAY_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	cmpl	%r13d, %ebx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	callq	_DRM_INFO
	movq	%r12, (%r14)
	cmpl	%r13d, %ebx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_drm_fb_helper_remove_conflicting_pci_framebuffers
LBB0_2:
	leaq	L_.str.4(%rip), %rdx
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$20, %esi
	movq	%r15, %rcx
	callq	_snprintf
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_dev_set_unique
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_CLASS_DISPLAY_VGA,4,2      ## @PCI_CLASS_DISPLAY_VGA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci: %s detected at %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"virtio-vga"

L_.str.2:                               ## @.str.2
	.asciz	"virtio-gpu-pci"

L_.str.3:                               ## @.str.3
	.asciz	"virtiodrmfb"

L_.str.4:                               ## @.str.4
	.asciz	"pci:%s"

	.no_dead_strip	_virtio_gpu_pci_quirk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtio_gpu_pci_quirk
_virtio_gpu_pci_quirk:                  ; @virtio_gpu_pci_quirk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w0, [x1]
	bl	_to_pci_dev
	mov	x21, x0
	add	x0, x0, #4
	bl	_dev_name
	mov	x20, x0
	ldr	w8, [x21]
	asr	w22, w8, #8
Lloh3:
	adrp	x8, _PCI_CLASS_DISPLAY_VGA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_CLASS_DISPLAY_VGA@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, l_.str.2@PAGE
Lloh7:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh8:
	adrp	x9, l_.str.1@PAGE
Lloh9:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w22, w23
	csel	x1, x9, x8, eq
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_INFO
	str	x21, [x19]
	cmp	w22, w23
	b.ne	LBB0_2
; %bb.1:
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	w1, #0
	bl	_drm_fb_helper_remove_conflicting_pci_framebuffers
LBB0_2:
Lloh14:
	adrp	x2, l_.str.4@PAGE
Lloh15:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #4
	mov	w1, #20
	mov	x3, x20
	bl	_snprintf
	add	x1, sp, #4
	mov	x0, x19
	bl	_drm_dev_set_unique
	ldr	x8, [sp, #24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_CLASS_DISPLAY_VGA,4,2      ; @PCI_CLASS_DISPLAY_VGA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci: %s detected at %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"virtio-vga"

l_.str.2:                               ; @.str.2
	.asciz	"virtio-gpu-pci"

l_.str.3:                               ; @.str.3
	.asciz	"virtiodrmfb"

l_.str.4:                               ; @.str.4
	.asciz	"pci:%s"

	.no_dead_strip	_virtio_gpu_pci_quirk
.subsections_via_symbols
