	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_dmae_execute_sub_operation
_qed_dmae_execute_sub_operation:        ## @qed_dmae_execute_sub_operation
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movq	16(%rdi), %r12
	leal	-129(%r8), %eax
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r9, %r12
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%r13)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r13)
	jmp	LBB0_4
LBB0_1:
	cmpl	$128, %r8d
	jne	LBB0_6
## %bb.2:
	movq	%r12, %rdi
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%r13)
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r13)
	movq	(%r15), %rdi
	movl	16(%rbp), %eax
	leal	(,%rax,4), %edx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_memcpy
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_4:
	leal	-129(%r12), %eax
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	cmpl	$2, %eax
	jb	LBB0_7
## %bb.5:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpl	$128, %r12d
	jne	LBB0_6
LBB0_7:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r13)
	movq	%r14, %rdi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r13)
	movl	16(%rbp), %r14d
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movl	%eax, (%r13)
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_qed_dmae_post_command
	movq	%r15, %rdi
	callq	_qed_dmae_operation_wait
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, %r8d
	callq	_DP_NOTICE
	jmp	LBB0_11
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
	cmpl	$128, -48(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.10:
	movq	(%r15), %rsi
	shll	$2, %r14d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qed_dmae_host2grc: Wait Failed. source_addr 0x%llx, grc_addr 0x%llx, size_in_dwords 0x%x\n"

	.no_dead_strip	_qed_dmae_execute_sub_operation
.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_sub_operation
_qed_dmae_execute_sub_operation:        ; @qed_dmae_execute_sub_operation
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x6
	mov	x23, x5
	mov	x20, x3
	mov	x22, x2
	mov	x24, x1
	mov	x21, x0
	ldp	x27, x25, [x0, #8]
	sub	w8, w4, #129
	cmp	w8, #2
	b.hs	LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	x0, [x27, #32]
	mov	x0, x22
	bl	_lower_32_bits
	bl	_cpu_to_le32
	str	x0, [x27, #24]
	b	LBB0_4
LBB0_2:
	cmp	w4, #128
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x25
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	x0, [x27, #32]
	mov	x0, x25
	bl	_lower_32_bits
	bl	_cpu_to_le32
	str	x0, [x27, #24]
	ldr	x0, [x21]
	lsl	w2, w19, #2
	mov	x1, x22
	bl	_memcpy
LBB0_4:
	sub	w8, w23, #129
	mov	x26, x20
	cmp	w8, #2
	b.lo	LBB0_6
; %bb.5:
	mov	x26, x25
	cmp	w23, #128
	b.ne	LBB0_8
LBB0_6:
	mov	x0, x26
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	x0, [x27, #16]
	mov	x0, x26
	bl	_lower_32_bits
	bl	_cpu_to_le32
	str	x0, [x27, #8]
	mov	x0, x19
	bl	_cpu_to_le16
	str	w0, [x27]
	mov	x0, x21
	mov	x1, x24
	bl	_qed_dmae_post_command
	mov	x0, x21
	bl	_qed_dmae_operation_wait
	cbz	w0, LBB0_9
; %bb.7:
	mov	x24, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	bl	_DP_NOTICE
	b	LBB0_12
LBB0_8:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_12
LBB0_9:
	cmp	w23, #128
	b.ne	LBB0_11
; %bb.10:
	ldr	x1, [x21]
	lsl	w2, w19, #2
	mov	x0, x20
	bl	_memcpy
LBB0_11:
	mov	w24, #0
LBB0_12:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qed_dmae_host2grc: Wait Failed. source_addr 0x%llx, grc_addr 0x%llx, size_in_dwords 0x%x\n"

	.no_dead_strip	_qed_dmae_execute_sub_operation
.subsections_via_symbols
