	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_get_phys_port_id
_be_get_phys_port_id:                   ## @be_get_phys_port_id
	.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	%rsi, %rbx
	movq	_CNTL_SERIAL_NUM_WORDS@GOTPCREL(%rip), %r14
	movq	_CNTL_SERIAL_NUM_WORD_SZ@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	imull	(%r14), %r12d
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_MAX_PHYS_ITEM_ID_LEN@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jle	LBB0_1
## %bb.2:
	incl	%r12d
	movq	8(%r15), %rax
	incq	%rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rbx
	movq	%rax, (%rbx)
	movl	(%r14), %r14d
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.3:
	addq	$8, %rbx
	movl	(%r13), %edx
	incq	%r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%r14), %esi
	shlq	$2, %rsi
	addq	(%r15), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	(%r13), %rdx
	leaq	(%rbx,%rdx,8), %rbx
	decq	%r14
	cmpq	$1, %r14
	ja	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CNTL_SERIAL_NUM_WORDS,4,2      ## @CNTL_SERIAL_NUM_WORDS
	.comm	_CNTL_SERIAL_NUM_WORD_SZ,4,2    ## @CNTL_SERIAL_NUM_WORD_SZ
	.comm	_MAX_PHYS_ITEM_ID_LEN,4,2       ## @MAX_PHYS_ITEM_ID_LEN
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	_be_get_phys_port_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_get_phys_port_id
_be_get_phys_port_id:                   ; @be_get_phys_port_id
	.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	x19, x1
Lloh0:
	adrp	x21, _CNTL_SERIAL_NUM_WORDS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CNTL_SERIAL_NUM_WORDS@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _CNTL_SERIAL_NUM_WORD_SZ@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CNTL_SERIAL_NUM_WORD_SZ@GOTPAGEOFF]
	ldr	w9, [x22]
	mul	w23, w9, w8
	bl	_netdev_priv
Lloh4:
	adrp	x8, _MAX_PHYS_ITEM_ID_LEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_PHYS_ITEM_ID_LEN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w23
	b.le	LBB0_5
; %bb.1:
	mov	x20, x0
	add	w23, w23, #1
	ldr	x8, [x0, #8]
	add	x8, x8, #1
	ldr	x9, [x19, #8]
	str	x8, [x9]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	add	x21, x9, #8
	ldr	w2, [x22]
	add	x24, x8, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w24, #2
	ldr	x9, [x20]
	add	x1, x9, w8, uxtw #2
	mov	x0, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x2, [x22]
	add	x21, x21, x2, lsl #3
	sub	x24, x24, #1
	cmp	x24, #1
	b.hi	LBB0_3
LBB0_4:
	mov	w0, #0
	str	w23, [x19]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CNTL_SERIAL_NUM_WORDS,4,2      ; @CNTL_SERIAL_NUM_WORDS
	.comm	_CNTL_SERIAL_NUM_WORD_SZ,4,2    ; @CNTL_SERIAL_NUM_WORD_SZ
	.comm	_MAX_PHYS_ITEM_ID_LEN,4,2       ; @MAX_PHYS_ITEM_ID_LEN
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_be_get_phys_port_id
.subsections_via_symbols
