	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_eth_calc_port_geometry
_nfp_eth_calc_port_geometry:            ## @nfp_eth_calc_port_geometry
	.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
	cmpl	$0, (%rsi)
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r12
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movl	%eax, %eax
	cmpq	%rax, %r13
	jae	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	16(%r12), %edi
	movq	8(%r12), %rax
	leaq	(,%r13,4), %rbx
	addq	%r13, %rbx
	movl	36(%rax,%rbx,8), %esi
	callq	_max
	movl	%eax, 16(%r12)
	movl	(%r12), %ecx
	movl	$0, %eax
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rsi
	xorl	%r15d, %r15d
	movl	%ecx, %eax
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	$1, 16(%rsi,%rbx,8)
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	movl	%eax, %ecx
	addq	$40, %r15
	cmpq	%rcx, %r14
	jae	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi,%rbx,8), %rdx
	cmpq	(%rsi,%r15), %rdx
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	24(%rsi,%r15), %ecx
	addl	%ecx, 32(%rsi,%rbx,8)
	cmpq	%r14, %r13
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	8(%rsi,%rbx,8), %rcx
	cmpq	8(%rsi,%r15), %rcx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	callq	_nfp_warn
	movq	8(%r12), %rsi
	movl	(%r12), %eax
	jmp	LBB0_8
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port %d subport %d is a duplicate\n"

	.no_dead_strip	_nfp_eth_calc_port_geometry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_eth_calc_port_geometry
_nfp_eth_calc_port_geometry:            ; @nfp_eth_calc_port_geometry
	.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	w8, [x1]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x22, #0
	mov	w23, #40
	mov	w24, #1
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, uxtw
	b.hs	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	madd	x8, x22, x23, x8
	ldr	w1, [x8, #36]
	bl	_max
	str	w0, [x19, #16]
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
	mov	x26, #0
	ldr	x9, [x19, #8]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	madd	x10, x22, x23, x9
	str	w24, [x10, #16]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x26, x26, #1
	add	x25, x25, #40
	cmp	x26, w8, uxtw
	b.hs	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mul	x10, x22, x23
	ldr	x2, [x9, x10]
	ldr	x10, [x9, x25]
	cmp	x2, x10
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x10, x9, x25
	ldr	w11, [x10, #24]
	madd	x12, x22, x23, x9
	ldr	w13, [x12, #32]
	add	w11, w13, w11
	str	w11, [x12, #32]
	cmp	x22, x26
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	madd	x11, x22, x23, x9
	ldr	x3, [x11, #8]
	ldr	x10, [x10, #8]
	cmp	x3, x10
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x20
	mov	x1, x21
	bl	_nfp_warn
	ldr	x9, [x19, #8]
	ldr	w8, [x19]
	b	LBB0_5
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port %d subport %d is a duplicate\n"

	.no_dead_strip	_nfp_eth_calc_port_geometry
.subsections_via_symbols
