	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_g2_trunk_mask_write
_mv88e6xxx_g2_trunk_mask_write:         ## @mv88e6xxx_g2_trunk_mask_write
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	shll	$12, %ebx
	callq	_mv88e6xxx_port_mask
	andl	%r15d, %eax
	orl	%ebx, %eax
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	_MV88E6XXX_G2_TRUNK_MASK_HASH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_2:
	orl	%r12d, %eax
	movq	_MV88E6XXX_G2_TRUNK_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MV88E6XXX_G2_TRUNK_MASK_UPDATE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mv88e6xxx_g2_write             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_G2_TRUNK_MASK_HASH,4,2 ## @MV88E6XXX_G2_TRUNK_MASK_HASH
	.comm	_MV88E6XXX_G2_TRUNK_MASK,4,2    ## @MV88E6XXX_G2_TRUNK_MASK
	.comm	_MV88E6XXX_G2_TRUNK_MASK_UPDATE,4,2 ## @MV88E6XXX_G2_TRUNK_MASK_UPDATE
	.no_dead_strip	_mv88e6xxx_g2_trunk_mask_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_g2_trunk_mask_write
_mv88e6xxx_g2_trunk_mask_write:         ; @mv88e6xxx_g2_trunk_mask_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_mv88e6xxx_port_mask
	and	w8, w0, w19
	orr	w8, w8, w21, lsl #12
Lloh0:
	adrp	x9, _MV88E6XXX_G2_TRUNK_MASK_HASH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MV88E6XXX_G2_TRUNK_MASK_HASH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w20, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh3:
	adrp	x9, _MV88E6XXX_G2_TRUNK_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MV88E6XXX_G2_TRUNK_MASK@GOTPAGEOFF]
Lloh5:
	adrp	x10, _MV88E6XXX_G2_TRUNK_MASK_UPDATE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MV88E6XXX_G2_TRUNK_MASK_UPDATE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
Lloh8:
	ldr	w9, [x10]
	orr	w2, w8, w9
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mv88e6xxx_g2_write
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_G2_TRUNK_MASK_HASH,4,2 ; @MV88E6XXX_G2_TRUNK_MASK_HASH
	.comm	_MV88E6XXX_G2_TRUNK_MASK,4,2    ; @MV88E6XXX_G2_TRUNK_MASK
	.comm	_MV88E6XXX_G2_TRUNK_MASK_UPDATE,4,2 ; @MV88E6XXX_G2_TRUNK_MASK_UPDATE
	.no_dead_strip	_mv88e6xxx_g2_trunk_mask_write
.subsections_via_symbols
