	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cirrus_pci_probe
_cirrus_pci_probe:                      ## @cirrus_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_drm_fb_helper_remove_conflicting_pci_framebuffers
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movq	%r13, %rdi
	callq	_pci_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.2:
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_pci_request_regions
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	xorl	%r12d, %r12d
	subl	(%rbx), %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %r15
	addq	$16, %r15
	movq	_cirrus_driver@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_drm_dev_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	%r14, 32(%r14)
	xorl	%r12d, %r12d
	subl	(%rbx), %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movl	%eax, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_len
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_pci_resource_start
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_pci_resource_len
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%r14, %rdi
	callq	_cirrus_mode_config_init
	movq	%r14, %rdi
	callq	_cirrus_conn_init
	testl	%eax, %eax
	js	LBB0_8
## %bb.14:
	movq	%r14, %rdi
	callq	_cirrus_pipe_init
	testl	%eax, %eax
	js	LBB0_8
## %bb.15:
	movq	%r15, %rdi
	callq	_drm_mode_config_reset
	movq	%r13, 24(%r14)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_drm_dev_register
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.16:
	movl	(%r15), %esi
	movq	%r15, %rdi
	callq	_drm_fbdev_generic_setup
	jmp	LBB0_17
LBB0_8:
	movl	%eax, %r12d
LBB0_9:
	movq	%r15, %rdi
	callq	_drm_mode_config_cleanup
	movq	8(%r14), %rdi
	callq	_iounmap
LBB0_10:
	movq	(%r14), %rdi
	callq	_iounmap
LBB0_11:
	movq	%r15, %rdi
	callq	_drm_dev_put
LBB0_12:
	movq	%r14, %rdi
	callq	_kfree
LBB0_13:
	movq	%r13, %rdi
	callq	_pci_release_regions
	movl	%r12d, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cirrusdrmfb"

	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_cirrus_driver,4,2              ## @cirrus_driver
	.no_dead_strip	_cirrus_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cirrus_pci_probe
_cirrus_pci_probe:                      ; @cirrus_pci_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	bl	_drm_fb_helper_remove_conflicting_pci_framebuffers
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.1:
	mov	x0, x19
	bl	_pci_enable_device
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.2:
Lloh2:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_request_regions
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.3:
Lloh5:
	adrp	x23, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ENOMEM@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x20, x0
	add	x21, x0, #16
Lloh10:
	adrp	x1, _cirrus_driver@GOTPAGE
Lloh11:
	ldr	x1, [x1, _cirrus_driver@GOTPAGEOFF]
	mov	x0, x21
	mov	x2, x19
	bl	_drm_dev_init
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.5:
	str	x20, [x20, #32]
	ldr	w8, [x23]
	neg	w22, w8
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_start
	mov	x23, x0
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_len
	mov	x1, x0
	mov	x0, x23
	bl	_ioremap
	str	x0, [x20]
	cbz	x0, LBB0_15
; %bb.6:
	mov	x0, x19
	mov	w1, #1
	bl	_pci_resource_start
	mov	x23, x0
	mov	x0, x19
	mov	w1, #1
	bl	_pci_resource_len
	mov	x1, x0
	mov	x0, x23
	bl	_ioremap
	str	x0, [x20, #8]
	cbz	x0, LBB0_14
; %bb.7:
	mov	x0, x20
	bl	_cirrus_mode_config_init
	mov	x0, x20
	bl	_cirrus_conn_init
	tbnz	w0, #31, LBB0_12
; %bb.8:
	mov	x0, x20
	bl	_cirrus_pipe_init
	tbnz	w0, #31, LBB0_12
; %bb.9:
	mov	x0, x21
	bl	_drm_mode_config_reset
	str	x19, [x20, #24]
	mov	x0, x19
	mov	x1, x21
	bl	_pci_set_drvdata
	mov	x0, x21
	mov	w1, #0
	bl	_drm_dev_register
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.10:
	ldr	w1, [x21]
	mov	x0, x21
	bl	_drm_fbdev_generic_setup
	b	LBB0_18
LBB0_11:
	neg	w22, w21
	b	LBB0_17
LBB0_12:
	mov	x22, x0
LBB0_13:
	mov	x0, x21
	bl	_drm_mode_config_cleanup
	ldr	x0, [x20, #8]
	bl	_iounmap
LBB0_14:
	ldr	x0, [x20]
	bl	_iounmap
LBB0_15:
	mov	x0, x21
	bl	_drm_dev_put
LBB0_16:
	mov	x0, x20
	bl	_kfree
LBB0_17:
	mov	x0, x19
	bl	_pci_release_regions
LBB0_18:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cirrusdrmfb"

	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_cirrus_driver,4,2              ; @cirrus_driver
	.no_dead_strip	_cirrus_pci_probe
.subsections_via_symbols
