	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ksz_port_mdb_add               ## -- Begin function ksz_port_mdb_add
	.p2align	4, 0x90
_ksz_port_mdb_add:                      ## @ksz_port_mdb_add
	.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
	movq	%rdx, %r14
	movq	(%rdi), %r12
	movl	$0, -56(%rbp)
	movl	(%r12), %eax
	testl	%eax, %eax
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	leaq	-72(%rbp), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %eax
	testl	%r15d, %r15d
	cmovel	%eax, %r15d
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	*8(%rax)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %edi
	movl	8(%r14), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax
	cmpq	(%r14), %rax
	jne	LBB0_8
## %bb.6:
	movl	(%r12), %eax
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
LBB0_9:
	cmpl	%eax, %ebx
	jne	LBB0_11
## %bb.10:
	testl	%r15d, %r15d
	je	LBB0_16
LBB0_11:
	cmpl	%eax, %ebx
	jne	LBB0_13
## %bb.12:
	decl	%r15d
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	-52(%rbp), %edi
	movl	8(%r14), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	$1, -64(%rbp)
	movl	%r15d, %ebx
LBB0_13:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_BIT
	orl	%eax, -56(%rbp)
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	$1, -60(%rbp)
	movq	%rax, -72(%rbp)
LBB0_15:
	movq	8(%r12), %rax
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	*(%rax)
LBB0_16:
	addq	$40, %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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ksz_port_mdb_add               ; -- Begin function ksz_port_mdb_add
	.p2align	2
_ksz_port_mdb_add:                      ; @ksz_port_mdb_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x2
	mov	x22, x1
	ldr	x19, [x0]
	str	wzr, [sp, #24]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w23, #0
	mov	w21, #0
Lloh0:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, #0
	csinc	w23, w23, w21, ne
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	blr	x8
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #28]
	ldr	w1, [x20, #8]
	ldr	w2, [x24]
	bl	_memcmp
	cbnz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.7:
	ldr	w8, [x19]
	b	LBB0_9
LBB0_8:
	mov	w21, #0
	mov	w23, #0
LBB0_9:
	cmp	w21, w8
	ccmp	w23, #0, #0, eq
	b.eq	LBB0_15
; %bb.10:
	cmp	w21, w8
	b.ne	LBB0_12
; %bb.11:
	sub	w21, w23, #1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [sp, #28]
	ldr	w1, [x20, #8]
Lloh2:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_memcpy
	mov	w8, #1
	str	w8, [sp, #16]
LBB0_12:
	mov	x0, x22
	bl	_BIT
	ldr	w8, [sp, #24]
	orr	w8, w8, w0
	str	w8, [sp, #24]
	ldr	x8, [x20]
	cbz	x8, LBB0_14
; %bb.13:
	mov	w9, #1
	str	w9, [sp, #20]
	str	x8, [sp, #8]
LBB0_14:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	blr	x8
LBB0_15:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
.subsections_via_symbols
