	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_hqvdp_probe
_sti_hqvdp_probe:                       ## @sti_hqvdp_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	%r14, 40(%rax)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_devm_ioremap
	movl	%eax, 32(%r15)
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 24(%r15)
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r15)
	movq	24(%r15), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	16(%r15), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
LBB0_5:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
LBB0_9:
	callq	_DRM_ERROR
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	8(%r15), %rdi
	callq	_reset_control_deassert
LBB0_14:
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_of_vtg_find
	movl	%eax, (%r15)
LBB0_16:
	movq	%rbx, %rdi
	callq	_of_node_put
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	_sti_hqvdp_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_component_add                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate HQVDP context\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.2:                               ## @.str.2
	.asciz	"Get memory resource failed\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"hqvdp"

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

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

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

	.comm	_sti_hqvdp_ops,4,2              ## @sti_hqvdp_ops
	.no_dead_strip	_sti_hqvdp_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_hqvdp_probe
_sti_hqvdp_probe:                       ; @sti_hqvdp_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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #40]
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w21, [x0]
	bl	_resource_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_devm_ioremap
	str	w0, [x20, #32]
	cbz	w0, LBB0_8
; %bb.3:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #24]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #16]
	ldr	x0, [x20, #24]
	bl	_IS_ERR
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_11
LBB0_5:
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	bl	_DRM_ERROR
Lloh22:
	adrp	x8, _ENXIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	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_11:
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	x0, [x20, #8]
	bl	_reset_control_deassert
LBB0_13:
	ldr	w0, [x19]
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x21, x0
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x21
	bl	_of_vtg_find
	str	w0, [x20]
LBB0_15:
	mov	x0, x21
	bl	_of_node_put
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh28:
	adrp	x1, _sti_hqvdp_ops@GOTPAGE
Lloh29:
	ldr	x1, [x1, _sti_hqvdp_ops@GOTPAGEOFF]
	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	_component_add
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate HQVDP context\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.2:                               ; @.str.2
	.asciz	"Get memory resource failed\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"hqvdp"

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

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

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

	.comm	_sti_hqvdp_ops,4,2              ; @sti_hqvdp_ops
	.no_dead_strip	_sti_hqvdp_probe
.subsections_via_symbols
