	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_macs
_copy_macs:                             ## @copy_macs
	.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
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rdi, %r14
	cmpl	$2, %ecx
	movl	$1, %r12d
	cmovgel	%ecx, %r12d
	movl	(%rdi), %eax
	cmpl	%r12d, %eax
	jne	LBB0_5
## %bb.1:
	movq	8(%r14), %rdi
	jmp	LBB0_2
LBB0_5:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	8(%r14), %rdi
	callq	_kfree
LBB0_7:
	movl	$0, (%r14)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	%r12d, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, %rdi
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_8
LBB0_2:
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_MPS_AND_MPC@GOTPCREL(%rip), %rax
	leaq	80(%rbx), %rcx
	addq	$160, %rbx
	cmpl	%r13d, (%rax)
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	cmovneq	%rcx, %rbx
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.3:
	movq	8(%r14), %rdi
	movl	(%r13), %edx
	imull	%r15d, %edx
	movq	%rbx, %rsi
	callq	_memcpy
LBB0_4:
	movslq	(%r13), %rax
	movslq	%r15d, %rcx
	imulq	%rax, %rcx
	leaq	(%rbx,%rcx,4), %rax
	movl	%r12d, (%r14)
	jmp	LBB0_9
LBB0_8:
	movq	16(%r14), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printk
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mpoa: (%s) copy_macs: out of mem\n"

	.comm	_MPS_AND_MPC,4,2                ## @MPS_AND_MPC
	.no_dead_strip	_copy_macs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_macs
_copy_macs:                             ; @copy_macs
	.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	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	cmp	w3, #1
	csinc	w24, w3, wzr, gt
	ldr	w8, [x0]
Lloh0:
	adrp	x25, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ETH_ALEN@GOTPAGEOFF]
	cmp	w8, w24
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	b	LBB0_5
LBB0_2:
	cbz	w8, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_4:
	str	wzr, [x19]
	ldr	w8, [x25]
	mul	w0, w8, w24
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kmalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
LBB0_5:
	ldr	w2, [x25]
	mov	x1, x23
	bl	_memcpy
Lloh5:
	adrp	x8, _MPS_AND_MPC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MPS_AND_MPC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w22
	mov	w8, #80
	mov	w9, #160
	csel	x8, x9, x8, eq
	add	x21, x21, x8
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.6:
	ldr	x0, [x19, #8]
	ldr	w8, [x25]
	mul	w2, w8, w20
	mov	x1, x21
	bl	_memcpy
LBB0_7:
	ldr	w8, [x25]
	mul	w8, w8, w20
	add	x0, x21, w8, sxtw #2
	str	w24, [x19]
	b	LBB0_9
LBB0_8:
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	mov	x0, #0
LBB0_9:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mpoa: (%s) copy_macs: out of mem\n"

	.comm	_MPS_AND_MPC,4,2                ; @MPS_AND_MPC
	.no_dead_strip	_copy_macs
.subsections_via_symbols
