	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtio_gpu_probe
_virtio_gpu_probe:                      ## @virtio_gpu_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
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_vgacon_text_force
	movq	_virtio_gpu_modeset@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpl	$-1, %ecx
	je	LBB0_2
LBB0_3:
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.4:
	leaq	8(%r15), %rsi
	movq	_driver@GOTPCREL(%rip), %rdi
	callq	_drm_dev_alloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.12:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, (%r15)
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_virtio_gpu_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_dev_register
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	(%r15), %rdi
	movl	$32, %esi
	callq	_drm_fbdev_generic_setup
	jmp	LBB0_11
LBB0_6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_virtio_gpu_pci_quirk
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_7
LBB0_10:
	movq	%r14, %rdi
	callq	_drm_dev_put
	movl	%r12d, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_virtio_gpu_modeset,4,2         ## @virtio_gpu_modeset
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_driver,4,2                     ## @driver
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci"

	.no_dead_strip	_virtio_gpu_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtio_gpu_probe
_virtio_gpu_probe:                      ; @virtio_gpu_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
	mov	x19, x0
	bl	_vgacon_text_force
Lloh0:
	adrp	x8, _virtio_gpu_modeset@GOTPAGE
Lloh1:
	ldr	x8, [x8, _virtio_gpu_modeset@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	cmn	w8, #1
	b.eq	LBB0_5
LBB0_2:
	cbz	w8, LBB0_5
; %bb.3:
	add	x1, x19, #8
Lloh3:
	adrp	x0, _driver@GOTPAGE
Lloh4:
	ldr	x0, [x0, _driver@GOTPAGEOFF]
	bl	_drm_dev_alloc
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	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_7:
	str	x20, [x19]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_11
LBB0_8:
	mov	x0, x20
	bl	_virtio_gpu_init
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.9:
	mov	x0, x20
	mov	w1, #0
	bl	_drm_dev_register
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.10:
	ldr	x0, [x19]
	mov	w1, #32
	bl	_drm_fbdev_generic_setup
	b	LBB0_6
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_virtio_gpu_pci_quirk
	mov	x21, x0
	cbz	w0, LBB0_8
LBB0_12:
	mov	x0, x20
	bl	_drm_dev_put
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_virtio_gpu_modeset,4,2         ; @virtio_gpu_modeset
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_driver,4,2                     ; @driver
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci"

	.no_dead_strip	_virtio_gpu_probe
.subsections_via_symbols
