	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_get_phys_port_id
_mlx4_en_get_phys_port_id:              ## @mlx4_en_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movl	$4, (%rbx)
	movq	_PORT_ID_BYTE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	jle	LBB0_8
## %bb.3:
	movq	8(%rbx), %r9
	leaq	-1(%rdx), %r8
	movq	%rdx, %rbx
	andq	$3, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decq	%rdx
	movzbl	%cl, %edi
	movl	%edx, %esi
	movl	%edi, (%r9,%rsi,4)
	sarl	$8, %ecx
	decq	%rbx
	jne	LBB0_4
LBB0_5:
	cmpq	$3, %r8
	jb	LBB0_8
## %bb.6:
	movl	$4294967294, %r8d               ## imm = 0xFFFFFFFE
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%r8), %esi
	incl	%esi
	movzbl	%cl, %ebx
	movl	%ebx, (%r9,%rsi,4)
	leal	(%rdx,%r8), %esi
	movzbl	%ch, %ebx
	movl	%ebx, (%r9,%rsi,4)
	movl	%ecx, %esi
	shrl	$16, %esi
	leaq	-3(%rdx), %r10
	movzbl	%sil, %esi
	movl	%r10d, %edi
	movl	%esi, (%r9,%rdi,4)
	addq	$-4, %rdx
	movl	%ecx, %ebx
	shrl	$24, %ebx
	movl	%edx, %esi
	movl	%ebx, (%r9,%rsi,4)
	sarl	$31, %ecx
	cmpq	$1, %r10
	ja	LBB0_7
	jmp	LBB0_8
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_PORT_ID_BYTE_LEN,4,2           ## @PORT_ID_BYTE_LEN
	.no_dead_strip	_mlx4_en_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 mlx4_en_get_phys_port_id
_mlx4_en_get_phys_port_id:              ; @mlx4_en_get_phys_port_id
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_netdev_priv
	ldp	x9, x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_5
; %bb.1:
	mov	w9, #4
	str	w9, [x19]
Lloh0:
	adrp	x9, _PORT_ID_BYTE_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PORT_ID_BYTE_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x9, [x19, #8]
	add	x10, x10, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w11, w10, #2
	and	w12, w8, #0xff
	str	w12, [x9, w11, uxtw #2]
	asr	w8, w8, #8
	sub	x10, x10, #1
	cmp	x10, #1
	b.hi	LBB0_3
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_PORT_ID_BYTE_LEN,4,2           ; @PORT_ID_BYTE_LEN
	.no_dead_strip	_mlx4_en_get_phys_port_id
.subsections_via_symbols
