	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_siena_sriov_memcpy
_efx_siena_sriov_memcpy:                ## @efx_siena_sriov_memcpy
	.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	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_inbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MCDI_CTL_SDU_LEN_MAX_V1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_MCDI_DECLARE_BUF
	movq	_record@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MCDI_DECLARE_STRUCT_PTR
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_mb
	movq	_MC_CMD_MEMCPY_IN_RECORD_MAXNUM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r12d, (%rax)
	setb	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_MC_CMD_MEMCPY_IN_LEN
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.4:
	movl	%r12d, %ebx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addq	$24, %r15
	xorl	%r12d, %r12d
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_record@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-16(%r15), %edx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	-12(%r15), %ebx
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_record@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_MEMCPY_RECORD_TYPEDEF_FROM_RID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MCDI_SET_DWORD
	movl	(%r13), %edi
	movq	_MEMCPY_RECORD_TYPEDEF_FROM_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_MCDI_SET_QWORD
	movl	(%r13), %edi
	movq	_MEMCPY_RECORD_TYPEDEF_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-8(%r15), %edx
	callq	_MCDI_SET_DWORD
	incl	%r12d
	addq	$32, %r15
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%r12d, %ebx
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_inbuf@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_MEMCPY_IN_RECORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_MCDI_ARRAY_STRUCT_PTR
	movl	%eax, (%r13)
	movq	_MEMCPY_RECORD_TYPEDEF_NUM_RECORDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	_MCDI_SET_DWORD
	movl	(%r13), %edi
	movq	_MEMCPY_RECORD_TYPEDEF_TO_RID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-24(%r15), %edx
	callq	_MCDI_SET_DWORD
	movl	(%r13), %edi
	movq	_MEMCPY_RECORD_TYPEDEF_TO_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-20(%r15), %edx
	callq	_MCDI_SET_QWORD
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %eax
	addq	-8(%r15), %rax
	xorl	%edi, %edi
	movq	_MCDI_CTL_SDU_LEN_MAX_V1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_MC_CMD_MEMCPY_RECORD_TYPEDEF_RID_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	__MCDI_PTR
	movq	-8(%r15), %rdx
	movq	(%r15), %rsi
	movl	%eax, %edi
	callq	_memcpy
	movl	%r13d, %edx
	movl	-8(%r15), %r14d
	addl	%ebx, %r14d
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %r14d
LBB0_11:
	movq	_MC_CMD_MEMCPY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_inbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	$0, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_efx_mcdi_rpc
	movl	%eax, %r14d
	jmp	LBB0_12
LBB0_8:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_12:
	xorl	%eax, %eax
	callq	_mb
LBB0_13:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inbuf,4,2                      ## @inbuf
	.comm	_MCDI_CTL_SDU_LEN_MAX_V1,8,3    ## @MCDI_CTL_SDU_LEN_MAX_V1
	.comm	_record,4,2                     ## @record
	.comm	_MC_CMD_MEMCPY_IN_RECORD_MAXNUM,4,2 ## @MC_CMD_MEMCPY_IN_RECORD_MAXNUM
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_MEMCPY_IN_RECORD,4,2           ## @MEMCPY_IN_RECORD
	.comm	_MEMCPY_RECORD_TYPEDEF_NUM_RECORDS,4,2 ## @MEMCPY_RECORD_TYPEDEF_NUM_RECORDS
	.comm	_MEMCPY_RECORD_TYPEDEF_TO_RID,4,2 ## @MEMCPY_RECORD_TYPEDEF_TO_RID
	.comm	_MEMCPY_RECORD_TYPEDEF_TO_ADDR,4,2 ## @MEMCPY_RECORD_TYPEDEF_TO_ADDR
	.comm	_MC_CMD_MEMCPY_RECORD_TYPEDEF_RID_INLINE,4,2 ## @MC_CMD_MEMCPY_RECORD_TYPEDEF_RID_INLINE
	.comm	_MEMCPY_RECORD_TYPEDEF_FROM_RID,4,2 ## @MEMCPY_RECORD_TYPEDEF_FROM_RID
	.comm	_MEMCPY_RECORD_TYPEDEF_FROM_ADDR,4,2 ## @MEMCPY_RECORD_TYPEDEF_FROM_ADDR
	.comm	_MEMCPY_RECORD_TYPEDEF_LENGTH,4,2 ## @MEMCPY_RECORD_TYPEDEF_LENGTH
	.comm	_MC_CMD_MEMCPY,4,2              ## @MC_CMD_MEMCPY
	.no_dead_strip	_efx_siena_sriov_memcpy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_siena_sriov_memcpy
_efx_siena_sriov_memcpy:                ; @efx_siena_sriov_memcpy
	.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	x20, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _inbuf@GOTPAGE
