	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_dmae_execute_command
_qed_dmae_execute_command:              ## @qed_dmae_execute_command
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movq	%rcx, %r12
	movq	%rdx, %rcx
	movl	16(%rbp), %r14d
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_NETIF_MSG_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %r9
	pushq	%r14
	pushq	%rbx
	callq	_DP_VERBOSE
	addq	$16, %rsp
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %rcx
	movq	_DMAE_MAX_RW_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movl	16(%rdi), %r15d
	movq	_QED_DMAE_ADDRESS_GRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	cmpl	%r8d, %eax
	sete	%sil
	xorl	%edx, %edx
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	cmpl	%ebx, %eax
	sete	%dl
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_qed_dmae_opcode
	movl	%r15d, %edi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r13)
	movl	%r15d, %edi
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r13)
	movq	_DMAE_COMPLETION_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, (%r13)
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	%r14d, %eax
	cltd
	idivl	%r13d
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_13
## %bb.3:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %ecx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	incl	%eax
	leal	(,%r13,4), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %r12
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rcx
	addq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	subq	$8, %rsp
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%r13
	callq	_qed_dmae_execute_sub_operation
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	addl	%r13d, %r15d
	addl	-68(%rbp), %r14d                ## 4-byte Folded Reload
	addq	%r13, %r12
	movq	-120(%rbp), %rax                ## 8-byte Reload
	cmpq	%rbx, %rax
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_RW_REPL_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbp), %rdi
	callq	_QED_DMAE_FLAGS_IS_SET
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_QED_DMAE_ADDRESS_GRC@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r14d, %rax
	addq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rbx, -128(%rbp)                ## 8-byte Folded Reload
                                        ## kill: def $r13d killed $r13d killed $r13 def $r13
	cmovel	-72(%rbp), %r13d                ## 4-byte Folded Reload
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %eax
	movq	-112(%rbp), %r9                 ## 8-byte Reload
	movq	_QED_DMAE_ADDRESS_GRC@GOTPCREL(%rip), %rcx
	cmpl	%r9d, (%rcx)
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %eax
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	%r13d, %r9d
	movl	%eax, %ebx
	callq	_DP_NOTICE
	movl	%ebx, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAE_MAX_RW_SIZE,4,2           ## @DMAE_MAX_RW_SIZE
	.comm	_NETIF_MSG_HW,4,2               ## @NETIF_MSG_HW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Recovery is in progress. Avoid DMAE transaction [{src: addr 0x%llx, type %d}, {dst: addr 0x%llx, type %d}, size %d].\n"

	.comm	_QED_DMAE_ADDRESS_GRC,4,2       ## @QED_DMAE_ADDRESS_GRC
	.comm	_DMAE_COMPLETION_VAL,4,2        ## @DMAE_COMPLETION_VAL
	.comm	_RW_REPL_SRC,4,2                ## @RW_REPL_SRC
L_.str.1:                               ## @.str.1
	.asciz	"qed_dmae_execute_sub_operation Failed with error 0x%x. source_addr 0x%llx, destination addr 0x%llx, size_in_dwords 0x%x\n"

	.no_dead_strip	_qed_dmae_execute_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_dmae_execute_command
_qed_dmae_execute_command:              ; @qed_dmae_execute_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x6
	mov	x23, x5
	mov	x24, x4
	mov	x21, x3
	mov	x22, x2
	mov	x28, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _NETIF_MSG_HW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_MSG_HW@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x28
	mov	x3, x22
	mov	x4, x24
	mov	x5, x21
	mov	x6, x23
	mov	x7, x26
	bl	_DP_VERBOSE
LBB0_2:
	mov	w28, #0
LBB0_3:
	mov	x0, x28
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_4:
	str	x1, [sp, #40]                   ; 8-byte Folded Spill
Lloh5:
	adrp	x8, _DMAE_MAX_RW_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMAE_MAX_RW_SIZE@GOTPAGEOFF]
Lloh7:
	ldrsw	x20, [x8]
	ldr	x19, [x28, #8]
Lloh8:
	adrp	x8, _QED_DMAE_ADDRESS_GRC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QED_DMAE_ADDRESS_GRC@GOTPAGEOFF]
	ldr	w27, [x28, #16]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w24
	cset	w1, eq
	cmp	w8, w23
	cset	w2, eq
	mov	x0, x28
	str	x7, [sp, #56]                   ; 8-byte Folded Spill
	mov	x3, x7
	bl	_qed_dmae_opcode
	mov	x0, x27
	bl	_lower_32_bits
	bl	_cpu_to_le32
	str	x0, [x19, #16]
	mov	x0, x27
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	x0, [x19, #8]
Lloh11:
	adrp	x8, _DMAE_COMPLETION_VAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMAE_COMPLETION_VAL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x19]
	sdiv	w25, w26, w20
	tbnz	w25, #31, LBB0_2
; %bb.5:
	stp	x28, x21, [sp, #24]             ; 16-byte Folded Spill
	str	w24, [sp, #48]                  ; 4-byte Folded Spill
	str	w23, [sp, #20]                  ; 4-byte Folded Spill
	mov	w19, #0
	mov	w24, #0
	msub	w8, w25, w20, w26
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	add	w23, w25, #1
	lsl	w21, w20, #2
	mov	x26, x22
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	x25, x25, #1
	add	w24, w24, w20
	add	w19, w19, w21
	add	x26, x26, x20
	subs	x23, x23, #1
	b.eq	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
Lloh14:
	adrp	x8, _RW_REPL_SRC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RW_REPL_SRC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_QED_DMAE_FLAGS_IS_SET
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh17:
	adrp	x8, _QED_DMAE_ADDRESS_GRC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _QED_DMAE_ADDRESS_GRC@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	mov	x22, x26
	ldr	w9, [sp, #48]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x22, x8, w19, sxtw
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x25, #0
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	csel	w27, w8, w20, eq
	cbz	w27, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh20:
	adrp	x8, _QED_DMAE_ADDRESS_GRC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _QED_DMAE_ADDRESS_GRC@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w5, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w8, w5
	csel	w8, w24, w19, eq
	ldp	x0, x9, [sp, #24]               ; 16-byte Folded Reload
	add	x3, x9, w8, sxtw
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, x22
	ldr	w4, [sp, #48]                   ; 4-byte Folded Reload
	mov	x6, x27
	bl	_qed_dmae_execute_sub_operation
	cbz	w0, LBB0_6
; %bb.12:
	mov	x28, x0
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x0, x4, [sp, #24]               ; 16-byte Folded Reload
	mov	x2, x28
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	mov	x5, x27
	bl	_DP_NOTICE
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAE_MAX_RW_SIZE,4,2           ; @DMAE_MAX_RW_SIZE
	.comm	_NETIF_MSG_HW,4,2               ; @NETIF_MSG_HW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Recovery is in progress. Avoid DMAE transaction [{src: addr 0x%llx, type %d}, {dst: addr 0x%llx, type %d}, size %d].\n"

	.comm	_QED_DMAE_ADDRESS_GRC,4,2       ; @QED_DMAE_ADDRESS_GRC
	.comm	_DMAE_COMPLETION_VAL,4,2        ; @DMAE_COMPLETION_VAL
	.comm	_RW_REPL_SRC,4,2                ; @RW_REPL_SRC
l_.str.1:                               ; @.str.1
	.asciz	"qed_dmae_execute_sub_operation Failed with error 0x%x. source_addr 0x%llx, destination addr 0x%llx, size_in_dwords 0x%x\n"

	.no_dead_strip	_qed_dmae_execute_command
.subsections_via_symbols
