	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sx_to_ptys_advert_link
_mlxsw_sx_to_ptys_advert_link:          ## @mlxsw_sx_to_ptys_advert_link
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MLXSW_SX_PORT_LINK_MODE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	_mlxsw_sx_port_link_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	xorl	%eax, %eax
LBB0_10:
	testb	$1, %r8b
	je	LBB0_13
## %bb.11:
	testl	%edi, (%rcx,%rsi,8)
	je	LBB0_13
## %bb.12:
	orl	4(%rcx,%rsi,8), %eax
LBB0_13:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%r8d, %edx
	andl	$-2, %edx
	xorl	%esi, %esi
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %rdx
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edi, (%rcx,%rsi,8)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	orl	4(%rcx,%rsi,8), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	testl	%edi, 8(%rcx,%rsi,8)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	orl	12(%rcx,%rsi,8), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SX_PORT_LINK_MODE_LEN,4,2 ## @MLXSW_SX_PORT_LINK_MODE_LEN
	.comm	_mlxsw_sx_port_link_mode,8,3    ## @mlxsw_sx_port_link_mode
	.no_dead_strip	_mlxsw_sx_to_ptys_advert_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sx_to_ptys_advert_link
_mlxsw_sx_to_ptys_advert_link:          ; @mlxsw_sx_to_ptys_advert_link
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MLXSW_SX_PORT_LINK_MODE_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_SX_PORT_LINK_MODE_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w8, #0
Lloh3:
	adrp	x10, _mlxsw_sx_port_link_mode@GOTPAGE
Lloh4:
	ldr	x10, [x10, _mlxsw_sx_port_link_mode@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x10, x10, #4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-4]
	tst	w11, w0
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x10]
	orr	w8, w11, w8
	b	LBB0_2
LBB0_5:
	mov	x0, x8
	ret
LBB0_6:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SX_PORT_LINK_MODE_LEN,4,2 ; @MLXSW_SX_PORT_LINK_MODE_LEN
	.comm	_mlxsw_sx_port_link_mode,8,3    ; @mlxsw_sx_port_link_mode
	.no_dead_strip	_mlxsw_sx_to_ptys_advert_link
.subsections_via_symbols
