	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_sriov_memcpy
_efx_sriov_memcpy:                      ## @efx_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, %r15d
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_mb
	movl	%r15d, %edi
	callq	_MC_CMD_MEMCPY_IN_LEN
	movl	%eax, %r13d
	movq	_MCDI_CTL_SDU_LEN_MAX@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpl	(%r12), %eax
	seta	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_2:
	movl	(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	_MEMCPY_IN_RECORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_MCDI_SET_DWORD
	testl	%r15d, %r15d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	addq	$24, %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	-16(%rbx), %edx
	movl	%r13d, %r14d
	movl	-12(%rbx), %r13d
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	decl	%r15d
	movq	_MEMCPY_RECORD_TYPEDEF_FROM_RID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_MCDI_SET_DWORD
	movq	_MEMCPY_RECORD_TYPEDEF_FROM_ADDR_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_MCDI_SET_DWORD
	movq	_MEMCPY_RECORD_TYPEDEF_FROM_ADDR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_MCDI_SET_DWORD
	movq	_MEMCPY_RECORD_TYPEDEF_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-8(%rbx), %edx
	movq	%r12, %rdi
	callq	_MCDI_SET_DWORD
	movq	_MC_CMD_MEMCPY_IN_RECORD_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r12,%rax,4), %r12
	addq	$32, %rbx
	movl	%r14d, %r13d
	testl	%r15d, %r15d
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MEMCPY_RECORD_TYPEDEF_TO_RID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-24(%rbx), %edx
	movq	%r12, %rdi
	callq	_MCDI_SET_DWORD
	movq	_MEMCPY_RECORD_TYPEDEF_TO_ADDR_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-20(%rbx), %edx
	movq	%r12, %rdi
	callq	_MCDI_SET_DWORD
	movq	_MEMCPY_RECORD_TYPEDEF_TO_ADDR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_MCDI_SET_DWORD
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-8(%rbx), %eax
	addl	%r13d, %eax
	xorl	%edi, %edi
	movq	_MCDI_CTL_SDU_LEN_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	seta	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_MC_CMD_MEMCPY_RECORD_TYPEDEF_RID_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movq	(%rbx), %rsi
	movl	-8(%rbx), %edx
	callq	_memcpy
	movl	%r14d, %edx
	movl	-8(%rbx), %r14d
	addl	%r13d, %r14d
	jmp	LBB0_12
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_5:
	movl	%r13d, %r14d
LBB0_13:
	movq	_MC_CMD_MEMCPY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	$0, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_efx_mcdi_rpc
	movl	%eax, %r14d
	jmp	LBB0_14
LBB0_10:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	callq	_mb
LBB0_15:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCDI_CTL_SDU_LEN_MAX,4,2       ## @MCDI_CTL_SDU_LEN_MAX
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MEMCPY_IN_RECORD,4,2           ## @MEMCPY_IN_RECORD
	.comm	_MEMCPY_RECORD_TYPEDEF_TO_RID,4,2 ## @MEMCPY_RECORD_TYPEDEF_TO_RID
	.comm	_MEMCPY_RECORD_TYPEDEF_TO_ADDR_LO,4,2 ## @MEMCPY_RECORD_TYPEDEF_TO_ADDR_LO
	.comm	_MEMCPY_RECORD_TYPEDEF_TO_ADDR_HI,4,2 ## @MEMCPY_RECORD_TYPEDEF_TO_ADDR_HI
	.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_LO,4,2 ## @MEMCPY_RECORD_TYPEDEF_FROM_ADDR_LO
	.comm	_MEMCPY_RECORD_TYPEDEF_FROM_ADDR_HI,4,2 ## @MEMCPY_RECORD_TYPEDEF_FROM_ADDR_HI
	.comm	_MEMCPY_RECORD_TYPEDEF_LENGTH,4,2 ## @MEMCPY_RECORD_TYPEDEF_LENGTH
	.comm	_MC_CMD_MEMCPY_IN_RECORD_LEN,4,2 ## @MC_CMD_MEMCPY_IN_RECORD_LEN
	.comm	_MC_CMD_MEMCPY,4,2              ## @MC_CMD_MEMCPY
	.no_dead_strip	_efx_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_sriov_memcpy
_efx_sriov_memcpy:                      ; @efx_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	x21, x2
	mov	x23, x1
	mov	x19, x0
	bl	_mb
	mov	x0, x21
	bl	_MC_CMD_MEMCPY_IN_LEN
	mov	x22, x0
Lloh0:
	adrp	x26, _MCDI_CTL_SDU_LEN_MAX@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MCDI_CTL_SDU_LEN_MAX@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w0, w8
	cset	w0, hi
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_16
LBB0_3:
	ldr	w0, [x26]
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x20, x0
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
Lloh7:
	adrp	x8, _MEMCPY_IN_RECORD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MEMCPY_IN_RECORD@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_MCDI_SET_DWORD
	cbz	w21, LBB0_12
; %bb.5:
Lloh10:
	adrp	x27, _MEMCPY_RECORD_TYPEDEF_LENGTH@GOTPAGE
