	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_scm_probe
_qcom_scm_probe:                        ## @qcom_scm_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_7
## %bb.1:
	movq	%rax, %r12
	leaq	48(%rax), %rsi
	movq	%r14, %rdi
	callq	_qcom_scm_find_dload_address
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	8(%r12), %rdi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_6
## %bb.4:
	movq	_SCM_HAS_CORE_CLK@GOTPCREL(%rip), %rax
	testq	%r15, (%rax)
	je	LBB0_10
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_6:
	movq	8(%r12), %rdi
	jmp	LBB0_23
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_8:
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	$0, 8(%r12)
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 40(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movq	40(%r12), %rdi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_14
## %bb.13:
	movq	40(%r12), %rdi
	jmp	LBB0_23
LBB0_14:
	movq	_SCM_HAS_IFACE_CLK@GOTPCREL(%rip), %rax
	testq	%r15, (%rax)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	40(%r12), %rdi
	jmp	LBB0_23
LBB0_16:
	movq	$0, 40(%r12)
LBB0_17:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 32(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_25
## %bb.18:
	movq	32(%r12), %rdi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_22
## %bb.20:
	movq	_SCM_HAS_BUS_CLK@GOTPCREL(%rip), %rax
	testq	%r15, (%rax)
	je	LBB0_24
## %bb.21:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_22:
	movq	32(%r12), %rdi
LBB0_23:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_24:
	movq	$0, 32(%r12)
LBB0_25:
	movq	%r12, %rsi
	addq	$16, %rsi
	movq	_qcom_scm_pas_reset_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r12)
	movl	$1, 16(%r12)
	movl	(%r14), %eax
	movl	%eax, 20(%r12)
	movq	%r14, %rdi
	callq	_devm_reset_controller_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.26:
	movq	8(%r12), %rdi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_clk_set_rate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.27:
	movq	___scm@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	movq	%r14, (%r12)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	___qcom_scm_init
	movq	_download_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.28:
	movl	$1, %edi
	callq	_qcom_scm_set_download_mode
	jmp	LBB0_9
	.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	"core"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_SCM_HAS_CORE_CLK,8,3           ## @SCM_HAS_CORE_CLK
L_.str.1:                               ## @.str.1
	.asciz	"failed to acquire core clk\n"

L_.str.2:                               ## @.str.2
	.asciz	"iface"

	.comm	_SCM_HAS_IFACE_CLK,8,3          ## @SCM_HAS_IFACE_CLK
L_.str.3:                               ## @.str.3
	.asciz	"failed to acquire iface clk\n"

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

	.comm	_SCM_HAS_BUS_CLK,8,3            ## @SCM_HAS_BUS_CLK
L_.str.5:                               ## @.str.5
	.asciz	"failed to acquire bus clk\n"

	.comm	_qcom_scm_pas_reset_ops,4,2     ## @qcom_scm_pas_reset_ops
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	___scm,8,3                      ## @__scm
	.comm	_download_mode,8,3              ## @download_mode
	.no_dead_strip	_qcom_scm_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_scm_probe
_qcom_scm_probe:                        ; @qcom_scm_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_7
; %bb.1:
	mov	x19, x0
	add	x1, x0, #48
	mov	x0, x20
	bl	_qcom_scm_find_dload_address
	tbnz	w0, #31, LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_of_device_get_match_data
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
Lloh5:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_6
; %bb.4:
Lloh8:
	adrp	x8, _SCM_HAS_CORE_CLK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCM_HAS_CORE_CLK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_9
; %bb.5:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_6:
	ldr	x0, [x19, #8]
	b	LBB0_21
LBB0_7:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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_9:
	str	xzr, [x19, #8]
LBB0_10:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.11:
	ldr	x0, [x19, #40]
	bl	_PTR_ERR
Lloh18:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_13
; %bb.12:
	ldr	x0, [x19, #40]
	b	LBB0_21
LBB0_13:
Lloh21:
	adrp	x8, _SCM_HAS_IFACE_CLK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SCM_HAS_IFACE_CLK@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_15
; %bb.14:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #40]
	b	LBB0_21
LBB0_15:
	str	xzr, [x19, #40]
LBB0_16:
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.17:
	ldr	x0, [x19, #32]
	bl	_PTR_ERR
Lloh28:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_20
; %bb.18:
Lloh31:
	adrp	x8, _SCM_HAS_BUS_CLK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SCM_HAS_BUS_CLK@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_22
; %bb.19:
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_20:
	ldr	x0, [x19, #32]
LBB0_21:
	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_22:
	str	xzr, [x19, #32]
LBB0_23:
Lloh36:
	adrp	x8, _qcom_scm_pas_reset_ops@GOTPAGE
Lloh37:
	ldr	x8, [x8, _qcom_scm_pas_reset_ops@GOTPAGEOFF]
	mov	w9, #1
	mov	x1, x19
	str	w9, [x1, #16]!
	str	x8, [x1, #8]
	ldr	w8, [x20]
	str	w8, [x1, #4]
	mov	x0, x20
	bl	_devm_reset_controller_register
	cbnz	w0, LBB0_8
; %bb.24:
	ldr	x0, [x19, #8]
Lloh38:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh39:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	bl	_clk_set_rate
	cbnz	w0, LBB0_8
; %bb.25:
Lloh41:
	adrp	x8, ___scm@GOTPAGE
Lloh42:
	ldr	x8, [x8, ___scm@GOTPAGEOFF]
Lloh43:
	str	x19, [x8]
	str	x20, [x19]
	bl	___qcom_scm_init
Lloh44:
	adrp	x8, _download_mode@GOTPAGE
Lloh45:
	ldr	x8, [x8, _download_mode@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	cbz	x8, LBB0_27
; %bb.26:
	mov	w0, #1
	bl	_qcom_scm_set_download_mode
LBB0_27:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	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
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.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	"core"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_SCM_HAS_CORE_CLK,8,3           ; @SCM_HAS_CORE_CLK
l_.str.1:                               ; @.str.1
	.asciz	"failed to acquire core clk\n"

l_.str.2:                               ; @.str.2
	.asciz	"iface"

	.comm	_SCM_HAS_IFACE_CLK,8,3          ; @SCM_HAS_IFACE_CLK
l_.str.3:                               ; @.str.3
	.asciz	"failed to acquire iface clk\n"

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

	.comm	_SCM_HAS_BUS_CLK,8,3            ; @SCM_HAS_BUS_CLK
l_.str.5:                               ; @.str.5
	.asciz	"failed to acquire bus clk\n"

	.comm	_qcom_scm_pas_reset_ops,4,2     ; @qcom_scm_pas_reset_ops
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	___scm,8,3                      ; @__scm
	.comm	_download_mode,8,3              ; @download_mode
	.no_dead_strip	_qcom_scm_probe
.subsections_via_symbols
