	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bridge_enqueue
_bridge_enqueue:                        ## @bridge_enqueue
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r12
	jmp	LBB0_2
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_if_printf
	movq	_IFCOUNTER_OERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edx
	callq	_if_inc_counter
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r14, %r14
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rbx
	movq	16(%r14), %r14
	movq	$0, 16(%rbx)
	movl	4(%rbx), %r13d
	movswl	(%rbx), %r15d
	movq	_M_VLANTAG@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IFCAP_VLAN_HWTAGGING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ether_vlanencap
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	_M_VLANTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andw	%ax, (%rbx)
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_M_ASSERTPKTHDR
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	*8(%r12)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	movq	_IFCOUNTER_OPACKETS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_if_inc_counter
	movq	(%rbx), %rdi
	movq	_IFCOUNTER_OBYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	callq	_if_inc_counter
	movq	_M_MCAST@GOTPCREL(%rip), %rax
	testw	%r15w, (%rax)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_IFCOUNTER_OMCASTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_11
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_8:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_m_freem
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_IFCOUNTER_OERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_if_inc_counter
	movl	%ebx, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_VLANTAG,4,2                  ## @M_VLANTAG
	.comm	_IFCAP_VLAN_HWTAGGING,4,2       ## @IFCAP_VLAN_HWTAGGING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to prepend VLAN header\n"

	.comm	_IFCOUNTER_OERRORS,4,2          ## @IFCOUNTER_OERRORS
	.comm	_IFCOUNTER_OPACKETS,4,2         ## @IFCOUNTER_OPACKETS
	.comm	_IFCOUNTER_OBYTES,4,2           ## @IFCOUNTER_OBYTES
	.comm	_M_MCAST,2,1                    ## @M_MCAST
	.comm	_IFCOUNTER_OMCASTS,4,2          ## @IFCOUNTER_OMCASTS
	.no_dead_strip	_bridge_enqueue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bridge_enqueue
_bridge_enqueue:                        ; @bridge_enqueue
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x2, LBB0_12
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _M_VLANTAG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _M_VLANTAG@GOTPAGEOFF]
Lloh2:
	adrp	x27, _IFCOUNTER_OPACKETS@GOTPAGE
Lloh3:
	ldr	x27, [x27, _IFCOUNTER_OPACKETS@GOTPAGEOFF]
Lloh4:
	adrp	x28, _IFCOUNTER_OBYTES@GOTPAGE
Lloh5:
	ldr	x28, [x28, _IFCOUNTER_OBYTES@GOTPAGEOFF]
Lloh6:
	adrp	x22, _M_MCAST@GOTPAGE
Lloh7:
	ldr	x22, [x22, _M_MCAST@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_if_printf
Lloh10:
	adrp	x8, _IFCOUNTER_OERRORS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IFCOUNTER_OERRORS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w2, #1
	bl	_if_inc_counter
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	x20, LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x20
	ldr	x20, [x20, #16]
	str	xzr, [x24, #16]
	ldr	w23, [x24, #4]
	ldrsh	w26, [x24]
	ldr	w8, [x25]
	tst	w8, w26
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21]
Lloh13:
	adrp	x9, _IFCAP_VLAN_HWTAGGING@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IFCAP_VLAN_HWTAGGING@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x24, #8]
	mov	x0, x24
	bl	_ether_vlanencap
	cbz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	ldrh	w8, [x25]
	ldrh	w9, [x0]
	bic	w8, w9, w8
	strh	w8, [x0]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_M_ASSERTPKTHDR
	ldr	x8, [x21, #8]
	mov	x0, x21
	mov	x1, x24
	blr	x8
	cbnz	w0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	and	w24, w26, #0xffff
	ldr	x0, [x19]
	ldr	w1, [x27]
	mov	w2, #1
	bl	_if_inc_counter
	ldr	x0, [x19]
	ldr	w1, [x28]
	mov	x2, x23
	bl	_if_inc_counter
	ldrh	w8, [x22]
	tst	w8, w24
	b.eq	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19]
Lloh16:
	adrp	x8, _IFCOUNTER_OMCASTS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IFCOUNTER_OMCASTS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	b	LBB0_3
LBB0_12:
	mov	w24, #0
	b	LBB0_14
LBB0_13:
	mov	x24, x0
	mov	x0, x20
	bl	_m_freem
	ldr	x0, [x19]
Lloh19:
	adrp	x8, _IFCOUNTER_OERRORS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IFCOUNTER_OERRORS@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_if_inc_counter
LBB0_14:
	mov	x0, x24
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_M_VLANTAG,4,2                  ; @M_VLANTAG
	.comm	_IFCAP_VLAN_HWTAGGING,4,2       ; @IFCAP_VLAN_HWTAGGING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to prepend VLAN header\n"

	.comm	_IFCOUNTER_OERRORS,4,2          ; @IFCOUNTER_OERRORS
	.comm	_IFCOUNTER_OPACKETS,4,2         ; @IFCOUNTER_OPACKETS
	.comm	_IFCOUNTER_OBYTES,4,2           ; @IFCOUNTER_OBYTES
	.comm	_M_MCAST,2,1                    ; @M_MCAST
	.comm	_IFCOUNTER_OMCASTS,4,2          ; @IFCOUNTER_OMCASTS
	.no_dead_strip	_bridge_enqueue
.subsections_via_symbols
