	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofdpa_port_router_mac
_ofdpa_port_router_mac:                 ## @ofdpa_port_router_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	%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	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_ff_mac@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_htons
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_ntohs
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	12(%rbx), %r13d
LBB0_2:
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	8(%rbx), %esi
	movq	(%rbx), %rcx
	movl	(%rcx), %r8d
	movq	%rbx, %rdi
	movl	$-1, %edx
	movl	%eax, %ecx
	movq	%r15, %r9
	pushq	%r14
	pushq	$0
	pushq	%r12
	pushq	%r13
	callq	_ofdpa_flow_tbl_term_mac
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	addq	$8, %rsp
	jmp	LBB0_5
LBB0_3:
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	8(%rbx), %esi
	movq	(%rbx), %rcx
	movl	(%rcx), %r8d
	movq	%rbx, %rdi
	movl	$-1, %edx
	movl	%eax, %ecx
	movq	%r15, %r9
	pushq	%r14
	pushq	$0
	pushq	%r12
	pushq	%r13
	callq	_ofdpa_flow_tbl_term_mac
	addq	$40, %rsp
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_mac,8,3                     ## @ff_mac
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.no_dead_strip	_ofdpa_port_router_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofdpa_port_router_mac
_ofdpa_port_router_mac:                 ; @ofdpa_port_router_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ff_mac@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_mac@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	mov	w0, #65535
	bl	_htons
	mov	x22, x0
	mov	x0, x19
	bl	_ntohs
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w19, [x21, #12]
LBB0_2:
Lloh3:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	mov	x3, x0
	ldr	w1, [x21, #8]
	ldr	x8, [x21]
	ldr	w4, [x8]
	stp	wzr, w23, [sp]
	mov	x0, x21
	mov	w2, #-1
	mov	x5, x20
	mov	x6, x19
	mov	x7, x22
	bl	_ofdpa_flow_tbl_term_mac
	cbnz	w0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htons
	mov	x3, x0
	ldr	w1, [x21, #8]
	ldr	x8, [x21]
	ldr	w4, [x8]
	stp	wzr, w23, [sp]
	mov	x0, x21
	mov	w2, #-1
	mov	x5, x20
	mov	x6, x19
	mov	x7, x22
	bl	_ofdpa_flow_tbl_term_mac
LBB0_4:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_mac,8,3                     ; @ff_mac
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.no_dead_strip	_ofdpa_port_router_mac
.subsections_via_symbols
