	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_g1_atu_data_write
_mv88e6xxx_g1_atu_data_write:           ## @mv88e6xxx_g1_atu_data_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
	movq	%rdi, %r14
	movl	(%rsi), %ebx
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	andl	$15, %ebx
	xorl	%r15d, %r15d
	cmpq	$0, 8(%rsi)
	je	LBB0_4
## %bb.3:
	movq	_MV88E6XXX_G1_ATU_DATA_TRUNK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_4:
	movl	4(%rsi), %r12d
	movq	%r14, %rdi
	callq	_mv88e6xxx_port_mask
	andl	%r12d, %eax
	shll	$4, %eax
	orl	%eax, %ebx
	orl	%r15d, %ebx
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_MV88E6XXX_G1_ATU_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mv88e6xxx_g1_write             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_G1_ATU_DATA_TRUNK,4,2 ## @MV88E6XXX_G1_ATU_DATA_TRUNK
	.comm	_MV88E6XXX_G1_ATU_DATA,4,2      ## @MV88E6XXX_G1_ATU_DATA
	.no_dead_strip	_mv88e6xxx_g1_atu_data_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_g1_atu_data_write
_mv88e6xxx_g1_atu_data_write:           ; @mv88e6xxx_g1_atu_data_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, x0
	ldr	w8, [x1]
	cbz	w8, LBB0_2
; %bb.1:
	and	w8, w8, #0xf
Lloh0:
	adrp	x9, _MV88E6XXX_G1_ATU_DATA_TRUNK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MV88E6XXX_G1_ATU_DATA_TRUNK@GOTPAGEOFF]
	ldr	x10, [x1, #8]
Lloh2:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w20, w9, w8
	ldr	w21, [x1, #4]
	mov	x0, x19
	bl	_mv88e6xxx_port_mask
	and	w8, w0, w21
	orr	w2, w20, w8, lsl #4
	b	LBB0_3
LBB0_2:
	mov	w2, #0
LBB0_3:
Lloh3:
	adrp	x8, _MV88E6XXX_G1_ATU_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MV88E6XXX_G1_ATU_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	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_g1_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_G1_ATU_DATA_TRUNK,4,2 ; @MV88E6XXX_G1_ATU_DATA_TRUNK
	.comm	_MV88E6XXX_G1_ATU_DATA,4,2      ; @MV88E6XXX_G1_ATU_DATA
	.no_dead_strip	_mv88e6xxx_g1_atu_data_write
.subsections_via_symbols
