	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105_init_l2_policing
_sja1105_init_l2_policing:              ## @sja1105_init_l2_policing
	.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), %r12
	movq	_BLK_IDX_L2_POLICING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rbx
	leaq	(%r12,%rbx,8), %r14
	cmpq	$0, 8(%r12,%rbx,8)
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	callq	_kfree
	movq	$0, 8(%r14)
LBB0_2:
	movq	_SJA1105_MAX_L2_POLICING_COUNT@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	16(%r12,%rbx,8), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kcalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	(%r15), %rax
	movq	%rax, 8(%r14)
	movq	_SJA1105_NUM_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.5:
	xorl	%ebx, %ebx
	movq	_SJA1105_NUM_TC@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_sja1105_setup_policer
	incl	%r15d
	movq	_SJA1105_NUM_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	%r14d, %r15d
	jge	LBB0_11
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	(%r13), %eax
	imull	%eax, %r14d
	addl	%r15d, %r14d
	testl	%eax, %eax
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%rbx,%r15), %esi
	movq	%r12, %rdi
	callq	_sja1105_setup_policer
	incl	%r15d
	cmpl	(%r13), %r15d
	jl	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	addl	%r15d, %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_IDX_L2_POLICING,8,3        ## @BLK_IDX_L2_POLICING
	.comm	_SJA1105_MAX_L2_POLICING_COUNT,8,3 ## @SJA1105_MAX_L2_POLICING_COUNT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SJA1105_NUM_PORTS,4,2          ## @SJA1105_NUM_PORTS
	.comm	_SJA1105_NUM_TC,4,2             ## @SJA1105_NUM_TC
	.no_dead_strip	_sja1105_init_l2_policing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1105_init_l2_policing
_sja1105_init_l2_policing:              ; @sja1105_init_l2_policing
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _BLK_IDX_L2_POLICING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLK_IDX_L2_POLICING@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	w8, #24
	madd	x21, x22, x8, x19
	mov	x20, x21
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x21]
	bl	_kfree
	str	xzr, [x20]
LBB0_2:
Lloh3:
	adrp	x23, _SJA1105_MAX_L2_POLICING_COUNT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SJA1105_MAX_L2_POLICING_COUNT@GOTPAGEOFF]
	ldr	x0, [x23]
	mov	w8, #24
	madd	x8, x22, x8, x19
	ldr	x8, [x8, #16]
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_kcalloc
	str	x0, [x21]
	cbz	x0, LBB0_11
; %bb.3:
	ldr	x8, [x23]
	str	x8, [x20]
Lloh8:
	adrp	x20, _SJA1105_NUM_PORTS@GOTPAGE
Lloh9:
	ldr	x20, [x20, _SJA1105_NUM_PORTS@GOTPAGEOFF]
	ldr	w24, [x20]
	cmp	w24, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x19, x0
	mov	w21, #0
	mov	w22, #0
Lloh10:
	adrp	x23, _SJA1105_NUM_TC@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SJA1105_NUM_TC@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	madd	w1, w25, w24, w22
	mov	x0, x19
	bl	_sja1105_setup_policer
	add	w22, w22, #1
	ldr	w24, [x20]
	cmp	w22, w24
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w25, [x23]
	cmp	w25, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w26, #0
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w1, w21, w26
	mov	x0, x19
	bl	_sja1105_setup_policer
	add	w26, w26, #1
	ldr	w8, [x23]
	cmp	w26, w8
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w21, w21, w26
	b	LBB0_5
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_IDX_L2_POLICING,8,3        ; @BLK_IDX_L2_POLICING
	.comm	_SJA1105_MAX_L2_POLICING_COUNT,8,3 ; @SJA1105_MAX_L2_POLICING_COUNT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SJA1105_NUM_PORTS,4,2          ; @SJA1105_NUM_PORTS
	.comm	_SJA1105_NUM_TC,4,2             ; @SJA1105_NUM_TC
	.no_dead_strip	_sja1105_init_l2_policing
.subsections_via_symbols
