	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function panfrost_probe
_panfrost_probe:                        ## @panfrost_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, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, 24(%rax)
	movq	%rbx, (%rax)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	_panfrost_drm_driver@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_drm_dev_alloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.15:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_3:
	movq	%r15, (%r14)
	movq	%r14, 16(%r15)
	leaq	12(%r15), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, %rdi
	callq	_panfrost_device_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r12d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	je	LBB0_13
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	jmp	LBB0_13
LBB0_6:
	movq	%r15, %rdi
	callq	_panfrost_devfreq_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %r12d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	je	LBB0_12
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	jmp	LBB0_12
LBB0_9:
	movq	(%r15), %rdi
	callq	_pm_runtime_set_active
	movq	(%r15), %rdi
	callq	_pm_runtime_mark_last_busy
	movq	(%r15), %rdi
	callq	_pm_runtime_enable
	movq	(%r15), %rdi
	movl	$50, %esi
	callq	_pm_runtime_set_autosuspend_delay
	movq	(%r15), %rdi
	callq	_pm_runtime_use_autosuspend
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_dev_register
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_panfrost_gem_shrinker_init
	jmp	LBB0_14
LBB0_11:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	callq	_pm_runtime_disable
	movq	%r15, %rdi
	callq	_panfrost_devfreq_fini
	movl	%ebx, %r12d
LBB0_12:
	movq	%r15, %rdi
	callq	_panfrost_device_fini
LBB0_13:
	movq	%r14, %rdi
	callq	_drm_dev_put
LBB0_14:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_panfrost_drm_driver,4,2        ## @panfrost_drm_driver
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fatal error during GPU init\n"

L_.str.1:                               ## @.str.1
	.asciz	"Fatal error during devfreq init\n"

	.no_dead_strip	_panfrost_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function panfrost_probe
_panfrost_probe:                        ; @panfrost_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	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x21, [x0, #24]
	str	x21, [x0]
	mov	x0, x21
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh3:
	adrp	x0, _panfrost_drm_driver@GOTPAGE
Lloh4:
	ldr	x0, [x0, _panfrost_drm_driver@GOTPAGEOFF]
	mov	x1, x21
	bl	_drm_dev_alloc
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	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_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_4:
	str	x20, [x19]
	str	x19, [x20, #16]
	add	x0, x20, #12
	bl	_mutex_init
	add	x0, x20, #8
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	bl	_panfrost_device_init
	cbz	w0, LBB0_7
; %bb.5:
	mov	x22, x0
Lloh8:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_14
; %bb.6:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_14
LBB0_7:
	mov	x0, x20
	bl	_panfrost_devfreq_init
	cbz	w0, LBB0_10
; %bb.8:
	mov	x22, x0
Lloh13:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_13
; %bb.9:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_13
LBB0_10:
	ldr	x0, [x20]
	bl	_pm_runtime_set_active
	ldr	x0, [x20]
	bl	_pm_runtime_mark_last_busy
	ldr	x0, [x20]
	bl	_pm_runtime_enable
	ldr	x0, [x20]
	mov	w1, #50
	bl	_pm_runtime_set_autosuspend_delay
	ldr	x0, [x20]
	bl	_pm_runtime_use_autosuspend
	mov	x0, x19
	mov	w1, #0
	bl	_drm_dev_register
	tbnz	w0, #31, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_panfrost_gem_shrinker_init
	mov	w22, #0
	b	LBB0_15
LBB0_12:
	mov	x22, x0
	ldr	x0, [x20]
	bl	_pm_runtime_disable
	mov	x0, x20
	bl	_panfrost_devfreq_fini
LBB0_13:
	mov	x0, x20
	bl	_panfrost_device_fini
LBB0_14:
	mov	x0, x19
	bl	_drm_dev_put
LBB0_15:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_panfrost_drm_driver,4,2        ; @panfrost_drm_driver
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fatal error during GPU init\n"

l_.str.1:                               ; @.str.1
	.asciz	"Fatal error during devfreq init\n"

	.no_dead_strip	_panfrost_probe
.subsections_via_symbols
