	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_dmae_post_command
_qed_dmae_post_command:                 ## @qed_dmae_post_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	8(%rdi), %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	cmpl	$0, 4(%rbx)
	je	LBB0_4
LBB0_2:
	cmpl	$0, 8(%rbx)
	jne	LBB0_5
## %bb.3:
	cmpl	$0, 12(%rbx)
	je	LBB0_4
LBB0_5:
	movq	_NETIF_MSG_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	24(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	movl	20(%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %edi
	callq	_le16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	-76(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r14
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_DP_VERBOSE
	addq	$48, %rsp
	movq	_DMAE_CMD_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%r14d, %r14d
	movq	_DMAE_CMD_SIZE_TO_FILL@GOTPCREL(%rip), %r13
	movq	_DMAE_REG_CMD_MEM@GOTPCREL(%rip), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movslq	%eax, %rdx
	addq	%r14, %rdx
	shlq	$2, %rdx
	addq	(%r15), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_qed_wr
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r13), %rdx
	movl	$0, %ecx
	cmpq	%rdx, %r14
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r14,4), %ecx
	jmp	LBB0_9
LBB0_10:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_qed_dmae_idx_to_go_cmd
	movq	_DMAE_GO_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_qed_wr
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_4:
	movl	24(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movl	20(%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movl	16(%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	12(%rbx), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movl	4(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	movl	-64(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r14
	pushq	%r12
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_DP_NOTICE
	addq	$32, %rsp
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"source or destination address 0 idx_cmd=%d\nopcode = [0x%08x,0x%04x] len=0x%x src=0x%x:%x dst=0x%x:%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NETIF_MSG_HW,4,2               ## @NETIF_MSG_HW
L_.str.1:                               ## @.str.1
	.asciz	"Posting DMAE command [idx %d]: opcode = [0x%08x,0x%04x] len=0x%x src=0x%x:%x dst=0x%x:%x\n"

	.comm	_DMAE_CMD_SIZE,4,2              ## @DMAE_CMD_SIZE
	.comm	_DMAE_CMD_SIZE_TO_FILL,4,2      ## @DMAE_CMD_SIZE_TO_FILL
	.comm	_DMAE_REG_CMD_MEM,8,3           ## @DMAE_REG_CMD_MEM
	.comm	_DMAE_GO_VALUE,4,2              ## @DMAE_GO_VALUE
	.no_dead_strip	_qed_dmae_post_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_post_command
_qed_dmae_post_command:                 ; @qed_dmae_post_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	w20, [x0]
	ldr	w8, [x22]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_11
LBB0_2:
	ldr	w8, [x22, #8]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w8, [x22, #12]
	cbz	w8, LBB0_11
LBB0_4:
Lloh0:
	adrp	x8, _NETIF_MSG_HW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_MSG_HW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w0, [x22, #24]
	bl	_le32_to_cpu
	mov	x23, x0
	ldr	w0, [x22, #20]
	bl	_le16_to_cpu
	mov	x24, x0
	ldr	w0, [x22, #16]
	bl	_le16_to_cpu
	mov	x25, x0
	ldr	w0, [x22, #12]
	bl	_le32_to_cpu
	mov	x26, x0
	ldr	w0, [x22, #8]
	bl	_le32_to_cpu
	mov	x27, x0
	ldr	w0, [x22, #4]
	bl	_le32_to_cpu
	mov	x28, x0
	ldr	w0, [x22]
	bl	_le32_to_cpu
	stp	w28, w0, [sp, #4]
	str	w27, [sp]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x3, x20
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	mov	x7, x26
	bl	_DP_VERBOSE
Lloh5:
	adrp	x23, _DMAE_CMD_SIZE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DMAE_CMD_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x24, #0
Lloh7:
	adrp	x25, _DMAE_CMD_SIZE_TO_FILL@GOTPAGE
Lloh8:
	ldr	x25, [x25, _DMAE_CMD_SIZE_TO_FILL@GOTPAGEOFF]
Lloh9:
	adrp	x26, _DMAE_REG_CMD_MEM@GOTPAGE
Lloh10:
	ldr	x26, [x26, _DMAE_REG_CMD_MEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w3, [x22, x24, lsl #2]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x26]
	mul	w8, w8, w20
	add	x8, x24, w8, sxtw
	add	x2, x9, x8, lsl #2
	mov	x0, x19
	mov	x1, x21
	bl	_qed_wr
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x9, [x25]
	cmp	x24, x9
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w3, #0
	b	LBB0_7
LBB0_10:
	mov	x0, x20
	bl	_qed_dmae_idx_to_go_cmd
	mov	x2, x0
Lloh11:
	adrp	x8, _DMAE_GO_VALUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMAE_GO_VALUE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_qed_wr
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	ldr	w0, [x22, #24]
	bl	_le32_to_cpu
	mov	x21, x0
	ldr	w0, [x22, #20]
	bl	_le16_to_cpu
	mov	x27, x0
	ldr	w0, [x22, #16]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	w0, [x22, #12]
	bl	_le32_to_cpu
	mov	x24, x0
	ldr	w0, [x22, #8]
	bl	_le32_to_cpu
	mov	x25, x0
	ldr	w0, [x22, #4]
	bl	_le32_to_cpu
	mov	x26, x0
	ldr	w0, [x22]
	bl	_le32_to_cpu
	stp	w26, w0, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x27
	mov	x5, x23
	mov	x6, x24
	mov	x7, x25
	bl	_DP_NOTICE
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"source or destination address 0 idx_cmd=%d\nopcode = [0x%08x,0x%04x] len=0x%x src=0x%x:%x dst=0x%x:%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NETIF_MSG_HW,4,2               ; @NETIF_MSG_HW
l_.str.1:                               ; @.str.1
	.asciz	"Posting DMAE command [idx %d]: opcode = [0x%08x,0x%04x] len=0x%x src=0x%x:%x dst=0x%x:%x\n"

	.comm	_DMAE_CMD_SIZE,4,2              ; @DMAE_CMD_SIZE
	.comm	_DMAE_CMD_SIZE_TO_FILL,4,2      ; @DMAE_CMD_SIZE_TO_FILL
	.comm	_DMAE_REG_CMD_MEM,8,3           ; @DMAE_REG_CMD_MEM
	.comm	_DMAE_GO_VALUE,4,2              ; @DMAE_GO_VALUE
	.no_dead_strip	_qed_dmae_post_command
.subsections_via_symbols
