	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_qmi_unmap_msa_permission
_ath10k_qmi_unmap_msa_permission:       ## @ath10k_qmi_unmap_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	%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	%rsi, %r15
	movq	(%rdi), %r14
	movq	_QCOM_SCM_VMID_MSS_MSA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r12d
	movq	_QCOM_SCM_VMID_WLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movl	%ebx, -36(%rbp)
	cmpl	$0, 8(%r15)
	jne	LBB0_2
## %bb.1:
	movq	_QCOM_SCM_VMID_WLAN_CE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	%ebx, -36(%rbp)
LBB0_2:
	movq	_QCOM_SCM_VMID_HLOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_QCOM_SCM_PERM_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%r15), %esi
	movl	4(%r15), %edi
	leaq	-36(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movl	$1, %r8d
	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:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QCOM_SCM_VMID_MSS_MSA,4,2      ## @QCOM_SCM_VMID_MSS_MSA
	.comm	_QCOM_SCM_VMID_WLAN,4,2         ## @QCOM_SCM_VMID_WLAN
	.comm	_QCOM_SCM_VMID_WLAN_CE,4,2      ## @QCOM_SCM_VMID_WLAN_CE
	.comm	_QCOM_SCM_VMID_HLOS,4,2         ## @QCOM_SCM_VMID_HLOS
	.comm	_QCOM_SCM_PERM_RW,4,2           ## @QCOM_SCM_PERM_RW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to unmap msa permissions: %d\n"

	.no_dead_strip	_ath10k_qmi_unmap_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_unmap_msa_permission
_ath10k_qmi_unmap_msa_permission:       ; @ath10k_qmi_unmap_msa_permission
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _QCOM_SCM_VMID_MSS_MSA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QCOM_SCM_VMID_MSS_MSA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	mov	x21, x0
Lloh3:
	adrp	x8, _QCOM_SCM_VMID_WLAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QCOM_SCM_VMID_WLAN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
	orr	w21, w0, w21
	str	w21, [sp, #4]
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _QCOM_SCM_VMID_WLAN_CE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QCOM_SCM_VMID_WLAN_CE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w21, w0
	str	w8, [sp, #4]
LBB0_2:
Lloh9:
	adrp	x8, _QCOM_SCM_VMID_HLOS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QCOM_SCM_VMID_HLOS@GOTPAGEOFF]
Lloh11:
	adrp	x9, _QCOM_SCM_PERM_RW@GOTPAGE
Lloh12:
	ldr	x9, [x9, _QCOM_SCM_PERM_RW@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	ldp	w1, w0, [x20]
	add	x2, sp, #4
	add	x3, sp, #8
	mov	w4, #1
	bl	_qcom_scm_assign_mem
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_err
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_QCOM_SCM_VMID_MSS_MSA,4,2      ; @QCOM_SCM_VMID_MSS_MSA
	.comm	_QCOM_SCM_VMID_WLAN,4,2         ; @QCOM_SCM_VMID_WLAN
	.comm	_QCOM_SCM_VMID_WLAN_CE,4,2      ; @QCOM_SCM_VMID_WLAN_CE
	.comm	_QCOM_SCM_VMID_HLOS,4,2         ; @QCOM_SCM_VMID_HLOS
	.comm	_QCOM_SCM_PERM_RW,4,2           ; @QCOM_SCM_PERM_RW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to unmap msa permissions: %d\n"

	.no_dead_strip	_ath10k_qmi_unmap_msa_permission
.subsections_via_symbols
