	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_compositor_probe
_sti_compositor_probe:                  ## @sti_compositor_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, %r15
	movq	(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$88, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	%r15, 80(%rax)
	movq	_STI_MAX_MIXER@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	72(%r14), %rcx
	xorl	%edx, %edx
	movq	_sti_crtc_vblank_cb@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rcx,%rdx,4)
	incq	%rdx
	movl	(%rax), %edi
	cmpq	%rdi, %rdx
	jb	LBB0_3
LBB0_4:
	movq	_compositor_of_match@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_of_match_node
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_BUG_ON
	movq	%r14, %rbx
	addq	$64, %rbx
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_of_match_node
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_devm_ioremap
	movq	%rax, 56(%r14)
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 48(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	callq	_DRM_ERROR
	movq	48(%r14), %rdi
	jmp	LBB0_19
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.6(%rip), %rdi
	callq	_DRM_ERROR
	movq	40(%r14), %rdi
	jmp	LBB0_19
LBB0_15:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.8(%rip), %rdi
	callq	_DRM_ERROR
	movq	32(%r14), %rdi
	jmp	LBB0_19
LBB0_17:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	leaq	L_.str.10(%rip), %rdi
	callq	_DRM_ERROR
	movq	24(%r14), %rdi
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_20:
	leaq	L_.str.11(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_reset_control_get_shared
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	16(%r14), %rdi
	callq	_reset_control_deassert
LBB0_22:
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_reset_control_get_shared
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	movq	8(%r14), %rdi
	callq	_reset_control_deassert
LBB0_24:
	movq	(%r15), %rdi
	leaq	L_.str.13(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%rbx, %rdi
	callq	_of_vtg_find
	movq	(%r14), %rcx
	movq	_STI_MIXER_MAIN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_26:
	movq	%rbx, %rdi
	callq	_of_node_put
	movq	(%r15), %rdi
	leaq	L_.str.13(%rip), %rsi
	movl	$1, %edx
	callq	_of_parse_phandle
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	%rbx, %rdi
	callq	_of_vtg_find
	movq	(%r14), %rcx
	movq	_STI_MIXER_AUX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_28:
	movq	%rbx, %rdi
	callq	_of_node_put
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	_sti_compositor_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_component_add                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate compositor context\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_STI_MAX_MIXER,4,2              ## @STI_MAX_MIXER
	.comm	_sti_crtc_vblank_cb,4,2         ## @sti_crtc_vblank_cb
	.comm	_compositor_of_match,4,2        ## @compositor_of_match
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"Get memory resource failed\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.2:                               ## @.str.2
	.asciz	"Register mapping failed\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"Cannot get compo_main clock\n"

L_.str.5:                               ## @.str.5
	.asciz	"compo_aux"

L_.str.6:                               ## @.str.6
	.asciz	"Cannot get compo_aux clock\n"

L_.str.7:                               ## @.str.7
	.asciz	"pix_main"

L_.str.8:                               ## @.str.8
	.asciz	"Cannot get pix_main clock\n"

L_.str.9:                               ## @.str.9
	.asciz	"pix_aux"

L_.str.10:                              ## @.str.10
	.asciz	"Cannot get pix_aux clock\n"

L_.str.11:                              ## @.str.11
	.asciz	"compo-main"

L_.str.12:                              ## @.str.12
	.asciz	"compo-aux"

L_.str.13:                              ## @.str.13
	.asciz	"st,vtg"

	.comm	_STI_MIXER_MAIN,8,3             ## @STI_MIXER_MAIN
	.comm	_STI_MIXER_AUX,8,3              ## @STI_MIXER_AUX
	.comm	_sti_compositor_ops,4,2         ## @sti_compositor_ops
	.no_dead_strip	_sti_compositor_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_compositor_probe
_sti_compositor_probe:                  ; @sti_compositor_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	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #88
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #80]
Lloh3:
	adrp	x8, _STI_MAX_MIXER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STI_MAX_MIXER@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_4
; %bb.2:
	mov	x9, #0
	ldr	x10, [x19, #72]
Lloh5:
	adrp	x11, _sti_crtc_vblank_cb@GOTPAGE
Lloh6:
	ldr	x11, [x11, _sti_crtc_vblank_cb@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldr	w12, [x8]
	cmp	x9, x12
	b.lo	LBB0_3
LBB0_4:
Lloh7:
	adrp	x23, _compositor_of_match@GOTPAGE
Lloh8:
	ldr	x23, [x23, _compositor_of_match@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_of_match_node
	ldr	w8, [x0]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	add	x22, x19, #64
	ldr	w0, [x23]
	mov	x1, x21
	bl	_of_match_node
	ldr	w1, [x0]
	mov	x0, x22
	mov	w2, #4
	bl	_memcpy
Lloh9:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w21, [x0]
	bl	_resource_size
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_devm_ioremap
	str	x0, [x19, #56]
	cbz	x0, LBB0_10
; %bb.6:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.7:
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_ERROR
	ldr	x0, [x19, #48]
	b	LBB0_19
LBB0_8:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	bl	_DRM_ERROR
Lloh24:
	adrp	x8, _ENXIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_13:
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.14:
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DRM_ERROR
	ldr	x0, [x19, #40]
	b	LBB0_19
LBB0_15:
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.16:
Lloh32:
	adrp	x0, l_.str.8@PAGE
Lloh33:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_DRM_ERROR
	ldr	x0, [x19, #32]
	b	LBB0_19
LBB0_17:
Lloh34:
	adrp	x1, l_.str.9@PAGE
Lloh35:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.18:
Lloh36:
	adrp	x0, l_.str.10@PAGE
Lloh37:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_DRM_ERROR
	ldr	x0, [x19, #24]
LBB0_19:
	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
	b	_PTR_ERR
LBB0_20:
Lloh38:
	adrp	x1, l_.str.11@PAGE
Lloh39:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_devm_reset_control_get_shared
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbnz	x0, LBB0_22
; %bb.21:
	ldr	x0, [x19, #16]
	bl	_reset_control_deassert
LBB0_22:
Lloh40:
	adrp	x1, l_.str.12@PAGE
Lloh41:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_devm_reset_control_get_shared
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbnz	x0, LBB0_24
; %bb.23:
	ldr	x0, [x19, #8]
	bl	_reset_control_deassert
LBB0_24:
	ldr	x0, [x20]
Lloh42:
	adrp	x1, l_.str.13@PAGE
Lloh43:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x21, x0
	cbz	x0, LBB0_26
; %bb.25:
	mov	x0, x21
	bl	_of_vtg_find
	ldr	x8, [x19]
Lloh44:
	adrp	x9, _STI_MIXER_MAIN@GOTPAGE
Lloh45:
	ldr	x9, [x9, _STI_MIXER_MAIN@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
LBB0_26:
	mov	x0, x21
	bl	_of_node_put
	ldr	x0, [x20]
Lloh47:
	adrp	x1, l_.str.13@PAGE
Lloh48:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	w2, #1
	bl	_of_parse_phandle
	mov	x21, x0
	cbz	x0, LBB0_28
; %bb.27:
	mov	x0, x21
	bl	_of_vtg_find
	ldr	x8, [x19]
Lloh49:
	adrp	x9, _STI_MIXER_AUX@GOTPAGE
Lloh50:
	ldr	x9, [x9, _STI_MIXER_AUX@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
LBB0_28:
	mov	x0, x21
	bl	_of_node_put
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh52:
	adrp	x1, _sti_compositor_ops@GOTPAGE
Lloh53:
	ldr	x1, [x1, _sti_compositor_ops@GOTPAGEOFF]
	mov	x0, x20
	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
	b	_component_add
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate compositor context\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_STI_MAX_MIXER,4,2              ; @STI_MAX_MIXER
	.comm	_sti_crtc_vblank_cb,4,2         ; @sti_crtc_vblank_cb
	.comm	_compositor_of_match,4,2        ; @compositor_of_match
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"Get memory resource failed\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.2:                               ; @.str.2
	.asciz	"Register mapping failed\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"Cannot get compo_main clock\n"

l_.str.5:                               ; @.str.5
	.asciz	"compo_aux"

l_.str.6:                               ; @.str.6
	.asciz	"Cannot get compo_aux clock\n"

l_.str.7:                               ; @.str.7
	.asciz	"pix_main"

l_.str.8:                               ; @.str.8
	.asciz	"Cannot get pix_main clock\n"

l_.str.9:                               ; @.str.9
	.asciz	"pix_aux"

l_.str.10:                              ; @.str.10
	.asciz	"Cannot get pix_aux clock\n"

l_.str.11:                              ; @.str.11
	.asciz	"compo-main"

l_.str.12:                              ; @.str.12
	.asciz	"compo-aux"

l_.str.13:                              ; @.str.13
	.asciz	"st,vtg"

	.comm	_STI_MIXER_MAIN,8,3             ; @STI_MIXER_MAIN
	.comm	_STI_MIXER_AUX,8,3              ; @STI_MIXER_AUX
	.comm	_sti_compositor_ops,4,2         ; @sti_compositor_ops
	.no_dead_strip	_sti_compositor_probe
.subsections_via_symbols
