	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_qmi_setup_msa_resources
_ath10k_qmi_setup_msa_resources:        ## @ath10k_qmi_setup_msa_resources
	.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
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	16(%rdi), %rbx
	movq	(%rbx), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, %r12
	leaq	-48(%rbp), %rdx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_of_address_to_resource
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_6:
	leaq	4(%r13), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_dmam_alloc_coherent
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%r12d, 8(%r13)
	jmp	LBB0_9
LBB0_3:
	movq	%r14, %rdi
	callq	_of_node_put
	movl	-48(%rbp), %eax
	movl	%eax, 4(%r13)
	leaq	-48(%rbp), %rdi
	callq	_resource_size
	movl	%eax, 8(%r13)
	movl	4(%r13), %esi
	movq	_MEMREMAP_WT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_devm_memremap
	movl	%eax, (%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r13), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ath10k_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	movl	(%r13), %eax
	movq	%r12, %rbx
LBB0_9:
	movq	_ATH10K_DBG_QMI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	addq	$4, %r13
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rcx
	movl	%eax, %r8d
	callq	_ath10k_dbg
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memory-region"

L_.str.1:                               ## @.str.1
	.asciz	"failed to resolve msa fixed region\n"

	.comm	_MEMREMAP_WT,4,2                ## @MEMREMAP_WT
L_.str.2:                               ## @.str.2
	.asciz	"failed to map memory region: %pa\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.3:                               ## @.str.3
	.asciz	"failed to allocate dma memory for msa region\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ATH10K_DBG_QMI,4,2             ## @ATH10K_DBG_QMI
L_.str.4:                               ## @.str.4
	.asciz	"msa pa: %pad , msa va: 0x%p\n"

	.no_dead_strip	_ath10k_qmi_setup_msa_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_qmi_setup_msa_resources
_ath10k_qmi_setup_msa_resources:        ; @ath10k_qmi_setup_msa_resources
	.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	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	x21, [x20]
	ldr	w0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
	add	x2, sp, #8
	mov	w1, #0
	bl	_of_address_to_resource
	cbz	w0, LBB0_5
; %bb.2:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_10
LBB0_3:
	add	x2, x19, #4
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_dmam_alloc_coherent
	str	w0, [x19]
	cbz	w0, LBB0_7
; %bb.4:
	mov	x4, x0
	str	w22, [x19, #8]
	b	LBB0_9
LBB0_5:
	mov	x0, x23
	bl	_of_node_put
	ldr	w8, [sp, #8]
	str	w8, [x19, #4]
	add	x22, sp, #8
	add	x0, sp, #8
	bl	_resource_size
	mov	x2, x0
	str	w0, [x19, #8]
	ldr	w1, [x19, #4]
Lloh7:
	adrp	x8, _MEMREMAP_WT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MEMREMAP_WT@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_devm_memremap
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	str	x22, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w0, [x19]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_10
LBB0_7:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_ath10k_err
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_8:
	ldr	w4, [x19]
LBB0_9:
Lloh17:
	adrp	x8, _ATH10K_DBG_QMI@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ATH10K_DBG_QMI@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x3, x19, #4
Lloh20:
	adrp	x2, l_.str.4@PAGE
Lloh21:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_ath10k_dbg
	mov	w22, #0
LBB0_10:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memory-region"

l_.str.1:                               ; @.str.1
	.asciz	"failed to resolve msa fixed region\n"

	.comm	_MEMREMAP_WT,4,2                ; @MEMREMAP_WT
l_.str.2:                               ; @.str.2
	.asciz	"failed to map memory region: %pa\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.3:                               ; @.str.3
	.asciz	"failed to allocate dma memory for msa region\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATH10K_DBG_QMI,4,2             ; @ATH10K_DBG_QMI
l_.str.4:                               ; @.str.4
	.asciz	"msa pa: %pad , msa va: 0x%p\n"

	.no_dead_strip	_ath10k_qmi_setup_msa_resources
.subsections_via_symbols
