	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_copy_priv
_mlx4_en_copy_priv:                     ## @mlx4_en_copy_priv
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	addq	$64, %rdi
	leaq	20(%rdx), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	16(%rbx), %eax
	movl	%eax, 60(%r12)
	movsd	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	movsd	44(%r15), %xmm1                 ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, 44(%r12)
	movl	40(%r15), %eax
	movl	%eax, 40(%r12)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, 32(%r12)
	movq	_DS_SIZE@GOTPCREL(%rip), %rax
	movq	_MLX4_EN_MAX_RX_FRAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	imull	(%rax), %edi
	addl	$4, %edi
	callq	_roundup_pow_of_two
	movl	%eax, 24(%r12)
	movq	_MLX4_EN_NUM_TX_TYPES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.1:
	xorl	%r15d, %r15d
	movq	_MAX_TX_RINGS@GOTPCREL(%rip), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_MLX4_EN_NUM_TX_TYPES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$-8, %r15
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movl	(%r14), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	8(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movl	(%r14), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	jne	LBB0_10
## %bb.5:
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_kfree
LBB0_6:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.7:
	negq	%r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	-8(%rax,%r15), %rdi
	callq	_kfree
	movq	(%r12), %rax
	movq	-8(%rax,%r15), %rdi
	callq	_kfree
	addq	$-8, %r15
	jne	LBB0_8
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DS_SIZE,4,2                    ## @DS_SIZE
	.comm	_MLX4_EN_MAX_RX_FRAGS,4,2       ## @MLX4_EN_MAX_RX_FRAGS
	.comm	_MLX4_EN_NUM_TX_TYPES,4,2       ## @MLX4_EN_NUM_TX_TYPES
	.comm	_MAX_TX_RINGS,4,2               ## @MAX_TX_RINGS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mlx4_en_copy_priv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_copy_priv
_mlx4_en_copy_priv:                     ; @mlx4_en_copy_priv
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, x0, #64
	add	x1, x2, #20
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x20, #16]
	str	w8, [x19, #60]
	ldr	d0, [x20, #8]
	ldur	d1, [x21, #44]
	mov.d	v1[1], v0[0]
	stur	q1, [x19, #44]
	ldr	w8, [x21, #40]
	str	w8, [x19, #40]
	str	x20, [x19, #32]
Lloh0:
	adrp	x8, _DS_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DS_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MLX4_EN_MAX_RX_FRAGS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX4_EN_MAX_RX_FRAGS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w10, wzr, #0x4
	madd	w0, w9, w8, w10
	bl	_roundup_pow_of_two
	str	w0, [x19, #24]
Lloh6:
	adrp	x23, _MLX4_EN_NUM_TX_TYPES@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MLX4_EN_NUM_TX_TYPES@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x22, #0
	mov	w21, #8
Lloh8:
	adrp	x24, _MAX_TX_RINGS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MAX_TX_RINGS@GOTPAGEOFF]
Lloh10:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x23]
	sub	x21, x21, #8
	cmp	x22, x8
	b.ge	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	lsl	x9, x22, #2
	ldr	w8, [x8, x9]
	ldr	x10, [x19, #16]
	str	w8, [x10, x9]
	cbz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	ldr	w2, [x25]
	mov	w1, #8
	bl	_kcalloc
	ldr	x8, [x19, #8]
	lsl	x26, x22, #3
	str	x0, [x8, x26]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x26]
	cbz	x8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	ldr	w2, [x25]
	mov	w1, #8
	bl	_kcalloc
	ldr	x8, [x19]
	str	x0, [x8, x26]
	ldr	x8, [x19]
	ldr	x8, [x8, x26]
	cbnz	x8, LBB0_2
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x22, lsl #3]
	bl	_kfree
LBB0_7:
	cbz	w22, LBB0_10
; %bb.8:
	neg	x20, x21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20]
	bl	_kfree
	ldr	x8, [x19]
	ldr	x0, [x8, x20]
	bl	_kfree
	sub	x20, x20, #8
	cmn	x20, #8
	b.ne	LBB0_9
LBB0_10:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DS_SIZE,4,2                    ; @DS_SIZE
	.comm	_MLX4_EN_MAX_RX_FRAGS,4,2       ; @MLX4_EN_MAX_RX_FRAGS
	.comm	_MLX4_EN_NUM_TX_TYPES,4,2       ; @MLX4_EN_NUM_TX_TYPES
	.comm	_MAX_TX_RINGS,4,2               ; @MAX_TX_RINGS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlx4_en_copy_priv
.subsections_via_symbols
