	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sf2_cfp_slice_ipv4
_bcm_sf2_cfp_slice_ipv4:                ## @bcm_sf2_cfp_slice_ipv4
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$4, %edi
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	callq	_CORE_CFP_MASK_PORT
	jmp	LBB0_3
LBB0_2:
	callq	_CORE_CFP_DATA_PORT
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_core_writel
	movl	4(%r15), %edi
	callq	_be16_to_cpu
	movl	%eax, %ebx
	sarl	$8, %ebx
	movl	$3, %edi
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	callq	_CORE_CFP_MASK_PORT
	jmp	LBB0_6
LBB0_5:
	callq	_CORE_CFP_DATA_PORT
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_core_writel
	movl	4(%r15), %edi
	callq	_be16_to_cpu
	movl	%eax, %r14d
	shll	$24, %r14d
	movl	(%r15), %edi
	callq	_be16_to_cpu
	movl	%eax, %ebx
	shll	$8, %ebx
	orl	%r14d, %ebx
	movl	4(%r13), %edi
	callq	_be32_to_cpu
	movzbl	%ah, %eax
	orl	%ebx, %eax
	movl	%eax, %ebx
	movl	$2, %edi
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.7:
	callq	_CORE_CFP_MASK_PORT
	jmp	LBB0_9
LBB0_8:
	callq	_CORE_CFP_DATA_PORT
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_core_writel
	movl	4(%r13), %edi
	callq	_be32_to_cpu
	movl	%eax, %r14d
	shll	$24, %r14d
	movl	4(%r13), %edi
	callq	_be32_to_cpu
	movl	%eax, %ebx
	sarl	$8, %ebx
	andl	$-256, %ebx
	orl	%r14d, %ebx
	movl	(%r13), %edi
	callq	_be32_to_cpu
	movzbl	%ah, %eax
	orl	%ebx, %eax
	movl	%eax, %ebx
	movl	$1, %edi
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.10:
	callq	_CORE_CFP_MASK_PORT
	jmp	LBB0_12
LBB0_11:
	callq	_CORE_CFP_DATA_PORT
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_core_writel
	movl	(%r13), %edi
	callq	_be32_to_cpu
	movl	%eax, %r15d
	movl	(%r13), %edi
	callq	_be32_to_cpu
	movl	%eax, %r13d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_SLICE_NUM
	movl	%eax, %ebx
	movq	_SLICE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%edi, %edi
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.13:
	callq	_CORE_CFP_MASK_PORT
	jmp	LBB0_15
LBB0_14:
	callq	_CORE_CFP_DATA_PORT
LBB0_15:
	shll	$24, %r15d
	sarl	$8, %r13d
	andl	$-256, %r13d
	orl	%r15d, %ebx
	orl	%r13d, %ebx
	orl	%r14d, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_core_writel                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SLICE_VALID,4,2                ## @SLICE_VALID
	.no_dead_strip	_bcm_sf2_cfp_slice_ipv4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sf2_cfp_slice_ipv4
_bcm_sf2_cfp_slice_ipv4:                ; @bcm_sf2_cfp_slice_ipv4
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	mov	w0, #4
	cbz	w4, LBB0_2
; %bb.1:
	bl	_CORE_CFP_MASK_PORT
	b	LBB0_3
LBB0_2:
	bl	_CORE_CFP_DATA_PORT
LBB0_3:
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_core_writel
	ldr	w0, [x23, #4]
	bl	_be16_to_cpu
	asr	w24, w0, #8
	mov	w0, #3
	cbz	w20, LBB0_5
; %bb.4:
	bl	_CORE_CFP_MASK_PORT
	b	LBB0_6
LBB0_5:
	bl	_CORE_CFP_DATA_PORT
LBB0_6:
	mov	x2, x0
	mov	x0, x19
	mov	x1, x24
	bl	_core_writel
	ldr	w0, [x23, #4]
	bl	_be16_to_cpu
	mov	x24, x0
	ldr	w0, [x23]
	bl	_be16_to_cpu
	lsl	w8, w0, #8
	orr	w23, w8, w24, lsl #24
	ldr	w0, [x22, #4]
	bl	_be32_to_cpu
	bfxil	w23, w0, #8, #8
	mov	w0, #2
	cbz	w20, LBB0_8
; %bb.7:
	bl	_CORE_CFP_MASK_PORT
	b	LBB0_9
LBB0_8:
	bl	_CORE_CFP_DATA_PORT
LBB0_9:
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_core_writel
	ldr	w0, [x22, #4]
	bl	_be32_to_cpu
	mov	x23, x0
	ldr	w0, [x22, #4]
	bl	_be32_to_cpu
	asr	w8, w0, #8
	and	w8, w8, #0xffffff00
	orr	w23, w8, w23, lsl #24
	ldr	w0, [x22]
	bl	_be32_to_cpu
	bfxil	w23, w0, #8, #8
	mov	w0, #1
	cbz	w20, LBB0_11
; %bb.10:
	bl	_CORE_CFP_MASK_PORT
	b	LBB0_12
LBB0_11:
	bl	_CORE_CFP_DATA_PORT
LBB0_12:
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_core_writel
	ldr	w0, [x22]
	bl	_be32_to_cpu
	mov	x23, x0
	ldr	w0, [x22]
	bl	_be32_to_cpu
	mov	x22, x0
	mov	x0, x21
	bl	_SLICE_NUM
	mov	x21, x0
Lloh0:
	adrp	x8, _SLICE_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SLICE_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	w0, #0
	cbz	w20, LBB0_14
; %bb.13:
	bl	_CORE_CFP_MASK_PORT
	b	LBB0_15
LBB0_14:
	bl	_CORE_CFP_DATA_PORT
LBB0_15:
	mov	x2, x0
	asr	w8, w22, #8
	and	w8, w8, #0xffffff00
	orr	w9, w21, w23, lsl #24
	orr	w8, w9, w8
	orr	w1, w8, w24
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_core_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SLICE_VALID,4,2                ; @SLICE_VALID
	.no_dead_strip	_bcm_sf2_cfp_slice_ipv4
.subsections_via_symbols
