	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g2d_probe
_g2d_probe:                             ## @g2d_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	$4, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_kmem_cache_create
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r14, 48(%r15)
	leaq	L_.str.1(%rip), %rdi
	callq	_create_singlethread_workqueue
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	44(%r15), %rdi
	movq	_g2d_runqueue_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	40(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	36(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%r15), %rdi
	callq	_mutex_init
	leaq	28(%r15), %rdi
	callq	_mutex_init
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movl	%eax, 24(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	24(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_8:
	movq	%r14, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r14, %rdi
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	_G2D_BIT_SUSPEND_RUNQUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rbx
	addq	$20, %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_G2D_BIT_ENGINE_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 16(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	16(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_17:
	movq	%r14, %rdi
	callq	_pm_runtime_disable
LBB0_18:
	movl	8(%r15), %edi
	callq	_destroy_workqueue
LBB0_19:
	movl	4(%r15), %edi
	callq	_kmem_cache_destroy
LBB0_20:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	_g2d_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.6(%rip), %r8
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movq	_MAX_POOL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	_g2d_component_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_component_add
	testl	%eax, %eax
	jns	LBB0_20
## %bb.15:
	movl	%eax, %r12d
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	(%r15), %ebx
	jmp	LBB0_17
LBB0_13:
	movl	%eax, %r12d
	leaq	L_.str.7(%rip), %rsi
LBB0_16:
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"g2d_runqueue_slab"

L_.str.1:                               ## @.str.1
	.asciz	"g2d"

L_.str.2:                               ## @.str.2
	.asciz	"failed to create workqueue\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_g2d_runqueue_worker,4,2        ## @g2d_runqueue_worker
L_.str.3:                               ## @.str.3
	.asciz	"fimg2d"

L_.str.4:                               ## @.str.4
	.asciz	"failed to get gate clock\n"

	.comm	_G2D_BIT_SUSPEND_RUNQUEUE,4,2   ## @G2D_BIT_SUSPEND_RUNQUEUE
	.comm	_G2D_BIT_ENGINE_BUSY,4,2        ## @G2D_BIT_ENGINE_BUSY
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.5:                               ## @.str.5
	.asciz	"failed to get irq\n"

	.comm	_g2d_irq_handler,4,2            ## @g2d_irq_handler
L_.str.6:                               ## @.str.6
	.asciz	"drm_g2d"

L_.str.7:                               ## @.str.7
	.asciz	"irq request failed\n"

	.comm	_MAX_POOL,4,2                   ## @MAX_POOL
	.comm	_g2d_component_ops,4,2          ## @g2d_component_ops
L_.str.8:                               ## @.str.8
	.asciz	"failed to register drm g2d device\n"

	.no_dead_strip	_g2d_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g2d_probe
_g2d_probe:                             ; @g2d_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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #4
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_kmem_cache_create
	str	w0, [x19, #4]
	cbz	w0, LBB0_5
; %bb.2:
	str	x20, [x19, #48]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_create_singlethread_workqueue
	str	w0, [x19, #8]
	cbz	w0, LBB0_6
; %bb.3:
	add	x0, x19, #44
Lloh7:
	adrp	x8, _g2d_runqueue_worker@GOTPAGE
Lloh8:
	ldr	x8, [x8, _g2d_runqueue_worker@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #40
	bl	_INIT_LIST_HEAD
	add	x0, x19, #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	bl	_mutex_init
	add	x0, x19, #28
	bl	_mutex_init
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	w0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #24]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_10
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_6:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_7:
	mov	x0, x20
	bl	_pm_runtime_use_autosuspend
	mov	x0, x20
	mov	w1, #2000
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x20
	bl	_pm_runtime_enable
Lloh22:
	adrp	x8, _G2D_BIT_SUSPEND_RUNQUEUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _G2D_BIT_SUSPEND_RUNQUEUE@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	add	x21, x19, #20
	mov	x1, x21
	bl	_clear_bit
Lloh25:
	adrp	x8, _G2D_BIT_ENGINE_BUSY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _G2D_BIT_ENGINE_BUSY@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
Lloh28:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.8:
	ldr	w0, [x19, #16]
	bl	_PTR_ERR
	mov	x21, x0
LBB0_9:
	mov	x0, x20
	bl	_pm_runtime_disable
LBB0_10:
	ldr	w0, [x19, #8]
	bl	_destroy_workqueue
LBB0_11:
	ldr	w0, [x19, #4]
	bl	_kmem_cache_destroy
LBB0_12:
	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_13:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	str	w0, [x19]
	tbnz	w0, #31, LBB0_17
; %bb.14:
	mov	x1, x0
Lloh31:
	adrp	x8, _g2d_irq_handler@GOTPAGE
Lloh32:
	ldr	x8, [x8, _g2d_irq_handler@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x4, l_.str.6@PAGE
Lloh35:
	add	x4, x4, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_18
; %bb.15:
Lloh36:
	adrp	x8, _MAX_POOL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MAX_POOL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh39:
	adrp	x1, _g2d_component_ops@GOTPAGE
Lloh40:
	ldr	x1, [x1, _g2d_component_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_component_add
	tbnz	w0, #31, LBB0_19
; %bb.16:
	mov	w21, #0
	b	LBB0_12
LBB0_17:
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w21, [x19]
	b	LBB0_9
LBB0_18:
	mov	x21, x0
Lloh43:
	adrp	x1, l_.str.7@PAGE
Lloh44:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_20
LBB0_19:
	mov	x21, x0
Lloh45:
	adrp	x1, l_.str.8@PAGE
Lloh46:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_20:
	mov	x0, x20
	bl	_dev_err
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"g2d_runqueue_slab"

l_.str.1:                               ; @.str.1
	.asciz	"g2d"

l_.str.2:                               ; @.str.2
	.asciz	"failed to create workqueue\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_g2d_runqueue_worker,4,2        ; @g2d_runqueue_worker
l_.str.3:                               ; @.str.3
	.asciz	"fimg2d"

l_.str.4:                               ; @.str.4
	.asciz	"failed to get gate clock\n"

	.comm	_G2D_BIT_SUSPEND_RUNQUEUE,4,2   ; @G2D_BIT_SUSPEND_RUNQUEUE
	.comm	_G2D_BIT_ENGINE_BUSY,4,2        ; @G2D_BIT_ENGINE_BUSY
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.5:                               ; @.str.5
	.asciz	"failed to get irq\n"

	.comm	_g2d_irq_handler,4,2            ; @g2d_irq_handler
l_.str.6:                               ; @.str.6
	.asciz	"drm_g2d"

l_.str.7:                               ; @.str.7
	.asciz	"irq request failed\n"

	.comm	_MAX_POOL,4,2                   ; @MAX_POOL
	.comm	_g2d_component_ops,4,2          ; @g2d_component_ops
l_.str.8:                               ; @.str.8
	.asciz	"failed to register drm g2d device\n"

	.no_dead_strip	_g2d_probe
.subsections_via_symbols
