	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_qmi_map_msa_permission
_ath10k_qmi_map_msa_permission:         ## @ath10k_qmi_map_msa_permission
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	(%rdi), %r14
	movq	_QCOM_SCM_VMID_HLOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, -84(%rbp)
	movq	_QCOM_SCM_VMID_MSS_MSA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_QCOM_SCM_PERM_RW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movq	_QCOM_SCM_VMID_WLAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movq	%rax, -64(%rbp)
	movl	$2, %r8d
	cmpq	$0, 8(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_QCOM_SCM_VMID_WLAN_CE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -40(%rbp)
	movq	%rax, -48(%rbp)
	movl	$3, %r8d
LBB0_2:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	leaq	-84(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	callq	_qcom_scm_assign_mem
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ath10k_err
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_QCOM_SCM_VMID_HLOS,4,2         ## @QCOM_SCM_VMID_HLOS
	.comm	_QCOM_SCM_VMID_MSS_MSA,4,2      ## @QCOM_SCM_VMID_MSS_MSA
	.comm	_QCOM_SCM_PERM_RW,8,3           ## @QCOM_SCM_PERM_RW
	.comm	_QCOM_SCM_VMID_WLAN,4,2         ## @QCOM_SCM_VMID_WLAN
	.comm	_QCOM_SCM_VMID_WLAN_CE,4,2      ## @QCOM_SCM_VMID_WLAN_CE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to assign msa map permissions: %d\n"

	.no_dead_strip	_ath10k_qmi_map_msa_permission
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_qmi_map_msa_permission
_ath10k_qmi_map_msa_permission:         ; @ath10k_qmi_map_msa_permission
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x19, [x0]
Lloh3:
	adrp	x8, _QCOM_SCM_VMID_HLOS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QCOM_SCM_VMID_HLOS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
	str	w0, [sp, #4]
Lloh6:
	adrp	x8, _QCOM_SCM_VMID_MSS_MSA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QCOM_SCM_VMID_MSS_MSA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh9:
	adrp	x8, _QCOM_SCM_PERM_RW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QCOM_SCM_PERM_RW@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh12:
	adrp	x9, _QCOM_SCM_VMID_WLAN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _QCOM_SCM_VMID_WLAN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	str	w9, [sp, #32]
	str	x8, [sp, #24]
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_2
; %bb.1:
	mov	w4, #2
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x9, _QCOM_SCM_VMID_WLAN_CE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _QCOM_SCM_VMID_WLAN_CE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	str	w9, [sp, #48]
	str	x8, [sp, #40]
	mov	w4, #3
LBB0_3:
	ldp	w1, w0, [x20]
	add	x2, sp, #4
	add	x3, sp, #8
	bl	_qcom_scm_assign_mem
	mov	x20, x0
	tbz	w0, #31, LBB0_5
; %bb.4:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_err
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_QCOM_SCM_VMID_HLOS,4,2         ; @QCOM_SCM_VMID_HLOS
	.comm	_QCOM_SCM_VMID_MSS_MSA,4,2      ; @QCOM_SCM_VMID_MSS_MSA
	.comm	_QCOM_SCM_PERM_RW,8,3           ; @QCOM_SCM_PERM_RW
	.comm	_QCOM_SCM_VMID_WLAN,4,2         ; @QCOM_SCM_VMID_WLAN
	.comm	_QCOM_SCM_VMID_WLAN_CE,4,2      ; @QCOM_SCM_VMID_WLAN_CE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to assign msa map permissions: %d\n"

	.no_dead_strip	_ath10k_qmi_map_msa_permission
.subsections_via_symbols
