	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scaler_probe
_scaler_probe:                          ## @scaler_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
	subq	$16, %rsp
	.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	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 8(%r12)
	movq	%r14, 24(%r12)
	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(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	16(%r12), %edi
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_17
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movq	_scaler_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, (%rsp)
	leaq	L_.str.1(%rip), %r9
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_18
## %bb.9:
	movq	8(%r12), %rax
	cmpl	$0, (%rax)
	jle	LBB0_14
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movq	8(%r12), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_11
LBB0_14:
	movq	%r14, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	_SCALER_AUTOSUSPEND_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	_scaler_component_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_component_add
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_pm_runtime_dont_use_autosuspend
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	jmp	LBB0_17
LBB0_6:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_18:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_17:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	jmp	LBB0_4
LBB0_15:
	xorl	%r15d, %r15d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get irq\n"

	.comm	_scaler_irq_handler,4,2         ## @scaler_irq_handler
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"drm_scaler"

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

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

	.comm	_SCALER_AUTOSUSPEND_DELAY,4,2   ## @SCALER_AUTOSUSPEND_DELAY
	.comm	_scaler_component_ops,4,2       ## @scaler_component_ops
	.no_dead_strip	_scaler_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scaler_probe
_scaler_probe:                          ; @scaler_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	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_of_device_get_match_data
	str	x0, [x20, #8]
	str	x19, [x20, #24]
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x20, #16]
LBB0_3:
	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_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_13
; %bb.6:
Lloh9:
	adrp	x8, _scaler_irq_handler@GOTPAGE
Lloh10:
	ldr	x8, [x8, _scaler_irq_handler@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
Lloh15:
	adrp	x5, l_.str.1@PAGE
Lloh16:
	add	x5, x5, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_14
; %bb.7:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	lsl	x22, x21, #2
	ldr	w1, [x8, x22]
	mov	x0, x19
	bl	_devm_clk_get
	ldr	x8, [x20]
	str	w0, [x8, x22]
	bl	_IS_ERR
	cbnz	x0, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20, #8]
	ldrsw	x9, [x8]
	cmp	x21, x9
	b.lt	LBB0_9
LBB0_11:
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
Lloh17:
	adrp	x8, _SCALER_AUTOSUSPEND_DELAY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SCALER_AUTOSUSPEND_DELAY@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh20:
	adrp	x1, _scaler_component_ops@GOTPAGE
Lloh21:
	ldr	x1, [x1, _scaler_component_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_component_add
	mov	x21, x0
	cbz	w0, LBB0_16
; %bb.12:
	mov	x0, x19
	bl	_pm_runtime_dont_use_autosuspend
	mov	x0, x19
	bl	_pm_runtime_disable
	b	LBB0_16
LBB0_13:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
	mov	x21, x0
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_dev_err
LBB0_16:
	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_17:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x8, [x20]
	ldr	w0, [x8, x21, lsl #2]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get irq\n"

	.comm	_scaler_irq_handler,4,2         ; @scaler_irq_handler
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"drm_scaler"

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

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

	.comm	_SCALER_AUTOSUSPEND_DELAY,4,2   ; @SCALER_AUTOSUSPEND_DELAY
	.comm	_scaler_component_ops,4,2       ; @scaler_component_ops
	.no_dead_strip	_scaler_probe
.subsections_via_symbols
