	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qcom_scm_pas_init_image        ## -- Begin function qcom_scm_pas_init_image
	.p2align	4, 0x90
_qcom_scm_pas_init_image:               ## @qcom_scm_pas_init_image
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	___scm@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movq	%r14, %rsi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	xorl	%eax, %eax
	callq	_qcom_scm_clk_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	(%r13), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %edx
	movl	%r15d, %esi
	callq	___qcom_scm_pas_init_image
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_qcom_scm_clk_disable
LBB0_4:
	movq	(%r13), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %ecx
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_dma_free_coherent
	jmp	LBB0_5
LBB0_1:
	movq	(%r13), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___scm,8,3                      ## @__scm
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allocation of metadata buffer failed.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qcom_scm_pas_init_image        ; -- Begin function qcom_scm_pas_init_image
	.p2align	2
_qcom_scm_pas_init_image:               ; @qcom_scm_pas_init_image
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x23, ___scm@GOTPAGE
Lloh1:
	ldr	x23, [x23, ___scm@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w0, [x8]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	x1, x19
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	bl	_qcom_scm_clk_enable
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x23]
	ldr	w0, [x8]
	ldr	w2, [sp, #12]
	mov	x1, x21
	bl	___qcom_scm_pas_init_image
	mov	x22, x0
	bl	_qcom_scm_clk_disable
LBB0_3:
	ldr	x8, [x23]
	ldr	w0, [x8]
	ldr	w3, [sp, #12]
	mov	x1, x19
	mov	x2, x20
	bl	_dma_free_coherent
	b	LBB0_5
LBB0_4:
	ldr	x8, [x23]
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	___scm,8,3                      ; @__scm
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allocation of metadata buffer failed.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