Lloh1:
	ldr	x25, [x25, _inbuf@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x8, _MCDI_CTL_SDU_LEN_MAX_V1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MCDI_CTL_SDU_LEN_MAX_V1@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	bl	_MCDI_DECLARE_BUF
Lloh5:
	adrp	x27, _record@GOTPAGE
Lloh6:
	ldr	x27, [x27, _record@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_MCDI_DECLARE_STRUCT_PTR
	bl	_mb
Lloh7:
	adrp	x8, _MC_CMD_MEMCPY_IN_RECORD_MAXNUM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MC_CMD_MEMCPY_IN_RECORD_MAXNUM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w0, lo
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_13
LBB0_2:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x20
	bl	_MC_CMD_MEMCPY_IN_LEN
	mov	x22, x0
	cbz	w20, LBB0_9
; %bb.3:
	mov	w21, #0
	add	x28, x23, #24
Lloh13:
	adrp	x26, _MEMCPY_RECORD_TYPEDEF_TO_ADDR@GOTPAGE
Lloh14:
	ldr	x26, [x26, _MEMCPY_RECORD_TYPEDEF_TO_ADDR@GOTPAGEOFF]
Lloh15:
	adrp	x19, _MEMCPY_RECORD_TYPEDEF_LENGTH@GOTPAGE
Lloh16:
	ldr	x19, [x19, _MEMCPY_RECORD_TYPEDEF_LENGTH@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x22
	ldp	w24, w22, [x28, #-16]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x27]
Lloh17:
	adrp	x8, _MEMCPY_RECORD_TYPEDEF_FROM_RID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MEMCPY_RECORD_TYPEDEF_FROM_RID@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x2, x24
	bl	_MCDI_SET_DWORD
	ldr	w0, [x27]
Lloh20:
	adrp	x8, _MEMCPY_RECORD_TYPEDEF_FROM_ADDR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MEMCPY_RECORD_TYPEDEF_FROM_ADDR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_MCDI_SET_QWORD
	ldr	w0, [x27]
	ldr	w1, [x19]
	ldur	w2, [x28, #-8]
	bl	_MCDI_SET_DWORD
	add	w21, w21, #1
	add	x28, x28, #32
	mov	x22, x23
	cmp	w20, w21
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
Lloh23:
	adrp	x8, _MEMCPY_IN_RECORD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MEMCPY_IN_RECORD@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_MCDI_ARRAY_STRUCT_PTR
	str	w0, [x27]
Lloh26:
	adrp	x8, _MEMCPY_RECORD_TYPEDEF_NUM_RECORDS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MEMCPY_RECORD_TYPEDEF_NUM_RECORDS@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_MCDI_SET_DWORD
	ldr	w0, [x27]
Lloh29:
	adrp	x8, _MEMCPY_RECORD_TYPEDEF_TO_RID@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MEMCPY_RECORD_TYPEDEF_TO_RID@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldur	w2, [x28, #-24]
	bl	_MCDI_SET_DWORD
	ldr	w0, [x27]
	ldr	w1, [x26]
	ldur	w2, [x28, #-20]
	bl	_MCDI_SET_QWORD
	ldr	x8, [x28]
	cbz	x8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	x8, [x28, #-8]
	add	x8, x8, w22, uxtw
Lloh32:
	adrp	x9, _MCDI_CTL_SDU_LEN_MAX_V1@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MCDI_CTL_SDU_LEN_MAX_V1@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, gt
	bl	_WARN_ON
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh35:
	adrp	x8, _MC_CMD_MEMCPY_RECORD_TYPEDEF_RID_INLINE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MC_CMD_MEMCPY_RECORD_TYPEDEF_RID_INLINE@GOTPAGEOFF]
Lloh37:
	ldr	w24, [x8]
	ldr	w0, [x25]
	mov	x1, x22
	bl	__MCDI_PTR
	ldp	x2, x1, [x28, #-8]
	bl	_memcpy
	ldur	w8, [x28, #-8]
	add	w23, w22, w8
	b	LBB0_5
LBB0_9:
	mov	x23, x22
LBB0_10:
Lloh38:
	adrp	x8, _MC_CMD_MEMCPY@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MC_CMD_MEMCPY@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	ldr	w2, [x25]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x23
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_efx_mcdi_rpc
	mov	x19, x0
	b	LBB0_12
LBB0_11:
Lloh41:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_12:
	bl	_mb
LBB0_13:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_inbuf,4,2                      ; @inbuf
	.comm	_MCDI_CTL_SDU_LEN_MAX_V1,8,3    ; @MCDI_CTL_SDU_LEN_MAX_V1
	.comm	_record,4,2                     ; @record
	.comm	_MC_CMD_MEMCPY_IN_RECORD_MAXNUM,4,2 ; @MC_CMD_MEMCPY_IN_RECORD_MAXNUM
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_MEMCPY_IN_RECORD,4,2           ; @MEMCPY_IN_RECORD
	.comm	_MEMCPY_RECORD_TYPEDEF_NUM_RECORDS,4,2 ; @MEMCPY_RECORD_TYPEDEF_NUM_RECORDS
	.comm	_MEMCPY_RECORD_TYPEDEF_TO_RID,4,2 ; @MEMCPY_RECORD_TYPEDEF_TO_RID
	.comm	_MEMCPY_RECORD_TYPEDEF_TO_ADDR,4,2 ; @MEMCPY_RECORD_TYPEDEF_TO_ADDR
	.comm	_MC_CMD_MEMCPY_RECORD_TYPEDEF_RID_INLINE,4,2 ; @MC_CMD_MEMCPY_RECORD_TYPEDEF_RID_INLINE
	.comm	_MEMCPY_RECORD_TYPEDEF_FROM_RID,4,2 ; @MEMCPY_RECORD_TYPEDEF_FROM_RID
	.comm	_MEMCPY_RECORD_TYPEDEF_FROM_ADDR,4,2 ; @MEMCPY_RECORD_TYPEDEF_FROM_ADDR
	.comm	_MEMCPY_RECORD_TYPEDEF_LENGTH,4,2 ; @MEMCPY_RECORD_TYPEDEF_LENGTH
	.comm	_MC_CMD_MEMCPY,4,2              ; @MC_CMD_MEMCPY
	.no_dead_strip	_efx_siena_sriov_memcpy
.subsections_via_symbols
