	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_pmac_add                ## -- Begin function be_cmd_pmac_add
	.p2align	4, 0x90
_be_cmd_pmac_add:                       ## @be_cmd_pmac_add
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %rbx
	movl	%edx, %r13d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_spin_lock_bh
	movq	%r15, %rdi
	callq	_wrb_from_mccq
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_embedded_payload
	movq	%rax, %rbx
	leaq	8(%rax), %rdi
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OPCODE_COMMON_NTWK_PMAC_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$12, %ecx
	movq	%r12, %r8
	xorl	%r9d, %r9d
	callq	_be_wrb_cmd_hdr_prepare
	movl	%r14d, 8(%rbx)
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movq	%r15, %rdi
	callq	_be_mcc_notify_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_embedded_payload
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	_MCC_STATUS_UNAUTHORIZED_REQUEST@GOTPCREL(%rip), %rcx
	movq	_EPERM@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	cmpl	(%rcx), %ebx
	cmovnel	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ## @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_NTWK_PMAC_ADD,4,2 ## @OPCODE_COMMON_NTWK_PMAC_ADD
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MCC_STATUS_UNAUTHORIZED_REQUEST,4,2 ## @MCC_STATUS_UNAUTHORIZED_REQUEST
	.comm	_EPERM,4,2                      ## @EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_pmac_add                ; -- Begin function be_cmd_pmac_add
	.p2align	2
_be_cmd_pmac_add:                       ; @be_cmd_pmac_add
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	bl	_spin_lock_bh
	mov	x0, x19
	bl	_wrb_from_mccq
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_embedded_payload
	mov	x25, x0
	add	x0, x0, #8
Lloh0:
	adrp	x8, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _OPCODE_COMMON_NTWK_PMAC_ADD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPCODE_COMMON_NTWK_PMAC_ADD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #12
	mov	x4, x21
	mov	x5, #0
	bl	_be_wrb_cmd_hdr_prepare
	str	w24, [x25, #8]
	mov	x0, x23
	bl	_cpu_to_le32
	str	w0, [x25, #4]
	ldr	w0, [x25]
Lloh6:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_memcpy
	mov	x0, x19
	bl	_be_mcc_notify_wait
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_embedded_payload
	ldr	w0, [x0]
	bl	_le32_to_cpu
	str	w0, [x20]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_bh
Lloh12:
	adrp	x8, _MCC_STATUS_UNAUTHORIZED_REQUEST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MCC_STATUS_UNAUTHORIZED_REQUEST@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _EPERM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EPERM@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w22, w8
	csneg	w0, w22, w9, ne
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ; @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_NTWK_PMAC_ADD,4,2 ; @OPCODE_COMMON_NTWK_PMAC_ADD
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MCC_STATUS_UNAUTHORIZED_REQUEST,4,2 ; @MCC_STATUS_UNAUTHORIZED_REQUEST
	.comm	_EPERM,4,2                      ; @EPERM
.subsections_via_symbols
