	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_mask_parities          ## -- Begin function qed_mcp_mask_parities
	.p2align	4, 0x90
_qed_mcp_mask_parities:                 ## @qed_mcp_mask_parities
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rcx
	movq	%rdi, %r14
	movq	$0, -24(%rbp)
	movq	$0, -32(%rbp)
	movq	_DRV_MSG_CODE_MASK_PARITIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %r8
	leaq	-32(%rbp), %r9
	callq	_qed_mcp_cmd
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_ERR
	jmp	LBB0_4
LBB0_2:
	movq	-24(%rbp), %rax
	movq	_FW_MSG_CODE_OK@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_MSG_CODE_MASK_PARITIES,4,2 ## @DRV_MSG_CODE_MASK_PARITIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MCP response failure for mask parities, aborting\n"

	.comm	_FW_MSG_CODE_OK,8,3             ## @FW_MSG_CODE_OK
L_.str.1:                               ## @.str.1
	.asciz	"MCP did not acknowledge mask parity request. Old MFW?\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_mask_parities          ; -- Begin function qed_mcp_mask_parities
	.p2align	2
_qed_mcp_mask_parities:                 ; @qed_mcp_mask_parities
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x3, x2
	mov	x19, x0
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _DRV_MSG_CODE_MASK_PARITIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV_MSG_CODE_MASK_PARITIES@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x5, sp
	bl	_qed_mcp_cmd
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
	b	LBB0_5
LBB0_2:
	ldr	x8, [sp, #8]
Lloh5:
	adrp	x9, _FW_MSG_CODE_OK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FW_MSG_CODE_OK@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_MSG_CODE_MASK_PARITIES,4,2 ; @DRV_MSG_CODE_MASK_PARITIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MCP response failure for mask parities, aborting\n"

	.comm	_FW_MSG_CODE_OK,8,3             ; @FW_MSG_CODE_OK
l_.str.1:                               ; @.str.1
	.asciz	"MCP did not acknowledge mask parity request. Old MFW?\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
