	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tbnet_generate_mac
_tbnet_generate_mac:                    ## @tbnet_generate_mac
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	(%rax), %rbx
	movl	8(%rbx), %edi
	callq	_TBNET_L0_PORT_NUM
	movl	%eax, %edi
	callq	_tb_phy_port_from_link
	shll	$4, %eax
	orl	$2, %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	(%rbx), %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_jhash2
	movl	%eax, -20(%rbp)
	movq	(%r14), %rdi
	addq	$4, %rdi
	leaq	-20(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	(%rbx), %rdi
	movl	-20(%rbp), %edx
	movl	$4, %esi
	callq	_jhash2
	movzbl	%al, %eax
	movq	(%r14), %rcx
	movl	%eax, 20(%rcx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tbnet_generate_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tbnet_generate_mac
_tbnet_generate_mac:                    ; @tbnet_generate_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_netdev_priv
	ldr	x20, [x0]
	ldr	w0, [x20, #8]
	bl	_TBNET_L0_PORT_NUM
	bl	_tb_phy_port_from_link
	mov	w8, #2
	bfi	w8, w0, #4, #28
	ldr	x9, [x19]
	str	w8, [x9]
	ldr	x0, [x20]
	mov	w1, #4
	mov	w2, #0
	bl	_jhash2
	str	w0, [sp, #12]
	ldr	x8, [x19]
	add	x0, x8, #4
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
	ldr	x0, [x20]
	ldr	w2, [sp, #12]
	mov	w1, #4
	bl	_jhash2
	and	w8, w0, #0xff
	ldr	x9, [x19]
	str	w8, [x9, #20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tbnet_generate_mac
.subsections_via_symbols