Lloh11:
	ldr	x27, [x27, _MEMCPY_RECORD_TYPEDEF_LENGTH@GOTPAGEOFF]
	add	x19, x23, #24
Lloh12:
	adrp	x28, _MC_CMD_MEMCPY_IN_RECORD_LEN@GOTPAGE
Lloh13:
	ldr	x28, [x28, _MC_CMD_MEMCPY_IN_RECORD_LEN@GOTPAGEOFF]
	mov	x23, x20
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, x22
	ldp	w25, w22, [x19, #-16]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	sub	w21, w21, #1
Lloh14:
	adrp	x8, _MEMCPY_RECORD_TYPEDEF_FROM_RID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MEMCPY_RECORD_TYPEDEF_FROM_RID@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x25
	bl	_MCDI_SET_DWORD
Lloh17:
	adrp	x8, _MEMCPY_RECORD_TYPEDEF_FROM_ADDR_LO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MEMCPY_RECORD_TYPEDEF_FROM_ADDR_LO@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x22
	bl	_MCDI_SET_DWORD
Lloh20:
	adrp	x8, _MEMCPY_RECORD_TYPEDEF_FROM_ADDR_HI@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MEMCPY_RECORD_TYPEDEF_FROM_ADDR_HI@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #0
	bl	_MCDI_SET_DWORD
	ldr	w1, [x27]
	ldur	w2, [x19, #-8]
	mov	x0, x23
	bl	_MCDI_SET_DWORD
	ldrsw	x8, [x28]
	add	x23, x23, x8, lsl #2
	add	x19, x19, #32
	mov	x22, x24
	cbz	w21, LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
Lloh23:
	adrp	x8, _MEMCPY_RECORD_TYPEDEF_TO_RID@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MEMCPY_RECORD_TYPEDEF_TO_RID@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldur	w2, [x19, #-24]
	mov	x0, x23
	bl	_MCDI_SET_DWORD
Lloh26:
	adrp	x8, _MEMCPY_RECORD_TYPEDEF_TO_ADDR_LO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MEMCPY_RECORD_TYPEDEF_TO_ADDR_LO@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldur	w2, [x19, #-20]
	mov	x0, x23
	bl	_MCDI_SET_DWORD
Lloh29:
	adrp	x8, _MEMCPY_RECORD_TYPEDEF_TO_ADDR_HI@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MEMCPY_RECORD_TYPEDEF_TO_ADDR_HI@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_MCDI_SET_DWORD
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w8, [x19, #-8]
	ldr	w9, [x26]
	add	w8, w8, w22
	cmp	w8, w9
	cset	w0, hi
	bl	_WARN_ON
	cbnz	x0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh32:
	adrp	x8, _MC_CMD_MEMCPY_RECORD_TYPEDEF_RID_INLINE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MC_CMD_MEMCPY_RECORD_TYPEDEF_RID_INLINE@GOTPAGEOFF]
Lloh34:
	ldr	w25, [x8]
	add	x0, x20, w22, uxtw #2
	ldr	x1, [x19]
	ldur	w2, [x19, #-8]
	bl	_memcpy
	ldur	w8, [x19, #-8]
	add	w24, w8, w22
	b	LBB0_7
LBB0_11:
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
	mov	x24, x22
LBB0_13:
Lloh37:
	adrp	x8, _MC_CMD_MEMCPY@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MC_CMD_MEMCPY@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x20
	mov	x3, x24
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_efx_mcdi_rpc
	mov	x19, x0
	b	LBB0_15
LBB0_14:
Lloh40:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_15:
	mov	x0, x20
	bl	_kfree
	bl	_mb
LBB0_16:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_MCDI_CTL_SDU_LEN_MAX,4,2       ; @MCDI_CTL_SDU_LEN_MAX
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MEMCPY_IN_RECORD,4,2           ; @MEMCPY_IN_RECORD
	.comm	_MEMCPY_RECORD_TYPEDEF_TO_RID,4,2 ; @MEMCPY_RECORD_TYPEDEF_TO_RID
	.comm	_MEMCPY_RECORD_TYPEDEF_TO_ADDR_LO,4,2 ; @MEMCPY_RECORD_TYPEDEF_TO_ADDR_LO
	.comm	_MEMCPY_RECORD_TYPEDEF_TO_ADDR_HI,4,2 ; @MEMCPY_RECORD_TYPEDEF_TO_ADDR_HI
	.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_LO,4,2 ; @MEMCPY_RECORD_TYPEDEF_FROM_ADDR_LO
	.comm	_MEMCPY_RECORD_TYPEDEF_FROM_ADDR_HI,4,2 ; @MEMCPY_RECORD_TYPEDEF_FROM_ADDR_HI
	.comm	_MEMCPY_RECORD_TYPEDEF_LENGTH,4,2 ; @MEMCPY_RECORD_TYPEDEF_LENGTH
	.comm	_MC_CMD_MEMCPY_IN_RECORD_LEN,4,2 ; @MC_CMD_MEMCPY_IN_RECORD_LEN
	.comm	_MC_CMD_MEMCPY,4,2              ; @MC_CMD_MEMCPY
	.no_dead_strip	_efx_sriov_memcpy
.subsections_via_symbols
